[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:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]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:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]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:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]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:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]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:14]accept exits with 7 [05:27:14]New connection [05:27:14]New thread 3067616612 created [05:27:14]Thread 3067473252 joined [05:27:14]Waiting for new connection... [05:27:14] Sock 7.Parse request [05:27:14]Sock 7.Check first char [05:27:14]Sock 7.First char is OK [05:27:14]request: POST /json_proto HTTP/1.0 [05:27:14]Method: POST [05:27:14]URL: /json_proto [05:27:14]Method is POST - this is cgi request [05:27:14]url: /json_proto [05:27:14]query_string will be loaded in cgi processing [05:27:14]execute_cgi json_proto POST (null) [05:27:14]execute_cgi path=json_proto method=POST [05:27:14]POST find Content-Length [05:27:14]Host: 172.17.38.133:8080 [05:27:14]Content-Length: 678 [05:27:14]Content-Type: application/json [05:27:14] [05:27:14]POST finish read [05:27:14]Found Content-Length = 678 [05:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673773", "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" ] } } [05:27:14]execute_script... [05:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673773", "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" ] } } [05:27:14]POST & json_proto [05:27:14]process_json_proto [05:27:14]json parsed OK: [05:27:14]protocol is kg_v1.0 [05:27:14]action value=close_receipt [05:27:14]process_action close_receipt [05:27:14]cmd_close_receipt [05:27:14]MH_GetDate [05:27:14]Write to MH i2c: F0 00 00 57 1E 64 [05:27:14]Write i2c OK [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: F0 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: F0 09 00 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: F0 09 00 57 1E 00 B5 60 76 66 BD 8F 7C 64 8A [05:27:14]GetLastDocTimeStamp 1719024864 [05:27:14]current date 1719034037 [05:27:14]FM_GetShiftState [05:27:14]SAM_PROTO_GetShiftState [05:27:14]wFMCommunicate request_size=4 [05:27:14]MH_SAM_APDU [05:27:14]CAPDU: 80 13 01 00 [05:27:14]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [05:27:14]Write i2c OK [05:27:14]MH_I2C_Read... [05:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:14]Read from MH i2c: E2 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: E2 0E 00 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E5 [05:27:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [05:27:14]wFMCommunicate OK [05:27:14]SAM_PROTO_GetShiftState done [05:27:14]FM_GetShiftState done [05:27:14]opened in 1719016176 [05:27:14]opened+sec_in_day 1719102576 [05:27:14]quantity*price = 70052 [05:27:14]sum+1 = 70053 [05:27: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 СНО: Общий режим Чек 17 22.06.2024 05:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104284 ФПД: 252011189189011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T052717&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104284&fm=252011189189011&tin=02508201610067®Number=0000000000092785&sum=70000 [05:27:15]StoreToDocumentArchive [05:27:15]shift 356 fd 104284 [05:27:15]save to /storage/0356/doc_00104284 [05:27:15]save last doc name /storage/0356/doc_00104284 to /storage/kkm_last_doc_name [05:27:15]save OK [05:27:15]Clear old archive folders... [05:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:27:15]tlvbuf is B6F4A380 [05:27:15]SAM_PROTO_ClearQueue [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 09 00 00 [05:27:15]Write to MH i2c: E2 08 00 65 1E 80 09 00 00 00 00 00 00 F5 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:15]Read from MH i2c: E2 03 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [05:27:15]RAPDU: 90 00 [05:27:15]wFMCommunicate OK [05:27:15]SAM_PROTO_ClearQueue done [05:27:15]KKMCreateOFDPacket [05:27:15]OFDProtocolAddRootSTLVToBuf [05:27:15]FM_MakeSignedData [05:27:15]FM_MakeSignedData [05:27:15]SAM_PROTO_SignData [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 0D 01 02 [05:27:15]Write to MH i2c: E2 08 00 66 1E 80 0D 01 02 00 00 00 00 FD [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [05:27:15]RAPDU: 90 00 [05:27:15]wFMCommunicate OK [05:27:15]wFMCommunicate request_size=255 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 B5 60 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E5 [05:27:15]Write to MH i2c: E2 02 01 67 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 B5 60 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E5 00 00 09 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [05:27:15]RAPDU: 90 00 [05:27:15]wFMCommunicate OK [05:27:15]wFMCommunicate request_size=10 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 0D 02 02 05 33 ED 69 39 93 [05:27:15]Write to MH i2c: E2 0D 00 68 1E 80 0D 02 02 05 00 33 ED 69 39 93 00 00 5F [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [05:27:15]RAPDU: 90 00 [05:27:15]wFMCommunicate OK [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 0D 03 02 [05:27:15]Write to MH i2c: E2 08 00 69 1E 80 0D 03 02 00 00 00 00 02 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 0B 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 0B 00 69 1E 00 11 7A 3F 25 50 A9 B4 83 90 00 22 [05:27:15]RAPDU: 11 7A 3F 25 50 A9 B4 83 90 00 [05:27:15]wFMCommunicate OK [05:27:15]SAM_PROTO_SignData done [05:27:15]FM_MakeSignedData done [05:27:15]CreateOFDProtocolMessage [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 11 00 00 [05:27:15]Write to MH i2c: E2 08 00 6A 1E 80 11 00 00 00 00 00 00 02 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 17 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 17 00 6A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [05:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:27:15]wFMCommunicate OK [05:27:15]CreateOFDProtocolMessage done [05:27:15]OFDSenderStorePacket 104284 [05:27:15]StoreOFDPacket docnum=104284 [05:27: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 DD 7E 07 01 41 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 B5 60 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E5 33 ED 69 39 93 11 7A 3F 25 50 A9 B4 83 [05:27:15]CheckFolder [05:27:15]dirname=/storage/ofd_packets [05:27:15]CheckFolder done [05:27:15]ProducePacketName [05:27:15]name=ofd_packets/00104284 [05:27:15]NVStorageSaveData ofd_packets/00104284 [05:27:15]File name is /storage/ofd_packets/00104284 [05:27:15]Write 301 bytes [05:27:15]NVStorageSaveData done [05:27:15]OFDSenderStorePacket done [05:27:15]KKMCreateOFDPacket done [05:27:15]NVStorageSaveData kkm_last_timestamp [05:27:15]File name is /storage/kkm_last_timestamp [05:27:15]Write 4 bytes [05:27:15]NVStorageSaveData done [05:27:15]ExternCall_PrintAddStr [05:27:15]wPrintStart [05:27:15]Write to MH i2c: 01 00 00 6B 1E 89 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: 01 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: 01 07 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: 01 07 00 6B 1E 00 00 00 00 00 FF 0F 9E [05:27:15]RasterBufferAndPrint [05:27:15]line Счет N : (1)673773 [05:27:15]line ИНН: 02508201610067 [05:27:15]line Контрольно-Кассовый Чек [05:27:15]line ПРОДАЖА [05:27:15]line ТРК (МРК, ГНК) : 32 [05:27:15]line Товар: 2710124130 [05:27:15]line Аи-92-К-5 [05:27:15]line 10.550 * 66.40 [05:27:15]line = 700.52 [05:27:15]line НДС 12% НСП 1% [05:27:15]line > о реализуемом товаре [05:27:15]line ОКРУГЛЕНИЕ: -0.52 [05:27:15]line ИТОГО: 700.00 [05:27:15]line Внесено: 700.00 [05:27:15]line СДАЧА: 0.00 [05:27:15]line НСП 1% : 6.20 [05:27:15]line НДС 12% : 74.39 [05:27:15]line Наличными: 700.00 [05:27:15]line Безнал.: 0.00 [05:27:15]line Место: АЗС № 120 "Партнер Нефть" [05:27:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:27:15]line СНО: Общий режим [05:27:15]line Чек 17 22.06.2024 05:27 [05:27:15]line Смена: 356 ФФД: 1.0 [05:27:15]line ЗНМ: 0300000164 [05:27:15]line РНМ: 0000000000092785 [05:27:15]line Версия ККМ: 001 [05:27:15]line ФМ: 0000000000875093 [05:27:15]line ФД: 104284 [05:27:15]line ФПД: 252011189189011 [05:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T052717&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104284&fm=252011189189011&tin=02508201610067®Number=0000000000092785&sum=70000 [05:27:16]OFD Sender: Processing packet 104284 [packets to send 17, broken 16] [05:27:16]ProducePacketName [05:27:16]name=ofd_packets/00104284 [05:27:16]OFD Sender: To server: pG, [05:27:16]CommunicateWithHost lk.salyk.kg:30040 [05:27:16]ConnectInit lk.salyk.kg [05:27:16]written 0, free lines is 4095 [05:27:16]Connected sock=10 [05:27: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 DD 7E 07 01 41 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 B5 60 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E5 33 ED 69 39 93 11 7A 3F 25 50 A9 B4 83 [05:27: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 8F 91 47 00 97 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 97 01 00 F4 03 04 00 35 07 76 66 B6 04 01 00 00 35 BA 9E 8C DC 05 34 B2 [05:27:16]CommunicateWithHost err = 0 [05:27:16]CheckOFDResponse [05:27:16]1017 (14) - 77093643461234 [05:27:16]1041 (16) - 0000000000875093 [05:27:16]1040 (4) - 104284 [05:27:16]1012 (4) - 21.06.2024 23:05 [05:27:16]1206 (1) - 0 [05:27:16]OFD Sender: Remove packet 104284 [05:27:16]ProducePacketName [05:27:16]name=ofd_packets/00104284 [05:27:16]NVStorageDeleteData [05:27:16]Write to MH i2c: 01 00 00 96 1E B4 [05:27:16]Write i2c OK [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: 01 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: 01 07 00 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: 01 07 00 96 1E 00 00 00 00 00 D8 0C 9F [05:27:16]RasterBufferAndPrint [05:27:16]line [05:27:16]line [05:27:16]line [05:27:16]line [05:27:16]line [05:27:16]written 0, free lines is 3295 [05:27:16]MH_Cut [05:27:16]Write to MH i2c: D1 01 00 9D 1E 01 8D [05:27:16]Write i2c OK [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: D1 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: D1 01 00 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: D1 01 00 9D 1E 00 8C [05:27:16]Write to MH i2c: 01 00 00 9E 1E BC [05:27:16]Write i2c OK [05:27:16]MH_I2C_Read... [05:27:17]OFD Sender: No OFD packet to send [05:27:17]*** Cut start [05:27:17]*** Partial cut [05:27:17]*** CUTSNS_PIN = 1 [05:27:17]*** CUTSNS_PIN = 0 [05:27:17]*** Brake cut motor [05:27:17]Read from MH i2c: 01 [05:27:17]MH_I2C_Read... [05:27:17]*** Stop cut motor [05:27:17]*** Cut end [05:27:17]Read from MH i2c: 01 07 00 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: 01 07 00 9E 1E 00 00 00 00 00 FF 0F D1 [05:27:17]process_action close_receipt done [05:27:17]requested_data is exist [05:27:17]produce_requested_data [05:27:17]requested_item fm.sn is exist - process it [05:27:17]wFMCommunicate request_size=4 [05:27:17]MH_SAM_APDU [05:27:17]CAPDU: 80 11 00 00 [05:27:17]Write to MH i2c: E2 08 00 9F 1E 80 11 00 00 00 00 00 00 37 [05:27:17]Write i2c OK [05:27:17]MH_I2C_Read... [05:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:18]Read from MH i2c: E2 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 17 00 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 17 00 9F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [05:27: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:27:18]wFMCommunicate OK [05:27:18]requested_item fd.num is exist - process it [05:27:18]SAM_PROTO_GetFieldsCounters [05:27:18]wFMCommunicate request_size=4 [05:27:18]MH_SAM_APDU [05:27:18]CAPDU: 80 13 00 00 [05:27:18]Write to MH i2c: E2 08 00 A0 1E 80 13 00 00 00 00 00 00 3A [05:27:18]Write i2c OK [05:27:18]MH_I2C_Read... [05:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:18]Read from MH i2c: E2 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 62 00 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 62 00 A0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 ED [05:27: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 5C 97 01 00 0E 04 04 00 64 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 [05:27:18]wFMCommunicate OK [05:27:18]SAM_PROTO_GetFieldsCounters done [05:27:18]requested_item shift.num is exist - process it [05:27:18]requested_item shift.opened is exist - process it [05:27:18]req_shift_opened [05:27:18]FM_GetShiftState [05:27:18]SAM_PROTO_GetShiftState [05:27:18]wFMCommunicate request_size=4 [05:27:18]MH_SAM_APDU [05:27:18]CAPDU: 80 13 01 00 [05:27:18]Write to MH i2c: E2 08 00 A1 1E 80 13 01 00 00 00 00 00 3C [05:27:18]Write i2c OK [05:27:18]MH_I2C_Read... [05:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:18]Read from MH i2c: E2 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 0E 00 [05:27:18]MH_I2C_Read... [05:27:18]Read from MH i2c: E2 0E 00 A1 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2E [05:27:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [05:27:18]wFMCommunicate OK [05:27:18]SAM_PROTO_GetShiftState done [05:27:18]FM_GetShiftState done [05:27:18]req_shift_opened done [05:27:18]requested_item shift.open_date is exist - process it [05:27:18]req_shift_open_date [05:27:18]req_shift_open_date done [05:27:18]produce_requested_data done [05:27:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104284,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [05:27:18]process_action_free close_receipt [05:27:18]json_value_free [05:27:18]json_value_free done [05:27:18]process_json_proto returns [05:27:18]Send response to host [05:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104284,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [05:27:18]free response buf [05:27:18]execute_script done [05:27:18]execute_script returns [05:27:18]free content buf [05:27:18]Sock 7.Close socket [05:27:18]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:38]accept exits with 9 [05:36:38]New connection [05:36:38]New thread 3067473252 created [05:36:38]Thread 3067616612 joined [05:36:38]Waiting for new connection... [05:36:38] Sock 9.Parse request [05:36:38]Sock 9.Check first char [05:36:38]Sock 9.First char is OK [05:36:38]request: POST /json_proto HTTP/1.0 [05:36:38]Method: POST [05:36:38]URL: /json_proto [05:36:38]Method is POST - this is cgi request [05:36:38]url: /json_proto [05:36:38]query_string will be loaded in cgi processing [05:36:38]execute_cgi json_proto POST (null) [05:36:38]execute_cgi path=json_proto method=POST [05:36:38]POST find Content-Length [05:36:38]Host: 172.17.38.133:8080 [05:36:38]Content-Length: 692 [05:36:38]Content-Type: application/json [05:36:38] [05:36:38]POST finish read [05:36:38]Found Content-Length = 692 [05:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673774", "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" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:38]execute_script... [05:36:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673774", "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" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:36:38]POST & json_proto [05:36:38]process_json_proto [05:36:38]json parsed OK: [05:36:38]protocol is kg_v1.0 [05:36:38]action value=close_receipt [05:36:38]process_action close_receipt [05:36:38]cmd_close_receipt [05:36:38]MH_GetDate [05:36:38]Write to MH i2c: F0 00 00 A2 1E AF [05:36:38]Write i2c OK [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 09 00 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 09 00 A2 1E 00 E9 62 76 66 BD 8F 7C 64 0B [05:36:38]GetLastDocTimeStamp 1719034037 [05:36:38]current date 1719034601 [05:36:38]FM_GetShiftState [05:36:38]SAM_PROTO_GetShiftState [05:36:38]wFMCommunicate request_size=4 [05:36:38]MH_SAM_APDU [05:36:38]CAPDU: 80 13 01 00 [05:36:38]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [05:36:38]Write i2c OK [05:36:38]MH_I2C_Read... [05:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:38]Read from MH i2c: E2 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: E2 0E 00 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 30 [05:36:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [05:36:38]wFMCommunicate OK [05:36:38]SAM_PROTO_GetShiftState done [05:36:38]FM_GetShiftState done [05:36:38]opened in 1719016176 [05:36:38]opened+sec_in_day 1719102576 [05:36:38]quantity*price = 1500063 [05:36:38]sum+1 = 1500064 [05:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.75 НДС 12% : 1592.99 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 22.06.2024 05:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104285 ФПД: 169889139294917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T053641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104285&fm=169889139294917&tin=02508201610067®Number=0000000000092785&sum=1500000 [05:36:39]StoreToDocumentArchive [05:36:39]shift 356 fd 104285 [05:36:39]save to /storage/0356/doc_00104285 [05:36:39]save last doc name /storage/0356/doc_00104285 to /storage/kkm_last_doc_name [05:36:39]save OK [05:36:39]Clear old archive folders... [05:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:36:39]tlvbuf is 006445F0 [05:36:39]SAM_PROTO_ClearQueue [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 09 00 00 [05:36:39]Write to MH i2c: E2 08 00 B0 1E 80 09 00 00 00 00 00 00 40 [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]SAM_PROTO_ClearQueue done [05:36:39]KKMCreateOFDPacket [05:36:39]OFDProtocolAddRootSTLVToBuf [05:36:39]FM_MakeSignedData [05:36:39]FM_MakeSignedData [05:36:39]SAM_PROTO_SignData [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 01 02 [05:36:39]Write to MH i2c: E2 08 00 B1 1E 80 0D 01 02 00 00 00 00 48 [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]wFMCommunicate request_size=255 [05:36:39]MH_SAM_APDU [05:36: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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E9 62 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [05:36:39]Write to MH i2c: E2 02 01 B2 1E 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E9 62 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 B7 [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]wFMCommunicate request_size=11 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 02 02 06 9A 83 65 CC 82 C5 [05:36:39]Write to MH i2c: E2 0E 00 B3 1E 80 0D 02 02 06 00 9A 83 65 CC 82 C5 00 00 EC [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 03 02 [05:36:39]Write to MH i2c: E2 08 00 B4 1E 80 0D 03 02 00 00 00 00 4D [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 0B 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 0B 00 B4 1E 00 A9 FD 95 55 FB 5B D4 A2 90 00 AA [05:36:39]RAPDU: A9 FD 95 55 FB 5B D4 A2 90 00 [05:36:39]wFMCommunicate OK [05:36:39]SAM_PROTO_SignData done [05:36:39]FM_MakeSignedData done [05:36:39]CreateOFDProtocolMessage [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 11 00 00 [05:36:39]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:40]Read from MH i2c: E2 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 17 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [05: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 [05:36:40]wFMCommunicate OK [05:36:40]CreateOFDProtocolMessage done [05:36:40]OFDSenderStorePacket 104285 [05:36:40]StoreOFDPacket docnum=104285 [05: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 10 01 00 00 1F C5 08 01 15 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E9 62 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A 83 65 CC 82 C5 A9 FD 95 55 FB 5B D4 A2 [05:36:40]CheckFolder [05:36:40]dirname=/storage/ofd_packets [05:36:40]CheckFolder done [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00104285 [05:36:40]NVStorageSaveData ofd_packets/00104285 [05:36:40]File name is /storage/ofd_packets/00104285 [05:36:40]Write 302 bytes [05:36:40]NVStorageSaveData done [05:36:40]OFDSenderStorePacket done [05:36:40]KKMCreateOFDPacket done [05:36:40]NVStorageSaveData kkm_last_timestamp [05:36:40]File name is /storage/kkm_last_timestamp [05:36:40]Write 4 bytes [05:36:40]NVStorageSaveData done [05:36:40]ExternCall_PrintAddStr [05:36:40]wPrintStart [05:36:40]Write to MH i2c: 01 00 00 B6 1E D4 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 B6 1E 00 00 00 00 00 FF 0F E9 [05:36:40]RasterBufferAndPrint [05:36:40]line Счет N : (1)673774 [05:36:40]line ИНН: 02508201610067 [05:36:40]line Контрольно-Кассовый Чек [05:36:40]line ПРОДАЖА [05:36:40]line ТРК (МРК, ГНК) : 11 [05:36:40]line Товар: 2710194210 [05:36:40]line ДТ(л)-К-5 [05:36:40]line 205.770 * 72.90 [05:36:40]line = 15000.63 [05:36:40]line НДС 12% НСП 1% [05:36:40]line > о реализуемом товаре [05:36:40]line ОКРУГЛЕНИЕ: -0.63 [05:36:40]line ИТОГО: 15000.00 [05:36:40]line Внесено: 15000.00 [05:36:40]line СДАЧА: 0.00 [05:36:40]line НСП 1% : 132.75 [05:36:40]line НДС 12% : 1592.99 [05:36:40]line Наличными: 15000.00 [05:36:40]line Безнал.: 0.00 [05:36:40]line Место: АЗС № 120 "Партнер Нефть" [05:36:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:36:40]line СНО: Общий режим [05:36:40]line Чек 18 22.06.2024 05:36 [05:36:40]line Смена: 356 ФФД: 1.0 [05:36:40]line ЗНМ: 0300000164 [05:36:40]line РНМ: 0000000000092785 [05:36:40]line Версия ККМ: 001 [05:36:40]line ФМ: 0000000000875093 [05:36:40]line ФД: 104285 [05:36:40]line ФПД: 169889139294917 [05:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T053641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104285&fm=169889139294917&tin=02508201610067®Number=0000000000092785&sum=1500000 [05:36:40]OFD Sender: Processing packet 104285 [packets to send 17, broken 16] [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00104285 [05:36:40]OFD Sender: To server: pG, [05:36:40]CommunicateWithHost lk.salyk.kg:30040 [05:36:40]ConnectInit lk.salyk.kg [05:36:40]written 0, free lines is 4095 [05:36:40]Connected sock=10 [05:36:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1F C5 08 01 15 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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 E9 62 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A 83 65 CC 82 C5 A9 FD 95 55 FB 5B D4 A2 [05:36: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 21 88 47 00 41 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 5D 97 01 00 F4 03 04 00 69 09 76 66 B6 04 01 00 00 2B 5A B6 7A FF 75 E3 0D [05:36:40]CommunicateWithHost err = 0 [05:36:40]CheckOFDResponse [05:36:40]1017 (14) - 77093643461234 [05:36:40]1041 (16) - 0000000000875093 [05:36:40]1040 (4) - 104285 [05:36:40]1012 (4) - 21.06.2024 23:14 [05:36:40]1206 (1) - 0 [05:36:40]OFD Sender: Remove packet 104285 [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00104285 [05:36:40]NVStorageDeleteData [05:36:40]Write to MH i2c: 01 00 00 E1 1E FF [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 E2 0C F4 [05:36:40]RasterBufferAndPrint [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]written 0, free lines is 3304 [05:36:40]MH_Cut [05:36:40]Write to MH i2c: D1 01 00 E8 1E 01 D8 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 01 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 01 00 E8 1E 00 D7 [05:36:40]Write to MH i2c: 01 00 00 E9 1E 07 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:41]OFD Sender: No OFD packet to send [05:36:41]*** Cut start [05:36:41]*** Partial cut [05:36:41]*** CUTSNS_PIN = 1 [05:36:41]*** CUTSNS_PIN = 0 [05:36:41]*** Brake cut motor [05:36:42]Read from MH i2c: 01 [05:36:42]MH_I2C_Read... [05:36:42]*** Stop cut motor [05:36:42]*** Cut end [05:36:42]Read from MH i2c: 01 07 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: 01 07 00 E9 1E 00 00 00 00 00 FF 0F 1C [05:36:42]process_action close_receipt done [05:36:42]requested_data is exist [05:36:42]produce_requested_data [05:36:42]requested_item fm.sn is exist - process it [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 11 00 00 [05:36:42]Write to MH i2c: E2 08 00 EA 1E 80 11 00 00 00 00 00 00 82 [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 17 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 17 00 EA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [05: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 [05:36:42]wFMCommunicate OK [05:36:42]requested_item fd.num is exist - process it [05:36:42]SAM_PROTO_GetFieldsCounters [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 13 00 00 [05:36:42]Write to MH i2c: E2 08 00 EB 1E 80 13 00 00 00 00 00 00 85 [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 62 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 62 00 EB 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3C [05: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 5D 97 01 00 0E 04 04 00 64 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 [05:36:42]wFMCommunicate OK [05:36:42]SAM_PROTO_GetFieldsCounters done [05:36:42]requested_item shift.num is exist - process it [05:36:42]requested_item shift.opened is exist - process it [05:36:42]req_shift_opened [05:36:42]FM_GetShiftState [05:36:42]SAM_PROTO_GetShiftState [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 13 01 00 [05:36:42]Write to MH i2c: E2 08 00 EC 1E 80 13 01 00 00 00 00 00 87 [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 0E 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 0E 00 EC 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [05:36:42]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [05:36:42]wFMCommunicate OK [05:36:42]SAM_PROTO_GetShiftState done [05:36:42]FM_GetShiftState done [05:36:42]req_shift_opened done [05:36:42]requested_item shift.open_date is exist - process it [05:36:42]req_shift_open_date [05:36:42]req_shift_open_date done [05:36:42]produce_requested_data done [05:36:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104285,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [05:36:42]process_action_free close_receipt [05:36:42]json_value_free [05:36:42]json_value_free done [05:36:42]process_json_proto returns [05:36:42]Send response to host [05:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104285,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [05:36:42]free response buf [05:36:42]execute_script done [05:36:42]execute_script returns [05:36:42]free content buf [05:36:42]Sock 9.Close socket [05:36:42]Sock 9.Thread stoped [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:10]accept exits with 7 [06:06:10]New connection [06:06:10]New thread 3067616612 created [06:06:10]Thread 3067473252 joined [06:06:10]Waiting for new connection... [06:06:10] Sock 7.Parse request [06:06:10]Sock 7.Check first char [06:06:10]Sock 7.First char is OK [06:06:10]request: POST /json_proto HTTP/1.0 [06:06:10]Method: POST [06:06:10]URL: /json_proto [06:06:10]Method is POST - this is cgi request [06:06:10]url: /json_proto [06:06:10]query_string will be loaded in cgi processing [06:06:10]execute_cgi json_proto POST (null) [06:06:10]execute_cgi path=json_proto method=POST [06:06:10]POST find Content-Length [06:06:10]Host: 172.17.38.133:8080 [06:06:10]Content-Length: 687 [06:06:10]Content-Type: application/json [06:06:10] [06:06:10]POST finish read [06:06:10]Found Content-Length = 687 [06:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673775", "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" ] } } [06:06:10]execute_script... [06:06: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)673775", "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" ] } } [06:06:10]POST & json_proto [06:06:10]process_json_proto [06:06:10]json parsed OK: [06:06:10]protocol is kg_v1.0 [06:06:10]action value=close_receipt [06:06:10]process_action close_receipt [06:06:10]cmd_close_receipt [06:06:10]MH_GetDate [06:06:10]Write to MH i2c: F0 00 00 ED 1E FA [06:06:10]Write i2c OK [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: F0 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: F0 09 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: F0 09 00 ED 1E 00 D5 69 76 66 BD 8F 7C 64 49 [06:06:10]GetLastDocTimeStamp 1719034601 [06:06:10]current date 1719036373 [06:06:10]FM_GetShiftState [06:06:10]SAM_PROTO_GetShiftState [06:06:10]wFMCommunicate request_size=4 [06:06:10]MH_SAM_APDU [06:06:10]CAPDU: 80 13 01 00 [06:06:10]Write to MH i2c: E2 08 00 EE 1E 80 13 01 00 00 00 00 00 89 [06:06:10]Write i2c OK [06:06:10]MH_I2C_Read... [06:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:10]Read from MH i2c: E2 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 0E 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 0E 00 EE 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [06:06:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:06:10]wFMCommunicate OK [06:06:10]SAM_PROTO_GetShiftState done [06:06:10]FM_GetShiftState done [06:06:10]opened in 1719016176 [06:06:10]opened+sec_in_day 1719102576 [06:06:10]quantity*price = 200037 [06:06:10]sum+1 = 200039 [06:06:10]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 СНО: Общий режим Чек 19 22.06.2024 06:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104286 ФПД: 74898926205346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T060613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104286&fm=74898926205346&tin=02508201610067®Number=0000000000092785&sum=200000 [06:06:11]StoreToDocumentArchive [06:06:11]shift 356 fd 104286 [06:06:11]save to /storage/0356/doc_00104286 [06:06:11]save last doc name /storage/0356/doc_00104286 to /storage/kkm_last_doc_name [06:06:11]save OK [06:06:11]Clear old archive folders... [06:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:06:11]tlvbuf is 006908C0 [06:06:11]SAM_PROTO_ClearQueue [06:06:11]wFMCommunicate request_size=4 [06:06:11]MH_SAM_APDU [06:06:11]CAPDU: 80 09 00 00 [06:06:11]Write to MH i2c: E2 08 00 FB 1E 80 09 00 00 00 00 00 00 8B [06:06:11]Write i2c OK [06:06:11]MH_I2C_Read... [06:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:11]Read from MH i2c: E2 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [06:06:11]RAPDU: 90 00 [06:06:11]wFMCommunicate OK [06:06:11]SAM_PROTO_ClearQueue done [06:06:11]KKMCreateOFDPacket [06:06:11]OFDProtocolAddRootSTLVToBuf [06:06:11]FM_MakeSignedData [06:06:11]FM_MakeSignedData [06:06:11]SAM_PROTO_SignData [06:06:11]wFMCommunicate request_size=4 [06:06:11]MH_SAM_APDU [06:06:11]CAPDU: 80 0D 01 02 [06:06:11]Write to MH i2c: E2 08 00 FC 1E 80 0D 01 02 00 00 00 00 93 [06:06:11]Write i2c OK [06:06:11]MH_I2C_Read... [06:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:11]Read from MH i2c: E2 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [06:06:11]RAPDU: 90 00 [06:06:11]wFMCommunicate OK [06:06:11]wFMCommunicate request_size=255 [06:06:11]MH_SAM_APDU [06:06: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 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 13 00 00 00 F4 03 04 00 D5 69 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [06:06:11]Write to MH i2c: E2 02 01 FD 1E 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 13 00 00 00 F4 03 04 00 D5 69 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 EA [06:06:11]Write i2c OK [06:06:11]MH_I2C_Read... [06:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:11]Read from MH i2c: E2 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [06:06:11]RAPDU: 90 00 [06:06:11]wFMCommunicate OK [06:06:11]wFMCommunicate request_size=11 [06:06:11]MH_SAM_APDU [06:06:11]CAPDU: 80 0D 02 02 06 44 1E C3 E3 F9 A2 [06:06:11]Write to MH i2c: E2 0E 00 FE 1E 80 0D 02 02 06 00 44 1E C3 E3 F9 A2 00 00 45 [06:06:11]Write i2c OK [06:06:11]MH_I2C_Read... [06:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:11]Read from MH i2c: E2 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 [06:06:11]MH_I2C_Read... [06:06:11]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [06:06:11]RAPDU: 90 00 [06:06:11]wFMCommunicate OK [06:06:11]wFMCommunicate request_size=4 [06:06:11]MH_SAM_APDU [06:06:11]CAPDU: 80 0D 03 02 [06:06:11]Write to MH i2c: E2 08 00 FF 1E 80 0D 03 02 00 00 00 00 98 [06:06:11]Write i2c OK [06:06:11]MH_I2C_Read... [06:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:12]Read from MH i2c: E2 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: E2 0B 00 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: E2 0B 00 FF 1E 00 06 AD 95 33 1B 5F B5 AE 90 00 F1 [06:06:12]RAPDU: 06 AD 95 33 1B 5F B5 AE 90 00 [06:06:12]wFMCommunicate OK [06:06:12]SAM_PROTO_SignData done [06:06:12]FM_MakeSignedData done [06:06:12]CreateOFDProtocolMessage [06:06:12]wFMCommunicate request_size=4 [06:06:12]MH_SAM_APDU [06:06:12]CAPDU: 80 11 00 00 [06:06:12]Write to MH i2c: E2 08 00 00 1F 80 11 00 00 00 00 00 00 99 [06:06:12]Write i2c OK [06:06:12]MH_I2C_Read... [06:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:12]Read from MH i2c: E2 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: E2 17 00 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: E2 17 00 00 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [06: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 [06:06:12]wFMCommunicate OK [06:06:12]CreateOFDProtocolMessage done [06:06:12]OFDSenderStorePacket 104286 [06:06:12]StoreOFDPacket docnum=104286 [06: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 10 01 00 00 8A D7 08 01 03 4E 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 13 00 00 00 F4 03 04 00 D5 69 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 44 1E C3 E3 F9 A2 06 AD 95 33 1B 5F B5 AE [06:06:12]CheckFolder [06:06:12]dirname=/storage/ofd_packets [06:06:12]CheckFolder done [06:06:12]ProducePacketName [06:06:12]name=ofd_packets/00104286 [06:06:12]NVStorageSaveData ofd_packets/00104286 [06:06:12]File name is /storage/ofd_packets/00104286 [06:06:12]Write 302 bytes [06:06:12]NVStorageSaveData done [06:06:12]OFDSenderStorePacket done [06:06:12]KKMCreateOFDPacket done [06:06:12]NVStorageSaveData kkm_last_timestamp [06:06:12]File name is /storage/kkm_last_timestamp [06:06:12]Write 4 bytes [06:06:12]NVStorageSaveData done [06:06:12]ExternCall_PrintAddStr [06:06:12]wPrintStart [06:06:12]Write to MH i2c: 01 00 00 01 1F 20 [06:06:12]Write i2c OK [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 07 00 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 FF 0F 35 [06:06:12]RasterBufferAndPrint [06:06:12]line Счет N : (1)673775 [06:06:12]line ИНН: 02508201610067 [06:06:12]line Контрольно-Кассовый Чек [06:06:12]line ПРОДАЖА [06:06:12]line ТРК (МРК, ГНК) : 21 [06:06:12]line Товар: 2710194210 [06:06:12]line ДТ(л)-К-5 [06:06:12]line 27.440 * 72.90 [06:06:12]line = 2000.38 [06:06:12]line НДС 12% НСП 1% [06:06:12]line > о реализуемом товаре [06:06:12]line ОКРУГЛЕНИЕ: -0.38 [06:06:12]line ИТОГО: 2000.00 [06:06:12]line Внесено: 2000.00 [06:06:12]line СДАЧА: 0.00 [06:06:12]line НСП 1% : 17.70 [06:06:12]line НДС 12% : 212.43 [06:06:12]line Наличными: 2000.00 [06:06:12]line Безнал.: 0.00 [06:06:12]line Место: АЗС № 120 "Партнер Нефть" [06:06:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:06:12]line СНО: Общий режим [06:06:12]line Чек 19 22.06.2024 06:06 [06:06:12]line Смена: 356 ФФД: 1.0 [06:06:12]line ЗНМ: 0300000164 [06:06:12]line РНМ: 0000000000092785 [06:06:12]line Версия ККМ: 001 [06:06:12]line ФМ: 0000000000875093 [06:06:12]line ФД: 104286 [06:06:12]line ФПД: 74898926205346 [06:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T060613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104286&fm=74898926205346&tin=02508201610067®Number=0000000000092785&sum=200000 [06:06:12]OFD Sender: Processing packet 104286 [packets to send 17, broken 16] [06:06:12]ProducePacketName [06:06:12]name=ofd_packets/00104286 [06:06:12]OFD Sender: To server: pG, [06:06:12]CommunicateWithHost lk.salyk.kg:30040 [06:06:12]ConnectInit lk.salyk.kg [06:06:12]written 0, free lines is 4095 [06:06:12]Connected sock=10 [06:06: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 8A D7 08 01 03 4E 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 13 00 00 00 F4 03 04 00 D5 69 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 44 1E C3 E3 F9 A2 06 AD 95 33 1B 5F B5 AE [06:06: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 F2 86 47 00 93 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 5E 97 01 00 F4 03 04 00 55 10 76 66 B6 04 01 00 00 0E 78 7B 6B 81 D1 D7 4E [06:06:12]CommunicateWithHost err = 0 [06:06:12]CheckOFDResponse [06:06:12]1017 (14) - 77093643461234 [06:06:12]1041 (16) - 0000000000875093 [06:06:12]1040 (4) - 104286 [06:06:12]1012 (4) - 21.06.2024 23:44 [06:06:12]1206 (1) - 0 [06:06:12]OFD Sender: Remove packet 104286 [06:06:12]ProducePacketName [06:06:12]name=ofd_packets/00104286 [06:06:12]NVStorageDeleteData [06:06:12]Write to MH i2c: 01 00 00 2C 1F 4B [06:06:12]Write i2c OK [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 07 00 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: 01 07 00 2C 1F 00 00 00 00 00 DF 0C 3D [06:06:12]RasterBufferAndPrint [06:06:12]line [06:06:12]line [06:06:12]line [06:06:12]line [06:06:12]line [06:06:12]written 0, free lines is 3301 [06:06:12]MH_Cut [06:06:12]Write to MH i2c: D1 01 00 33 1F 01 24 [06:06:12]Write i2c OK [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: D1 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: D1 01 00 [06:06:12]MH_I2C_Read... [06:06:12]Read from MH i2c: D1 01 00 33 1F 00 23 [06:06:12]Write to MH i2c: 01 00 00 34 1F 53 [06:06:12]Write i2c OK [06:06:12]MH_I2C_Read... [06:06:13]OFD Sender: No OFD packet to send [06:06:13]*** Cut start [06:06:13]*** Partial cut [06:06:13]*** CUTSNS_PIN = 1 [06:06:13]*** CUTSNS_PIN = 0 [06:06:13]*** Brake cut motor [06:06:14]Read from MH i2c: 01 [06:06:14]MH_I2C_Read... [06:06:14]*** Stop cut motor [06:06:14]*** Cut end [06:06:14]Read from MH i2c: 01 07 00 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: 01 07 00 34 1F 00 00 00 00 00 FF 0F 68 [06:06:14]process_action close_receipt done [06:06:14]requested_data is exist [06:06:14]produce_requested_data [06:06:14]requested_item fm.sn is exist - process it [06:06:14]wFMCommunicate request_size=4 [06:06:14]MH_SAM_APDU [06:06:14]CAPDU: 80 11 00 00 [06:06:14]Write to MH i2c: E2 08 00 35 1F 80 11 00 00 00 00 00 00 CE [06:06:14]Write i2c OK [06:06:14]MH_I2C_Read... [06:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:14]Read from MH i2c: E2 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 17 00 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 17 00 35 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [06: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 [06:06:14]wFMCommunicate OK [06:06:14]requested_item fd.num is exist - process it [06:06:14]SAM_PROTO_GetFieldsCounters [06:06:14]wFMCommunicate request_size=4 [06:06:14]MH_SAM_APDU [06:06:14]CAPDU: 80 13 00 00 [06:06:14]Write to MH i2c: E2 08 00 36 1F 80 13 00 00 00 00 00 00 D1 [06:06:14]Write i2c OK [06:06:14]MH_I2C_Read... [06:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:14]Read from MH i2c: E2 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 62 00 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 62 00 36 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 8C [06:06: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 97 01 00 0E 04 04 00 64 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 [06:06:14]wFMCommunicate OK [06:06:14]SAM_PROTO_GetFieldsCounters done [06:06:14]requested_item shift.num is exist - process it [06:06:14]requested_item shift.opened is exist - process it [06:06:14]req_shift_opened [06:06:14]FM_GetShiftState [06:06:14]SAM_PROTO_GetShiftState [06:06:14]wFMCommunicate request_size=4 [06:06:14]MH_SAM_APDU [06:06:14]CAPDU: 80 13 01 00 [06:06:14]Write to MH i2c: E2 08 00 37 1F 80 13 01 00 00 00 00 00 D3 [06:06:14]Write i2c OK [06:06:14]MH_I2C_Read... [06:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:14]Read from MH i2c: E2 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 0E 00 [06:06:14]MH_I2C_Read... [06:06:14]Read from MH i2c: E2 0E 00 37 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [06:06:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:06:14]wFMCommunicate OK [06:06:14]SAM_PROTO_GetShiftState done [06:06:14]FM_GetShiftState done [06:06:14]req_shift_opened done [06:06:14]requested_item shift.open_date is exist - process it [06:06:14]req_shift_open_date [06:06:14]req_shift_open_date done [06:06:14]produce_requested_data done [06:06:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104286,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [06:06:14]process_action_free close_receipt [06:06:14]json_value_free [06:06:14]json_value_free done [06:06:14]process_json_proto returns [06:06:14]Send response to host [06:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104286,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [06:06:14]free response buf [06:06:14]execute_script done [06:06:14]execute_script returns [06:06:14]free content buf [06:06:14]Sock 7.Close socket [06:06:14]Sock 7.Thread stoped [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:24]accept exits with 9 [06:07:24]New connection [06:07:24]New thread 3067473252 created [06:07:24]Thread 3067616612 joined [06:07:24]Waiting for new connection... [06:07:24] Sock 9.Parse request [06:07:24]Sock 9.Check first char [06:07:24]Sock 9.First char is OK [06:07:24]request: POST /json_proto HTTP/1.0 [06:07:24]Method: POST [06:07:24]URL: /json_proto [06:07:24]Method is POST - this is cgi request [06:07:24]url: /json_proto [06:07:24]query_string will be loaded in cgi processing [06:07:24]execute_cgi json_proto POST (null) [06:07:24]execute_cgi path=json_proto method=POST [06:07:24]POST find Content-Length [06:07:24]Host: 172.17.38.133:8080 [06:07:24]Content-Length: 682 [06:07:24]Content-Type: application/json [06:07:24] [06:07:24]POST finish read [06:07:24]Found Content-Length = 682 [06:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673776", "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" : 5.490, "sum" : 400.22, "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:07:24]execute_script... [06:07: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)673776", "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" : 5.490, "sum" : 400.22, "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:07:24]POST & json_proto [06:07:24]process_json_proto [06:07:24]json parsed OK: [06:07:24]protocol is kg_v1.0 [06:07:24]action value=close_receipt [06:07:24]process_action close_receipt [06:07:24]cmd_close_receipt [06:07:24]MH_GetDate [06:07:24]Write to MH i2c: F0 00 00 38 1F 46 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: F0 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: F0 09 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: F0 09 00 38 1F 00 20 6A 76 66 BD 8F 7C 64 E1 [06:07:24]GetLastDocTimeStamp 1719036373 [06:07:24]current date 1719036448 [06:07:24]FM_GetShiftState [06:07:24]SAM_PROTO_GetShiftState [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 13 01 00 [06:07:24]Write to MH i2c: E2 08 00 39 1F 80 13 01 00 00 00 00 00 D5 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0E 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0E 00 39 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C7 [06:07:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:07:24]wFMCommunicate OK [06:07:24]SAM_PROTO_GetShiftState done [06:07:24]FM_GetShiftState done [06:07:24]opened in 1719016176 [06:07:24]opened+sec_in_day 1719102576 [06:07:24]quantity*price = 40022 [06:07:24]sum+1 = 40023 [06:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 22.06.2024 06:07 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104287 ФПД: 12221836368015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T060728&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104287&fm=12221836368015&tin=02508201610067®Number=0000000000092785&sum=40000 [06:07:26]StoreToDocumentArchive [06:07:26]shift 356 fd 104287 [06:07:26]save to /storage/0356/doc_00104287 [06:07:26]save last doc name /storage/0356/doc_00104287 to /storage/kkm_last_doc_name [06:07:26]save OK [06:07:26]Clear old archive folders... [06:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:07:26]tlvbuf is B6F4A8C0 [06:07:26]SAM_PROTO_ClearQueue [06:07:26]wFMCommunicate request_size=4 [06:07:26]MH_SAM_APDU [06:07:26]CAPDU: 80 09 00 00 [06:07:26]Write to MH i2c: E2 08 00 46 1F 80 09 00 00 00 00 00 00 D7 [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:26]Read from MH i2c: E2 03 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 46 1F 00 90 00 D9 [06:07:26]RAPDU: 90 00 [06:07:26]wFMCommunicate OK [06:07:26]SAM_PROTO_ClearQueue done [06:07:26]KKMCreateOFDPacket [06:07:26]OFDProtocolAddRootSTLVToBuf [06:07:26]FM_MakeSignedData [06:07:26]FM_MakeSignedData [06:07:26]SAM_PROTO_SignData [06:07:26]wFMCommunicate request_size=4 [06:07:26]MH_SAM_APDU [06:07:26]CAPDU: 80 0D 01 02 [06:07:26]Write to MH i2c: E2 08 00 47 1F 80 0D 01 02 00 00 00 00 DF [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 47 1F 00 90 00 DA [06:07:26]RAPDU: 90 00 [06:07:26]wFMCommunicate OK [06:07:26]wFMCommunicate request_size=255 [06:07:26]MH_SAM_APDU [06:07:26]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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 20 6A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [06:07:26]Write to MH i2c: E2 02 01 48 1F 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 20 6A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D4 [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [06:07:26]RAPDU: 90 00 [06:07:26]wFMCommunicate OK [06:07:26]wFMCommunicate request_size=11 [06:07:26]MH_SAM_APDU [06:07:26]CAPDU: 80 0D 02 02 06 0B 1D 9E 37 18 8F [06:07:26]Write to MH i2c: E2 0E 00 49 1F 80 0D 02 02 06 00 0B 1D 9E 37 18 8F 00 00 92 [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [06:07:26]RAPDU: 90 00 [06:07:26]wFMCommunicate OK [06:07:26]wFMCommunicate request_size=4 [06:07:26]MH_SAM_APDU [06:07:26]CAPDU: 80 0D 03 02 [06:07:26]Write to MH i2c: E2 08 00 4A 1F 80 0D 03 02 00 00 00 00 E4 [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 0B 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 0B 00 4A 1F 00 3B 5B CA CC FF 2B 07 19 90 00 5B [06:07:26]RAPDU: 3B 5B CA CC FF 2B 07 19 90 00 [06:07:26]wFMCommunicate OK [06:07:26]SAM_PROTO_SignData done [06:07:26]FM_MakeSignedData done [06:07:26]CreateOFDProtocolMessage [06:07:26]wFMCommunicate request_size=4 [06:07:26]MH_SAM_APDU [06:07:26]CAPDU: 80 11 00 00 [06:07:26]Write to MH i2c: E2 08 00 4B 1F 80 11 00 00 00 00 00 00 E4 [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:26]Read from MH i2c: E2 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 17 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: E2 17 00 4B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [06: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 [06:07:26]wFMCommunicate OK [06:07:26]CreateOFDProtocolMessage done [06:07:26]OFDSenderStorePacket 104287 [06:07:26]StoreOFDPacket docnum=104287 [06:07: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 10 01 00 00 A5 0E 08 01 1A EC 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 20 6A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 1D 9E 37 18 8F 3B 5B CA CC FF 2B 07 19 [06:07:26]CheckFolder [06:07:26]dirname=/storage/ofd_packets [06:07:26]CheckFolder done [06:07:26]ProducePacketName [06:07:26]name=ofd_packets/00104287 [06:07:26]NVStorageSaveData ofd_packets/00104287 [06:07:26]File name is /storage/ofd_packets/00104287 [06:07:26]Write 302 bytes [06:07:26]NVStorageSaveData done [06:07:26]OFDSenderStorePacket done [06:07:26]KKMCreateOFDPacket done [06:07:26]NVStorageSaveData kkm_last_timestamp [06:07:26]File name is /storage/kkm_last_timestamp [06:07:26]Write 4 bytes [06:07:26]NVStorageSaveData done [06:07:26]ExternCall_PrintAddStr [06:07:26]wPrintStart [06:07:26]Write to MH i2c: 01 00 00 4C 1F 6B [06:07:26]Write i2c OK [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: 01 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: 01 07 00 [06:07:26]MH_I2C_Read... [06:07:26]Read from MH i2c: 01 07 00 4C 1F 00 00 00 00 00 FF 0F 80 [06:07:26]RasterBufferAndPrint [06:07:26]line Счет N : (1)673776 [06:07:26]line ИНН: 02508201610067 [06:07:26]line Контрольно-Кассовый Чек [06:07:26]line ПРОДАЖА [06:07:26]line ТРК (МРК, ГНК) : 11 [06:07:26]line Товар: 2710194210 [06:07:26]line ДТ(л)-К-5 [06:07:26]line 5.490 * 72.90 [06:07:26]line = 400.22 [06:07:26]line НДС 12% НСП 1% [06:07:26]line > о реализуемом товаре [06:07:26]line ОКРУГЛЕНИЕ: -0.22 [06:07:26]line ИТОГО: 400.00 [06:07:26]line Внесено: 400.00 [06:07:26]line СДАЧА: 0.00 [06:07:26]line НСП 1% : 3.54 [06:07:26]line НДС 12% : 42.50 [06:07:26]line Наличными: 400.00 [06:07:26]line Безнал.: 0.00 [06:07:26]line Место: АЗС № 120 "Партнер Нефть" [06:07:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:07:26]line СНО: Общий режим [06:07:26]line Чек 20 22.06.2024 06:07 [06:07:26]line Смена: 356 ФФД: 1.0 [06:07:26]line ЗНМ: 0300000164 [06:07:26]line РНМ: 0000000000092785 [06:07:26]line Версия ККМ: 001 [06:07:26]line ФМ: 0000000000875093 [06:07:26]line ФД: 104287 [06:07:26]line ФПД: 12221836368015 [06:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T060728&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104287&fm=12221836368015&tin=02508201610067®Number=0000000000092785&sum=40000 [06:07:26]OFD Sender: Processing packet 104287 [packets to send 17, broken 16] [06:07:26]ProducePacketName [06:07:26]name=ofd_packets/00104287 [06:07:26]OFD Sender: To server: pG, [06:07:26]CommunicateWithHost lk.salyk.kg:30040 [06:07:26]ConnectInit lk.salyk.kg [06:07:26]written 0, free lines is 4095 [06:07:27]Connected sock=10 [06: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 10 01 00 00 A5 0E 08 01 1A EC 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 20 6A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 1D 9E 37 18 8F 3B 5B CA CC FF 2B 07 19 [06:07: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 60 B4 47 00 62 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 5F 97 01 00 F4 03 04 00 A0 10 76 66 B6 04 01 00 00 DF 95 18 B5 A3 0E 65 C7 [06:07:27]CommunicateWithHost err = 0 [06:07:27]CheckOFDResponse [06:07:27]1017 (14) - 77093643461234 [06:07:27]1041 (16) - 0000000000875093 [06:07:27]1040 (4) - 104287 [06:07:27]1012 (4) - 21.06.2024 23:45 [06:07:27]1206 (1) - 0 [06:07:27]OFD Sender: Remove packet 104287 [06:07:27]ProducePacketName [06:07:27]name=ofd_packets/00104287 [06:07:27]NVStorageDeleteData [06:07:27]Write to MH i2c: 01 00 00 77 1F 96 [06:07:27]Write i2c OK [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: 01 [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: 01 07 00 [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 D4 0C 7D [06:07:27]RasterBufferAndPrint [06:07:27]line [06:07:27]line [06:07:27]line [06:07:27]line [06:07:27]line [06:07:27]written 0, free lines is 3292 [06:07:27]MH_Cut [06:07:27]Write to MH i2c: D1 01 00 7E 1F 01 6F [06:07:27]Write i2c OK [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: D1 [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: D1 01 00 [06:07:27]MH_I2C_Read... [06:07:27]Read from MH i2c: D1 01 00 7E 1F 00 6E [06:07:27]Write to MH i2c: 01 00 00 7F 1F 9E [06:07:27]Write i2c OK [06:07:27]MH_I2C_Read... [06:07:27]OFD Sender: No OFD packet to send [06:07:28]*** Cut start [06:07:28]*** Partial cut [06:07:28]*** CUTSNS_PIN = 1 [06:07:28]*** CUTSNS_PIN = 0 [06:07:28]*** Brake cut motor [06:07:28]Read from MH i2c: 01 [06:07:28]MH_I2C_Read... [06:07:28]*** Stop cut motor [06:07:28]*** Cut end [06:07:28]Read from MH i2c: 01 07 00 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 FF 0F B3 [06:07:28]process_action close_receipt done [06:07:28]requested_data is exist [06:07:28]produce_requested_data [06:07:28]requested_item fm.sn is exist - process it [06:07:28]wFMCommunicate request_size=4 [06:07:28]MH_SAM_APDU [06:07:28]CAPDU: 80 11 00 00 [06:07:28]Write to MH i2c: E2 08 00 80 1F 80 11 00 00 00 00 00 00 19 [06:07:28]Write i2c OK [06:07:28]MH_I2C_Read... [06:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:28]Read from MH i2c: E2 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 17 00 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 17 00 80 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [06:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:07:28]wFMCommunicate OK [06:07:28]requested_item fd.num is exist - process it [06:07:28]SAM_PROTO_GetFieldsCounters [06:07:28]wFMCommunicate request_size=4 [06:07:28]MH_SAM_APDU [06:07:28]CAPDU: 80 13 00 00 [06:07:28]Write to MH i2c: E2 08 00 81 1F 80 13 00 00 00 00 00 00 1C [06:07:28]Write i2c OK [06:07:28]MH_I2C_Read... [06:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:28]Read from MH i2c: E2 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 62 00 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 62 00 81 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 DB [06:07: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 5F 97 01 00 0E 04 04 00 64 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 [06:07:28]wFMCommunicate OK [06:07:28]SAM_PROTO_GetFieldsCounters done [06:07:28]requested_item shift.num is exist - process it [06:07:28]requested_item shift.opened is exist - process it [06:07:28]req_shift_opened [06:07:28]FM_GetShiftState [06:07:28]SAM_PROTO_GetShiftState [06:07:28]wFMCommunicate request_size=4 [06:07:28]MH_SAM_APDU [06:07:28]CAPDU: 80 13 01 00 [06:07:28]Write to MH i2c: E2 08 00 82 1F 80 13 01 00 00 00 00 00 1E [06:07:28]Write i2c OK [06:07:28]MH_I2C_Read... [06:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:28]Read from MH i2c: E2 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 0E 00 [06:07:28]MH_I2C_Read... [06:07:28]Read from MH i2c: E2 0E 00 82 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 10 [06:07:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:07:28]wFMCommunicate OK [06:07:28]SAM_PROTO_GetShiftState done [06:07:28]FM_GetShiftState done [06:07:28]req_shift_opened done [06:07:28]requested_item shift.open_date is exist - process it [06:07:28]req_shift_open_date [06:07:28]req_shift_open_date done [06:07:28]produce_requested_data done [06:07:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104287,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [06:07:28]process_action_free close_receipt [06:07:28]json_value_free [06:07:28]json_value_free done [06:07:28]process_json_proto returns [06:07:28]Send response to host [06:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104287,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [06:07:28]free response buf [06:07:28]execute_script done [06:07:28]execute_script returns [06:07:28]free content buf [06:07:28]Sock 9.Close socket [06:07:28]Sock 9.Thread stoped [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]accept exits with 7 [06:15:08]New connection [06:15:08]New thread 3067616612 created [06:15:08]Thread 3067473252 joined [06:15:08]Waiting for new connection... [06:15:08] Sock 7.Parse request [06:15:08]Sock 7.Check first char [06:15:08]Sock 7.First char is OK [06:15:08]request: POST /json_proto HTTP/1.0 [06:15:08]Method: POST [06:15:08]URL: /json_proto [06:15:08]Method is POST - this is cgi request [06:15:08]url: /json_proto [06:15:08]query_string will be loaded in cgi processing [06:15:08]execute_cgi json_proto POST (null) [06:15:08]execute_cgi path=json_proto method=POST [06:15:08]POST find Content-Length [06:15:08]Host: 172.17.38.133:8080 [06:15:08]Content-Length: 682 [06:15:08]Content-Type: application/json [06:15:08] [06:15:08]POST finish read [06:15:08]Found Content-Length = 682 [06:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673777", "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" ] } } [06:15:08]execute_script... [06:15: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)673777", "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" ] } } [06:15:08]POST & json_proto [06:15:08]process_json_proto [06:15:08]json parsed OK: [06:15:08]protocol is kg_v1.0 [06:15:08]action value=close_receipt [06:15:08]process_action close_receipt [06:15:08]cmd_close_receipt [06:15:08]MH_GetDate [06:15:08]Write to MH i2c: F0 00 00 83 1F 91 [06:15:08]Write i2c OK [06:15:08]MH_I2C_Read... [06:15:08]Read from MH i2c: F0 [06:15:08]MH_I2C_Read... [06:15:08]Read from MH i2c: F0 09 00 [06:15:08]MH_I2C_Read... [06:15:08]Read from MH i2c: F0 09 00 83 1F 00 EF 6B 76 66 BD 8F 7C 64 FC [06:15:08]GetLastDocTimeStamp 1719036448 [06:15:08]current date 1719036911 [06:15:08]FM_GetShiftState [06:15:08]SAM_PROTO_GetShiftState [06:15:08]wFMCommunicate request_size=4 [06:15:08]MH_SAM_APDU [06:15:08]CAPDU: 80 13 01 00 [06:15:08]Write to MH i2c: E2 08 00 84 1F 80 13 01 00 00 00 00 00 20 [06:15:08]Write i2c OK [06:15:08]MH_I2C_Read... [06:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:08]Read from MH i2c: E2 [06:15:08]MH_I2C_Read... [06:15:08]Read from MH i2c: E2 0E 00 [06:15:08]MH_I2C_Read... [06:15:08]Read from MH i2c: E2 0E 00 84 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 12 [06:15:08]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:15:08]wFMCommunicate OK [06:15:08]SAM_PROTO_GetShiftState done [06:15:08]FM_GetShiftState done [06:15:08]opened in 1719016176 [06:15:08]opened+sec_in_day 1719102576 [06:15:08]quantity*price = 140037 [06:15:08]sum+1 = 140039 [06:15:08]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 СНО: Общий режим Чек 21 22.06.2024 06:15 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104288 ФПД: 116307115350933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T061511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104288&fm=116307115350933&tin=02508201610067®Number=0000000000092785&sum=140000 [06:15:09]StoreToDocumentArchive [06:15:09]shift 356 fd 104288 [06:15:09]save to /storage/0356/doc_00104288 [06:15:09]save last doc name /storage/0356/doc_00104288 to /storage/kkm_last_doc_name [06:15:09]save OK [06:15:09]Clear old archive folders... [06:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:15:09]tlvbuf is 006909D0 [06:15:09]SAM_PROTO_ClearQueue [06:15:09]wFMCommunicate request_size=4 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 09 00 00 [06:15:09]Write to MH i2c: E2 08 00 91 1F 80 09 00 00 00 00 00 00 22 [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:09]Read from MH i2c: E2 03 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 91 1F 00 90 00 24 [06:15:09]RAPDU: 90 00 [06:15:09]wFMCommunicate OK [06:15:09]SAM_PROTO_ClearQueue done [06:15:09]KKMCreateOFDPacket [06:15:09]OFDProtocolAddRootSTLVToBuf [06:15:09]FM_MakeSignedData [06:15:09]FM_MakeSignedData [06:15:09]SAM_PROTO_SignData [06:15:09]wFMCommunicate request_size=4 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 0D 01 02 [06:15:09]Write to MH i2c: E2 08 00 92 1F 80 0D 01 02 00 00 00 00 2A [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [06:15:09]RAPDU: 90 00 [06:15:09]wFMCommunicate OK [06:15:09]wFMCommunicate request_size=255 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 EF 6B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 69 [06:15:09]Write to MH i2c: E2 02 01 93 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 EF 6B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 69 00 00 67 [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [06:15:09]RAPDU: 90 00 [06:15:09]wFMCommunicate OK [06:15:09]wFMCommunicate request_size=10 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 0D 02 02 05 C7 DC 4B 9B 95 [06:15:09]Write to MH i2c: E2 0D 00 94 1F 80 0D 02 02 05 00 C7 DC 4B 9B 95 00 00 55 [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [06:15:09]RAPDU: 90 00 [06:15:09]wFMCommunicate OK [06:15:09]wFMCommunicate request_size=4 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 0D 03 02 [06:15:09]Write to MH i2c: E2 08 00 95 1F 80 0D 03 02 00 00 00 00 2F [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 0B 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 0B 00 95 1F 00 61 EC EE AF 6B 28 BC 49 90 00 B2 [06:15:09]RAPDU: 61 EC EE AF 6B 28 BC 49 90 00 [06:15:09]wFMCommunicate OK [06:15:09]SAM_PROTO_SignData done [06:15:09]FM_MakeSignedData done [06:15:09]CreateOFDProtocolMessage [06:15:09]wFMCommunicate request_size=4 [06:15:09]MH_SAM_APDU [06:15:09]CAPDU: 80 11 00 00 [06:15:09]Write to MH i2c: E2 08 00 96 1F 80 11 00 00 00 00 00 00 2F [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:09]Read from MH i2c: E2 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 17 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: E2 17 00 96 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [06:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:15:09]wFMCommunicate OK [06:15:09]CreateOFDProtocolMessage done [06:15:09]OFDSenderStorePacket 104288 [06:15:09]StoreOFDPacket docnum=104288 [06:15: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 E6 1C 07 01 EA F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 EF 6B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 69 C7 DC 4B 9B 95 61 EC EE AF 6B 28 BC 49 [06:15:09]CheckFolder [06:15:09]dirname=/storage/ofd_packets [06:15:09]CheckFolder done [06:15:09]ProducePacketName [06:15:09]name=ofd_packets/00104288 [06:15:09]NVStorageSaveData ofd_packets/00104288 [06:15:09]File name is /storage/ofd_packets/00104288 [06:15:09]Write 301 bytes [06:15:09]NVStorageSaveData done [06:15:09]OFDSenderStorePacket done [06:15:09]KKMCreateOFDPacket done [06:15:09]NVStorageSaveData kkm_last_timestamp [06:15:09]File name is /storage/kkm_last_timestamp [06:15:09]Write 4 bytes [06:15:09]NVStorageSaveData done [06:15:09]ExternCall_PrintAddStr [06:15:09]wPrintStart [06:15:09]Write to MH i2c: 01 00 00 97 1F B6 [06:15:09]Write i2c OK [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: 01 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: 01 07 00 [06:15:09]MH_I2C_Read... [06:15:09]Read from MH i2c: 01 07 00 97 1F 00 00 00 00 00 FF 0F CB [06:15:09]RasterBufferAndPrint [06:15:09]line Счет N : (1)673777 [06:15:09]line ИНН: 02508201610067 [06:15:09]line Контрольно-Кассовый Чек [06:15:09]line ПРОДАЖА [06:15:09]line ТРК (МРК, ГНК) : 42 [06:15:09]line Товар: 2710124130 [06:15:09]line Аи-92-К-5 [06:15:09]line 21.090 * 66.40 [06:15:09]line = 1400.38 [06:15:09]line НДС 12% НСП 1% [06:15:09]line > о реализуемом товаре [06:15:09]line ОКРУГЛЕНИЕ: -0.38 [06:15:09]line ИТОГО: 1400.00 [06:15:09]line Внесено: 1400.00 [06:15:09]line СДАЧА: 0.00 [06:15:09]line НСП 1% : 12.39 [06:15:09]line НДС 12% : 148.71 [06:15:09]line Наличными: 1400.00 [06:15:09]line Безнал.: 0.00 [06:15:09]line Место: АЗС № 120 "Партнер Нефть" [06:15:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:15:09]line СНО: Общий режим [06:15:09]line Чек 21 22.06.2024 06:15 [06:15:09]line Смена: 356 ФФД: 1.0 [06:15:09]line ЗНМ: 0300000164 [06:15:09]line РНМ: 0000000000092785 [06:15:09]line Версия ККМ: 001 [06:15:09]line ФМ: 0000000000875093 [06:15:09]line ФД: 104288 [06:15:09]line ФПД: 116307115350933 [06:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T061511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104288&fm=116307115350933&tin=02508201610067®Number=0000000000092785&sum=140000 [06:15:09]written 0, free lines is 4095 [06:15:09]OFD Sender: Processing packet 104288 [packets to send 17, broken 16] [06:15:09]ProducePacketName [06:15:09]name=ofd_packets/00104288 [06:15:09]OFD Sender: To server: pG, [06:15:09]CommunicateWithHost lk.salyk.kg:30040 [06:15:09]ConnectInit lk.salyk.kg [06:15:10]Connected sock=10 [06:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E6 1C 07 01 EA F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 EF 6B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 69 C7 DC 4B 9B 95 61 EC EE AF 6B 28 BC 49 [06:15:10]Write to MH i2c: 01 00 00 C2 1F E1 [06:15:10]Write i2c OK [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: 01 [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: 01 07 00 [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: 01 07 00 C2 1F 00 00 00 00 00 E1 0C D5 [06:15:10]RasterBufferAndPrint [06:15:10]line [06:15:10]line [06:15:10]line [06:15:10]line [06:15:10]line [06:15:10]written 0, free lines is 3302 [06:15: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 A3 E7 47 00 BB 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 60 97 01 00 F4 03 04 00 6F 12 76 66 B6 04 01 00 00 45 FF 73 03 22 ED DB F6 [06:15:10]CommunicateWithHost err = 0 [06:15:10]CheckOFDResponse [06:15:10]1017 (14) - 77093643461234 [06:15:10]1041 (16) - 0000000000875093 [06:15:10]1040 (4) - 104288 [06:15:10]1012 (4) - 21.06.2024 23:53 [06:15:10]1206 (1) - 0 [06:15:10]OFD Sender: Remove packet 104288 [06:15:10]ProducePacketName [06:15:10]name=ofd_packets/00104288 [06:15:10]NVStorageDeleteData [06:15:10]MH_Cut [06:15:10]Write to MH i2c: D1 01 00 C9 1F 01 BA [06:15:10]Write i2c OK [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: D1 [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: D1 01 00 [06:15:10]MH_I2C_Read... [06:15:10]Read from MH i2c: D1 01 00 C9 1F 00 B9 [06:15:10]Write to MH i2c: 01 00 00 CA 1F E9 [06:15:10]Write i2c OK [06:15:10]MH_I2C_Read... [06:15:10]OFD Sender: No OFD packet to send [06:15:11]*** Cut start [06:15:11]*** Partial cut [06:15:11]*** CUTSNS_PIN = 1 [06:15:11]*** CUTSNS_PIN = 0 [06:15:11]*** Brake cut motor [06:15:11]Read from MH i2c: 01 [06:15:11]MH_I2C_Read... [06:15:11]*** Stop cut motor [06:15:11]*** Cut end [06:15:11]Read from MH i2c: 01 07 00 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: 01 07 00 CA 1F 00 00 00 00 00 FF 0F FE [06:15:11]process_action close_receipt done [06:15:11]requested_data is exist [06:15:11]produce_requested_data [06:15:11]requested_item fm.sn is exist - process it [06:15:11]wFMCommunicate request_size=4 [06:15:11]MH_SAM_APDU [06:15:11]CAPDU: 80 11 00 00 [06:15:11]Write to MH i2c: E2 08 00 CB 1F 80 11 00 00 00 00 00 00 64 [06:15:11]Write i2c OK [06:15:11]MH_I2C_Read... [06:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:11]Read from MH i2c: E2 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 17 00 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 17 00 CB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [06:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:15:11]wFMCommunicate OK [06:15:11]requested_item fd.num is exist - process it [06:15:11]SAM_PROTO_GetFieldsCounters [06:15:11]wFMCommunicate request_size=4 [06:15:11]MH_SAM_APDU [06:15:11]CAPDU: 80 13 00 00 [06:15:11]Write to MH i2c: E2 08 00 CC 1F 80 13 00 00 00 00 00 00 67 [06:15:11]Write i2c OK [06:15:11]MH_I2C_Read... [06:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:11]Read from MH i2c: E2 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 62 00 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 62 00 CC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2A [06:15: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 60 97 01 00 0E 04 04 00 64 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 [06:15:11]wFMCommunicate OK [06:15:11]SAM_PROTO_GetFieldsCounters done [06:15:11]requested_item shift.num is exist - process it [06:15:11]requested_item shift.opened is exist - process it [06:15:11]req_shift_opened [06:15:11]FM_GetShiftState [06:15:11]SAM_PROTO_GetShiftState [06:15:11]wFMCommunicate request_size=4 [06:15:11]MH_SAM_APDU [06:15:11]CAPDU: 80 13 01 00 [06:15:11]Write to MH i2c: E2 08 00 CD 1F 80 13 01 00 00 00 00 00 69 [06:15:11]Write i2c OK [06:15:11]MH_I2C_Read... [06:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:11]Read from MH i2c: E2 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 0E 00 [06:15:11]MH_I2C_Read... [06:15:11]Read from MH i2c: E2 0E 00 CD 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5B [06:15:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:15:11]wFMCommunicate OK [06:15:11]SAM_PROTO_GetShiftState done [06:15:11]FM_GetShiftState done [06:15:11]req_shift_opened done [06:15:11]requested_item shift.open_date is exist - process it [06:15:11]req_shift_open_date [06:15:11]req_shift_open_date done [06:15:11]produce_requested_data done [06:15:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104288,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [06:15:11]process_action_free close_receipt [06:15:11]json_value_free [06:15:11]json_value_free done [06:15:11]process_json_proto returns [06:15:11]Send response to host [06:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104288,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [06:15:11]free response buf [06:15:11]execute_script done [06:15:11]execute_script returns [06:15:11]free content buf [06:15:11]Sock 7.Close socket [06:15:11]Sock 7.Thread stoped [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]accept exits with 9 [06:16:20]New connection [06:16:20]New thread 3067473252 created [06:16:20]Thread 3067616612 joined [06:16:20]Waiting for new connection... [06:16:20] Sock 9.Parse request [06:16:20]Sock 9.Check first char [06:16:20]Sock 9.First char is OK [06:16:20]request: POST /json_proto HTTP/1.0 [06:16:20]Method: POST [06:16:20]URL: /json_proto [06:16:20]Method is POST - this is cgi request [06:16:20]url: /json_proto [06:16:20]query_string will be loaded in cgi processing [06:16:20]execute_cgi json_proto POST (null) [06:16:20]execute_cgi path=json_proto method=POST [06:16:20]POST find Content-Length [06:16:20]Host: 172.17.38.133:8080 [06:16:20]Content-Length: 677 [06:16:20]Content-Type: application/json [06:16:20] [06:16:20]POST finish read [06:16:20]Found Content-Length = 677 [06:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673778", "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" ] } } [06:16:20]execute_script... [06:16: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)673778", "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" ] } } [06:16:20]POST & json_proto [06:16:20]process_json_proto [06:16:20]json parsed OK: [06:16:20]protocol is kg_v1.0 [06:16:20]action value=close_receipt [06:16:20]process_action close_receipt [06:16:20]cmd_close_receipt [06:16:20]MH_GetDate [06:16:20]Write to MH i2c: F0 00 00 CE 1F DC [06:16:20]Write i2c OK [06:16:20]MH_I2C_Read... [06:16:20]Read from MH i2c: F0 [06:16:20]MH_I2C_Read... [06:16:20]Read from MH i2c: F0 09 00 [06:16:20]MH_I2C_Read... [06:16:20]Read from MH i2c: F0 09 00 CE 1F 00 37 6C 76 66 BD 8F 7C 64 90 [06:16:20]GetLastDocTimeStamp 1719036911 [06:16:20]current date 1719036983 [06:16:20]FM_GetShiftState [06:16:20]SAM_PROTO_GetShiftState [06:16:20]wFMCommunicate request_size=4 [06:16:20]MH_SAM_APDU [06:16:20]CAPDU: 80 13 01 00 [06:16:20]Write to MH i2c: E2 08 00 CF 1F 80 13 01 00 00 00 00 00 6B [06:16:20]Write i2c OK [06:16:20]MH_I2C_Read... [06:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:20]Read from MH i2c: E2 [06:16:20]MH_I2C_Read... [06:16:20]Read from MH i2c: E2 0E 00 [06:16:20]MH_I2C_Read... [06:16:20]Read from MH i2c: E2 0E 00 CF 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5D [06:16:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:16:20]wFMCommunicate OK [06:16:20]SAM_PROTO_GetShiftState done [06:16:20]FM_GetShiftState done [06:16:20]opened in 1719016176 [06:16:20]opened+sec_in_day 1719102576 [06:16:20]quantity*price = 20052 [06:16:20]sum+1 = 20054 [06:16:20]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 СНО: Общий режим Чек 22 22.06.2024 06:16 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104289 ФПД: 213637721174152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T061623&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104289&fm=213637721174152&tin=02508201610067®Number=0000000000092785&sum=20000 [06:16:21]StoreToDocumentArchive [06:16:21]shift 356 fd 104289 [06:16:21]save to /storage/0356/doc_00104289 [06:16:21]save last doc name /storage/0356/doc_00104289 to /storage/kkm_last_doc_name [06:16:21]save OK [06:16:21]Clear old archive folders... [06:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:16:21]tlvbuf is B6F63560 [06:16:21]SAM_PROTO_ClearQueue [06:16:21]wFMCommunicate request_size=4 [06:16:21]MH_SAM_APDU [06:16:21]CAPDU: 80 09 00 00 [06:16:21]Write to MH i2c: E2 08 00 DC 1F 80 09 00 00 00 00 00 00 6D [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:16:21]Read from MH i2c: E2 03 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [06:16:21]RAPDU: 90 00 [06:16:21]wFMCommunicate OK [06:16:21]SAM_PROTO_ClearQueue done [06:16:21]KKMCreateOFDPacket [06:16:21]OFDProtocolAddRootSTLVToBuf [06:16:21]FM_MakeSignedData [06:16:21]FM_MakeSignedData [06:16:21]SAM_PROTO_SignData [06:16:21]wFMCommunicate request_size=4 [06:16:21]MH_SAM_APDU [06:16:21]CAPDU: 80 0D 01 02 [06:16:21]Write to MH i2c: E2 08 00 DD 1F 80 0D 01 02 00 00 00 00 75 [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [06:16:21]RAPDU: 90 00 [06:16:21]wFMCommunicate OK [06:16:21]wFMCommunicate request_size=255 [06:16:21]MH_SAM_APDU [06:16: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 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 16 00 00 00 F4 03 04 00 37 6C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 [06:16:21]Write to MH i2c: E2 02 01 DE 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 37 6C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 00 00 A3 [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [06:16:21]RAPDU: 90 00 [06:16:21]wFMCommunicate OK [06:16:21]wFMCommunicate request_size=10 [06:16:21]MH_SAM_APDU [06:16:21]CAPDU: 80 0D 02 02 05 4D 68 7B 30 88 [06:16:21]Write to MH i2c: E2 0D 00 DF 1F 80 0D 02 02 05 00 4D 68 7B 30 88 00 00 6A [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [06:16:21]RAPDU: 90 00 [06:16:21]wFMCommunicate OK [06:16:21]wFMCommunicate request_size=4 [06:16:21]MH_SAM_APDU [06:16:21]CAPDU: 80 0D 03 02 [06:16:21]Write to MH i2c: E2 08 00 E0 1F 80 0D 03 02 00 00 00 00 7A [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 0B 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 0B 00 E0 1F 00 FE 0E 0B C2 5D 92 29 94 90 00 00 [06:16:21]RAPDU: FE 0E 0B C2 5D 92 29 94 90 00 [06:16:21]wFMCommunicate OK [06:16:21]SAM_PROTO_SignData done [06:16:21]FM_MakeSignedData done [06:16:21]CreateOFDProtocolMessage [06:16:21]wFMCommunicate request_size=4 [06:16:21]MH_SAM_APDU [06:16:21]CAPDU: 80 11 00 00 [06:16:21]Write to MH i2c: E2 08 00 E1 1F 80 11 00 00 00 00 00 00 7A [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:21]Read from MH i2c: E2 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 17 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: E2 17 00 E1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [06: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 [06:16:21]wFMCommunicate OK [06:16:21]CreateOFDProtocolMessage done [06:16:21]OFDSenderStorePacket 104289 [06:16:21]StoreOFDPacket docnum=104289 [06:16: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 DB AC 07 01 CB B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 37 6C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 4D 68 7B 30 88 FE 0E 0B C2 5D 92 29 94 [06:16:21]CheckFolder [06:16:21]dirname=/storage/ofd_packets [06:16:21]CheckFolder done [06:16:21]ProducePacketName [06:16:21]name=ofd_packets/00104289 [06:16:21]NVStorageSaveData ofd_packets/00104289 [06:16:21]File name is /storage/ofd_packets/00104289 [06:16:21]Write 301 bytes [06:16:21]NVStorageSaveData done [06:16:21]OFDSenderStorePacket done [06:16:21]KKMCreateOFDPacket done [06:16:21]NVStorageSaveData kkm_last_timestamp [06:16:21]File name is /storage/kkm_last_timestamp [06:16:21]Write 4 bytes [06:16:21]NVStorageSaveData done [06:16:21]ExternCall_PrintAddStr [06:16:21]wPrintStart [06:16:21]Write to MH i2c: 01 00 00 E2 1F 01 [06:16:21]Write i2c OK [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: 01 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: 01 07 00 [06:16:21]MH_I2C_Read... [06:16:21]Read from MH i2c: 01 07 00 E2 1F 00 00 00 00 00 FF 0F 16 [06:16:21]RasterBufferAndPrint [06:16:21]line Счет N : (1)673778 [06:16:21]line ИНН: 02508201610067 [06:16:21]line Контрольно-Кассовый Чек [06:16:21]line ПРОДАЖА [06:16:21]line ТРК (МРК, ГНК) : 42 [06:16:21]line Товар: 2710124130 [06:16:21]line Аи-92-К-5 [06:16:21]line 3.020 * 66.40 [06:16:21]line = 200.53 [06:16:21]line НДС 12% НСП 1% [06:16:21]line > о реализуемом товаре [06:16:21]line ОКРУГЛЕНИЕ: -0.53 [06:16:21]line ИТОГО: 200.00 [06:16:21]line Внесено: 200.00 [06:16:21]line СДАЧА: 0.00 [06:16:21]line НСП 1% : 1.77 [06:16:21]line НДС 12% : 21.29 [06:16:21]line Наличными: 200.00 [06:16:21]line Безнал.: 0.00 [06:16:21]line Место: АЗС № 120 "Партнер Нефть" [06:16:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:16:21]line СНО: Общий режим [06:16:21]line Чек 22 22.06.2024 06:16 [06:16:21]line Смена: 356 ФФД: 1.0 [06:16:21]line ЗНМ: 0300000164 [06:16:21]line РНМ: 0000000000092785 [06:16:21]line Версия ККМ: 001 [06:16:21]line ФМ: 0000000000875093 [06:16:21]line ФД: 104289 [06:16:21]line ФПД: 213637721174152 [06:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T061623&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104289&fm=213637721174152&tin=02508201610067®Number=0000000000092785&sum=20000 [06:16:22]written 0, free lines is 4095 [06:16:22]OFD Sender: Processing packet 104289 [packets to send 17, broken 16] [06:16:22]ProducePacketName [06:16:22]name=ofd_packets/00104289 [06:16:22]OFD Sender: To server: pG, [06:16:22]CommunicateWithHost lk.salyk.kg:30040 [06:16:22]ConnectInit lk.salyk.kg [06:16:22]Connected sock=10 [06:16: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 DB AC 07 01 CB B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 37 6C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C2 4D 68 7B 30 88 FE 0E 0B C2 5D 92 29 94 [06:16: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 9F 84 47 00 7B 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 97 01 00 F4 03 04 00 B7 12 76 66 B6 04 01 00 00 C5 6C B3 D9 78 AC 52 44 [06:16:22]CommunicateWithHost err = 0 [06:16:22]CheckOFDResponse [06:16:22]1017 (14) - 77093643461234 [06:16:22]1041 (16) - 0000000000875093 [06:16:22]1040 (4) - 104289 [06:16:22]1012 (4) - 21.06.2024 23:54 [06:16:22]1206 (1) - 0 [06:16:22]OFD Sender: Remove packet 104289 [06:16:22]ProducePacketName [06:16:22]name=ofd_packets/00104289 [06:16:22]NVStorageDeleteData [06:16:22]Write to MH i2c: 01 00 00 0D 20 2D [06:16:22]Write i2c OK [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: 01 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: 01 07 00 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: 01 07 00 0D 20 00 00 00 00 00 E0 0C 20 [06:16:22]RasterBufferAndPrint [06:16:22]line [06:16:22]line [06:16:22]line [06:16:22]line [06:16:22]line [06:16:22]written 0, free lines is 3304 [06:16:22]MH_Cut [06:16:22]Write to MH i2c: D1 01 00 14 20 01 06 [06:16:22]Write i2c OK [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: D1 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: D1 01 00 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: D1 01 00 14 20 00 05 [06:16:22]Write to MH i2c: 01 00 00 15 20 35 [06:16:22]Write i2c OK [06:16:22]MH_I2C_Read... [06:16:23]OFD Sender: No OFD packet to send [06:16:23]*** Cut start [06:16:23]*** Partial cut [06:16:23]*** CUTSNS_PIN = 1 [06:16:23]*** CUTSNS_PIN = 0 [06:16:23]*** Brake cut motor [06:16:23]Read from MH i2c: 01 [06:16:23]MH_I2C_Read... [06:16:23]*** Stop cut motor [06:16:23]*** Cut end [06:16:23]Read from MH i2c: 01 07 00 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 FF 0F 4A [06:16:24]process_action close_receipt done [06:16:24]requested_data is exist [06:16:24]produce_requested_data [06:16:24]requested_item fm.sn is exist - process it [06:16:24]wFMCommunicate request_size=4 [06:16:24]MH_SAM_APDU [06:16:24]CAPDU: 80 11 00 00 [06:16:24]Write to MH i2c: E2 08 00 16 20 80 11 00 00 00 00 00 00 B0 [06:16:24]Write i2c OK [06:16:24]MH_I2C_Read... [06:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:24]Read from MH i2c: E2 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 17 00 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 17 00 16 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [06: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 [06:16:24]wFMCommunicate OK [06:16:24]requested_item fd.num is exist - process it [06:16:24]SAM_PROTO_GetFieldsCounters [06:16:24]wFMCommunicate request_size=4 [06:16:24]MH_SAM_APDU [06:16:24]CAPDU: 80 13 00 00 [06:16:24]Write to MH i2c: E2 08 00 17 20 80 13 00 00 00 00 00 00 B3 [06:16:24]Write i2c OK [06:16:24]MH_I2C_Read... [06:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:16:24]Read from MH i2c: E2 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 62 00 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 62 00 17 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7A [06:16: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 61 97 01 00 0E 04 04 00 64 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 [06:16:24]wFMCommunicate OK [06:16:24]SAM_PROTO_GetFieldsCounters done [06:16:24]requested_item shift.num is exist - process it [06:16:24]requested_item shift.opened is exist - process it [06:16:24]req_shift_opened [06:16:24]FM_GetShiftState [06:16:24]SAM_PROTO_GetShiftState [06:16:24]wFMCommunicate request_size=4 [06:16:24]MH_SAM_APDU [06:16:24]CAPDU: 80 13 01 00 [06:16:24]Write to MH i2c: E2 08 00 18 20 80 13 01 00 00 00 00 00 B5 [06:16:24]Write i2c OK [06:16:24]MH_I2C_Read... [06:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:24]Read from MH i2c: E2 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 0E 00 [06:16:24]MH_I2C_Read... [06:16:24]Read from MH i2c: E2 0E 00 18 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A7 [06:16:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:16:24]wFMCommunicate OK [06:16:24]SAM_PROTO_GetShiftState done [06:16:24]FM_GetShiftState done [06:16:24]req_shift_opened done [06:16:24]requested_item shift.open_date is exist - process it [06:16:24]req_shift_open_date [06:16:24]req_shift_open_date done [06:16:24]produce_requested_data done [06:16:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104289,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [06:16:24]process_action_free close_receipt [06:16:24]json_value_free [06:16:24]json_value_free done [06:16:24]process_json_proto returns [06:16:24]Send response to host [06:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104289,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [06:16:24]free response buf [06:16:24]execute_script done [06:16:24]execute_script returns [06:16:24]free content buf [06:16:24]Sock 9.Close socket [06:16:24]Sock 9.Thread stoped [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:19]accept exits with 7 [06:59:19]New connection [06:59:19]New thread 3067616612 created [06:59:19]Thread 3067473252 joined [06:59:19]Waiting for new connection... [06:59:19] Sock 7.Parse request [06:59:19]Sock 7.Check first char [06:59:19]Sock 7.First char is OK [06:59:19]request: POST /json_proto HTTP/1.0 [06:59:19]Method: POST [06:59:19]URL: /json_proto [06:59:19]Method is POST - this is cgi request [06:59:19]url: /json_proto [06:59:19]query_string will be loaded in cgi processing [06:59:19]execute_cgi json_proto POST (null) [06:59:19]execute_cgi path=json_proto method=POST [06:59:19]POST find Content-Length [06:59:19]Host: 172.17.38.133:8080 [06:59:19]Content-Length: 682 [06:59:19]Content-Type: application/json [06:59:19] [06:59:19]POST finish read [06:59:19]Found Content-Length = 682 [06:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673779", "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" ] } } [06:59:19]execute_script... [06:59: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)673779", "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" ] } } [06:59:19]POST & json_proto [06:59:19]process_json_proto [06:59:19]json parsed OK: [06:59:19]protocol is kg_v1.0 [06:59:19]action value=close_receipt [06:59:19]process_action close_receipt [06:59:19]cmd_close_receipt [06:59:19]MH_GetDate [06:59:19]Write to MH i2c: F0 00 00 19 20 28 [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: F0 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: F0 09 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: F0 09 00 19 20 00 4B 76 76 66 BD 8F 7C 64 FA [06:59:19]GetLastDocTimeStamp 1719036983 [06:59:19]current date 1719039563 [06:59:19]FM_GetShiftState [06:59:19]SAM_PROTO_GetShiftState [06:59:19]wFMCommunicate request_size=4 [06:59:19]MH_SAM_APDU [06:59:19]CAPDU: 80 13 01 00 [06:59:19]Write to MH i2c: E2 08 00 1A 20 80 13 01 00 00 00 00 00 B7 [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:19]Read from MH i2c: E2 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: E2 0E 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: E2 0E 00 1A 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A9 [06:59:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:59:19]wFMCommunicate OK [06:59:19]SAM_PROTO_GetShiftState done [06:59:19]FM_GetShiftState done [06:59:19]opened in 1719016176 [06:59:19]opened+sec_in_day 1719102576 [06:59:19]quantity*price = 150017 [06:59:19]sum+1 = 150018 [06:59:19]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 СНО: Общий режим Чек 23 22.06.2024 06:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104290 ФПД: 268593755322073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104290&fm=268593755322073&tin=02508201610067®Number=0000000000092785&sum=150000 [06:59:20]StoreToDocumentArchive [06:59:20]shift 356 fd 104290 [06:59:20]save to /storage/0356/doc_00104290 [06:59:20]save last doc name /storage/0356/doc_00104290 to /storage/kkm_last_doc_name [06:59:20]save OK [06:59:20]Clear old archive folders... [06:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:20]tlvbuf is B6F7C9D0 [06:59:20]SAM_PROTO_ClearQueue [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 09 00 00 [06:59:20]Write to MH i2c: E2 08 00 27 20 80 09 00 00 00 00 00 00 B9 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 03 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [06:59:20]RAPDU: 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_ClearQueue done [06:59:20]KKMCreateOFDPacket [06:59:20]OFDProtocolAddRootSTLVToBuf [06:59:20]FM_MakeSignedData [06:59:20]FM_MakeSignedData [06:59:20]SAM_PROTO_SignData [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 0D 01 02 [06:59:20]Write to MH i2c: E2 08 00 28 20 80 0D 01 02 00 00 00 00 C1 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 03 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 03 00 28 20 00 90 00 BC [06:59:20]RAPDU: 90 00 [06:59:20]wFMCommunicate OK [06:59:20]wFMCommunicate request_size=255 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 17 00 00 00 F4 03 04 00 4B 76 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F4 [06:59:20]Write to MH i2c: E2 02 01 29 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 F4 03 04 00 4B 76 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F4 00 00 E2 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 03 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [06:59:21]RAPDU: 90 00 [06:59:21]wFMCommunicate OK [06:59:21]wFMCommunicate request_size=10 [06:59:21]MH_SAM_APDU [06:59:21]CAPDU: 80 0D 02 02 05 48 DB 5F F6 D9 [06:59:21]Write to MH i2c: E2 0D 00 2A 20 80 0D 02 02 05 00 48 DB 5F F6 D9 00 00 1F [06:59:21]Write i2c OK [06:59:21]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 03 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [06:59:21]RAPDU: 90 00 [06:59:21]wFMCommunicate OK [06:59:21]wFMCommunicate request_size=4 [06:59:21]MH_SAM_APDU [06:59:21]CAPDU: 80 0D 03 02 [06:59:21]Write to MH i2c: E2 08 00 2B 20 80 0D 03 02 00 00 00 00 C6 [06:59:21]Write i2c OK [06:59:21]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 0B 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 0B 00 2B 20 00 B1 34 CB 75 E1 7D 59 6D 90 00 10 [06:59:21]RAPDU: B1 34 CB 75 E1 7D 59 6D 90 00 [06:59:21]wFMCommunicate OK [06:59:21]SAM_PROTO_SignData done [06:59:21]FM_MakeSignedData done [06:59:21]CreateOFDProtocolMessage [06:59:21]wFMCommunicate request_size=4 [06:59:21]MH_SAM_APDU [06:59:21]CAPDU: 80 11 00 00 [06:59:21]Write to MH i2c: E2 08 00 2C 20 80 11 00 00 00 00 00 00 C6 [06:59:21]Write i2c OK [06:59:21]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 17 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 17 00 2C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [06:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:59:21]wFMCommunicate OK [06:59:21]CreateOFDProtocolMessage done [06:59:21]OFDSenderStorePacket 104290 [06:59:21]StoreOFDPacket docnum=104290 [06:59: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 ED 27 07 01 CC 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 F4 03 04 00 4B 76 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F4 48 DB 5F F6 D9 B1 34 CB 75 E1 7D 59 6D [06:59:21]CheckFolder [06:59:21]dirname=/storage/ofd_packets [06:59:21]CheckFolder done [06:59:21]ProducePacketName [06:59:21]name=ofd_packets/00104290 [06:59:21]NVStorageSaveData ofd_packets/00104290 [06:59:21]File name is /storage/ofd_packets/00104290 [06:59:21]Write 301 bytes [06:59:21]NVStorageSaveData done [06:59:21]OFDSenderStorePacket done [06:59:21]KKMCreateOFDPacket done [06:59:21]NVStorageSaveData kkm_last_timestamp [06:59:21]File name is /storage/kkm_last_timestamp [06:59:21]Write 4 bytes [06:59:21]NVStorageSaveData done [06:59:21]ExternCall_PrintAddStr [06:59:21]wPrintStart [06:59:21]Write to MH i2c: 01 00 00 2D 20 4D [06:59:21]Write i2c OK [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: 01 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: 01 07 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: 01 07 00 2D 20 00 00 00 00 00 FF 0F 62 [06:59:21]RasterBufferAndPrint [06:59:21]line Счет N : (1)673779 [06:59:21]line ИНН: 02508201610067 [06:59:21]line Контрольно-Кассовый Чек [06:59:21]line ПРОДАЖА [06:59:21]line ТРК (МРК, ГНК) : 41 [06:59:21]line Товар: 2710124500 [06:59:21]line Аи-95-К-5 [06:59:21]line 20.300 * 73.90 [06:59:21]line = 1500.17 [06:59:21]line НДС 12% НСП 1% [06:59:21]line > о реализуемом товаре [06:59:21]line ОКРУГЛЕНИЕ: -0.17 [06:59:21]line ИТОГО: 1500.00 [06:59:21]line Внесено: 1500.00 [06:59:21]line СДАЧА: 0.00 [06:59:21]line НСП 1% : 13.28 [06:59:21]line НДС 12% : 159.31 [06:59:21]line Наличными: 1500.00 [06:59:21]line Безнал.: 0.00 [06:59:21]line Место: АЗС № 120 "Партнер Нефть" [06:59:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:59:21]line СНО: Общий режим [06:59:21]line Чек 23 22.06.2024 06:59 [06:59:21]line Смена: 356 ФФД: 1.0 [06:59:21]line ЗНМ: 0300000164 [06:59:21]line РНМ: 0000000000092785 [06:59:21]line Версия ККМ: 001 [06:59:21]line ФМ: 0000000000875093 [06:59:21]line ФД: 104290 [06:59:21]line ФПД: 268593755322073 [06:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104290&fm=268593755322073&tin=02508201610067®Number=0000000000092785&sum=150000 [06:59:21]OFD Sender: Processing packet 104290 [packets to send 17, broken 16] [06:59:21]ProducePacketName [06:59:21]name=ofd_packets/00104290 [06:59:21]OFD Sender: To server: pG, [06:59:21]CommunicateWithHost lk.salyk.kg:30040 [06:59:21]ConnectInit lk.salyk.kg [06:59:21]written 0, free lines is 4095 [06:59:21]Connected sock=10 [06:59: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 ED 27 07 01 CC 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 F4 03 04 00 4B 76 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F4 48 DB 5F F6 D9 B1 34 CB 75 E1 7D 59 6D [06:59: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 A4 8C 47 00 8D 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 62 97 01 00 F4 03 04 00 CB 1C 76 66 B6 04 01 00 00 8D 44 A2 B9 72 65 B4 D6 [06:59:21]CommunicateWithHost err = 0 [06:59:21]CheckOFDResponse [06:59:21]1017 (14) - 77093643461234 [06:59:21]1041 (16) - 0000000000875093 [06:59:21]1040 (4) - 104290 [06:59:21]1012 (4) - 22.06.2024 00:37 [06:59:21]1206 (1) - 0 [06:59:21]OFD Sender: Remove packet 104290 [06:59:21]ProducePacketName [06:59:21]name=ofd_packets/00104290 [06:59:21]NVStorageDeleteData [06:59:21]Write to MH i2c: 01 00 00 58 20 78 [06:59:22]Write i2c OK [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: 01 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: 01 07 00 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 D0 0C 5B [06:59:22]RasterBufferAndPrint [06:59:22]line [06:59:22]line [06:59:22]line [06:59:22]line [06:59:22]line [06:59:22]written 0, free lines is 3288 [06:59:22]MH_Cut [06:59:22]Write to MH i2c: D1 01 00 5F 20 01 51 [06:59:22]Write i2c OK [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: D1 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: D1 01 00 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: D1 01 00 5F 20 00 50 [06:59:22]Write to MH i2c: 01 00 00 60 20 80 [06:59:22]Write i2c OK [06:59:22]MH_I2C_Read... [06:59:22]OFD Sender: No OFD packet to send [06:59:22]*** Cut start [06:59:22]*** Partial cut [06:59:22]*** CUTSNS_PIN = 1 [06:59:22]*** CUTSNS_PIN = 0 [06:59:23]*** Brake cut motor [06:59:23]Read from MH i2c: 01 [06:59:23]MH_I2C_Read... [06:59:23]*** Stop cut motor [06:59:23]*** Cut end [06:59:23]Read from MH i2c: 01 07 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 FF 0F 95 [06:59:23]process_action close_receipt done [06:59:23]requested_data is exist [06:59:23]produce_requested_data [06:59:23]requested_item fm.sn is exist - process it [06:59:23]wFMCommunicate request_size=4 [06:59:23]MH_SAM_APDU [06:59:23]CAPDU: 80 11 00 00 [06:59:23]Write to MH i2c: E2 08 00 61 20 80 11 00 00 00 00 00 00 FB [06:59:23]Write i2c OK [06:59:23]MH_I2C_Read... [06:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:23]Read from MH i2c: E2 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 17 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 17 00 61 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [06:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:59:23]wFMCommunicate OK [06:59:23]requested_item fd.num is exist - process it [06:59:23]SAM_PROTO_GetFieldsCounters [06:59:23]wFMCommunicate request_size=4 [06:59:23]MH_SAM_APDU [06:59:23]CAPDU: 80 13 00 00 [06:59:23]Write to MH i2c: E2 08 00 62 20 80 13 00 00 00 00 00 00 FE [06:59:23]Write i2c OK [06:59:23]MH_I2C_Read... [06:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:23]Read from MH i2c: E2 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 62 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 62 00 62 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C9 [06:59: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 62 97 01 00 0E 04 04 00 64 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 [06:59:23]wFMCommunicate OK [06:59:23]SAM_PROTO_GetFieldsCounters done [06:59:23]requested_item shift.num is exist - process it [06:59:23]requested_item shift.opened is exist - process it [06:59:23]req_shift_opened [06:59:23]FM_GetShiftState [06:59:23]SAM_PROTO_GetShiftState [06:59:23]wFMCommunicate request_size=4 [06:59:23]MH_SAM_APDU [06:59:23]CAPDU: 80 13 01 00 [06:59:23]Write to MH i2c: E2 08 00 63 20 80 13 01 00 00 00 00 00 00 [06:59:23]Write i2c OK [06:59:23]MH_I2C_Read... [06:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:23]Read from MH i2c: E2 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 0E 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 0E 00 63 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F2 [06:59:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [06:59:23]wFMCommunicate OK [06:59:23]SAM_PROTO_GetShiftState done [06:59:23]FM_GetShiftState done [06:59:23]req_shift_opened done [06:59:23]requested_item shift.open_date is exist - process it [06:59:23]req_shift_open_date [06:59:23]req_shift_open_date done [06:59:23]produce_requested_data done [06:59:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104290,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [06:59:23]process_action_free close_receipt [06:59:23]json_value_free [06:59:23]json_value_free done [06:59:23]process_json_proto returns [06:59:23]Send response to host [06:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104290,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [06:59:23]free response buf [06:59:23]execute_script done [06:59:23]execute_script returns [06:59:23]free content buf [06:59:23]Sock 7.Close socket [06:59:23]Sock 7.Thread stoped [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:48]accept exits with 9 [07:08:48]New connection [07:08:48]New thread 3067473252 created [07:08:48]Thread 3067616612 joined [07:08:48]Waiting for new connection... [07:08:48] Sock 9.Parse request [07:08:48]Sock 9.Check first char [07:08:48]Sock 9.First char is OK [07:08:48]request: POST /json_proto HTTP/1.0 [07:08:48]Method: POST [07:08:48]URL: /json_proto [07:08:48]Method is POST - this is cgi request [07:08:48]url: /json_proto [07:08:48]query_string will be loaded in cgi processing [07:08:48]execute_cgi json_proto POST (null) [07:08:48]execute_cgi path=json_proto method=POST [07:08:48]POST find Content-Length [07:08:48]Host: 172.17.38.133:8080 [07:08:48]Content-Length: 682 [07:08:48]Content-Type: application/json [07:08:48] [07:08:48]POST finish read [07:08:48]Found Content-Length = 682 [07:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673780", "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:08:48]execute_script... [07:08: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)673780", "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:08:48]POST & json_proto [07:08:48]process_json_proto [07:08:48]json parsed OK: [07:08:48]protocol is kg_v1.0 [07:08:48]action value=close_receipt [07:08:48]process_action close_receipt [07:08:48]cmd_close_receipt [07:08:48]MH_GetDate [07:08:48]Write to MH i2c: F0 00 00 64 20 73 [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: F0 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: F0 09 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: F0 09 00 64 20 00 83 78 76 66 BD 8F 7C 64 7F [07:08:48]GetLastDocTimeStamp 1719039563 [07:08:48]current date 1719040131 [07:08:48]FM_GetShiftState [07:08:48]SAM_PROTO_GetShiftState [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 13 01 00 [07:08:48]Write to MH i2c: E2 08 00 65 20 80 13 01 00 00 00 00 00 02 [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 65 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F4 [07:08:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:08:48]wFMCommunicate OK [07:08:48]SAM_PROTO_GetShiftState done [07:08:48]FM_GetShiftState done [07:08:48]opened in 1719016176 [07:08:48]opened+sec_in_day 1719102576 [07:08:48]quantity*price = 100064 [07:08:48]sum+1 = 100066 [07:08:48]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 СНО: Общий режим Чек 24 22.06.2024 07:08 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104291 ФПД: 39042752057860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T070851&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104291&fm=39042752057860&tin=02508201610067®Number=0000000000092785&sum=100000 [07:08:49]StoreToDocumentArchive [07:08:49]shift 356 fd 104291 [07:08:49]save to /storage/0356/doc_00104291 [07:08:49]save last doc name /storage/0356/doc_00104291 to /storage/kkm_last_doc_name [07:08:49]save OK [07:08:49]Clear old archive folders... [07:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:49]tlvbuf is 00638DA0 [07:08:49]SAM_PROTO_ClearQueue [07:08:49]wFMCommunicate request_size=4 [07:08:49]MH_SAM_APDU [07:08:49]CAPDU: 80 09 00 00 [07:08:49]Write to MH i2c: E2 08 00 72 20 80 09 00 00 00 00 00 00 04 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [07:08:49]RAPDU: 90 00 [07:08:49]wFMCommunicate OK [07:08:49]SAM_PROTO_ClearQueue done [07:08:49]KKMCreateOFDPacket [07:08:49]OFDProtocolAddRootSTLVToBuf [07:08:49]FM_MakeSignedData [07:08:49]FM_MakeSignedData [07:08:49]SAM_PROTO_SignData [07:08:49]wFMCommunicate request_size=4 [07:08:49]MH_SAM_APDU [07:08:49]CAPDU: 80 0D 01 02 [07:08:49]Write to MH i2c: E2 08 00 73 20 80 0D 01 02 00 00 00 00 0C [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [07:08:49]RAPDU: 90 00 [07:08:49]wFMCommunicate OK [07:08:49]wFMCommunicate request_size=255 [07:08:49]MH_SAM_APDU [07:08: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 18 00 00 00 F4 03 04 00 83 78 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 23 [07:08:49]Write to MH i2c: E2 02 01 74 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 18 00 00 00 F4 03 04 00 83 78 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 23 00 00 88 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [07:08:49]RAPDU: 90 00 [07:08:49]wFMCommunicate OK [07:08:49]wFMCommunicate request_size=10 [07:08:49]MH_SAM_APDU [07:08:49]CAPDU: 80 0D 02 02 05 82 59 5E 12 04 [07:08:49]Write to MH i2c: E2 0D 00 75 20 80 0D 02 02 05 00 82 59 5E 12 04 00 00 68 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [07:08:49]RAPDU: 90 00 [07:08:49]wFMCommunicate OK [07:08:49]wFMCommunicate request_size=4 [07:08:49]MH_SAM_APDU [07:08:49]CAPDU: 80 0D 03 02 [07:08:49]Write to MH i2c: E2 08 00 76 20 80 0D 03 02 00 00 00 00 11 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 0B 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 0B 00 76 20 00 FD 83 E8 84 10 54 79 B1 90 00 8C [07:08:49]RAPDU: FD 83 E8 84 10 54 79 B1 90 00 [07:08:49]wFMCommunicate OK [07:08:49]SAM_PROTO_SignData done [07:08:49]FM_MakeSignedData done [07:08:49]CreateOFDProtocolMessage [07:08:49]wFMCommunicate request_size=4 [07:08:49]MH_SAM_APDU [07:08:49]CAPDU: 80 11 00 00 [07:08:49]Write to MH i2c: E2 08 00 77 20 80 11 00 00 00 00 00 00 11 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:49]Read from MH i2c: E2 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 17 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: E2 17 00 77 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [07:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:08:49]wFMCommunicate OK [07:08:49]CreateOFDProtocolMessage done [07:08:49]OFDSenderStorePacket 104291 [07:08:49]StoreOFDPacket docnum=104291 [07:08: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 5E A4 07 01 B1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 83 78 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 23 82 59 5E 12 04 FD 83 E8 84 10 54 79 B1 [07:08:49]CheckFolder [07:08:49]dirname=/storage/ofd_packets [07:08:49]CheckFolder done [07:08:49]ProducePacketName [07:08:49]name=ofd_packets/00104291 [07:08:49]NVStorageSaveData ofd_packets/00104291 [07:08:49]File name is /storage/ofd_packets/00104291 [07:08:49]Write 301 bytes [07:08:49]NVStorageSaveData done [07:08:49]OFDSenderStorePacket done [07:08:49]KKMCreateOFDPacket done [07:08:49]NVStorageSaveData kkm_last_timestamp [07:08:49]File name is /storage/kkm_last_timestamp [07:08:49]Write 4 bytes [07:08:49]NVStorageSaveData done [07:08:49]ExternCall_PrintAddStr [07:08:49]wPrintStart [07:08:49]Write to MH i2c: 01 00 00 78 20 98 [07:08:49]Write i2c OK [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: 01 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: 01 07 00 [07:08:49]MH_I2C_Read... [07:08:49]Read from MH i2c: 01 07 00 78 20 00 00 00 00 00 FF 0F AD [07:08:49]RasterBufferAndPrint [07:08:49]line Счет N : (1)673780 [07:08:49]line ИНН: 02508201610067 [07:08:49]line Контрольно-Кассовый Чек [07:08:49]line ПРОДАЖА [07:08:49]line ТРК (МРК, ГНК) : 32 [07:08:49]line Товар: 2710124130 [07:08:49]line Аи-92-К-5 [07:08:49]line 15.070 * 66.40 [07:08:49]line = 1000.65 [07:08:49]line НДС 12% НСП 1% [07:08:49]line > о реализуемом товаре [07:08:49]line ОКРУГЛЕНИЕ: -0.65 [07:08:49]line ИТОГО: 1000.00 [07:08:49]line Внесено: 1000.00 [07:08:49]line СДАЧА: 0.00 [07:08:49]line НСП 1% : 8.85 [07:08:49]line НДС 12% : 106.26 [07:08:49]line Наличными: 1000.00 [07:08:49]line Безнал.: 0.00 [07:08:49]line Место: АЗС № 120 "Партнер Нефть" [07:08:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:08:49]line СНО: Общий режим [07:08:49]line Чек 24 22.06.2024 07:08 [07:08:49]line Смена: 356 ФФД: 1.0 [07:08:49]line ЗНМ: 0300000164 [07:08:49]line РНМ: 0000000000092785 [07:08:49]line Версия ККМ: 001 [07:08:49]line ФМ: 0000000000875093 [07:08:49]line ФД: 104291 [07:08:49]line ФПД: 39042752057860 [07:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T070851&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104291&fm=39042752057860&tin=02508201610067®Number=0000000000092785&sum=100000 [07:08:50]OFD Sender: Processing packet 104291 [packets to send 17, broken 16] [07:08:50]ProducePacketName [07:08:50]name=ofd_packets/00104291 [07:08:50]OFD Sender: To server: pG, [07:08:50]CommunicateWithHost lk.salyk.kg:30040 [07:08:50]ConnectInit lk.salyk.kg [07:08:50]written 0, free lines is 4095 [07:08:50]Connected sock=10 [07:08: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 5E A4 07 01 B1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 83 78 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 23 82 59 5E 12 04 FD 83 E8 84 10 54 79 B1 [07:08: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 1D 3A 47 00 46 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 63 97 01 00 F4 03 04 00 03 1F 76 66 B6 04 01 00 00 1E 97 ED 2C AD CD 9A 0E [07:08:50]CommunicateWithHost err = 0 [07:08:50]CheckOFDResponse [07:08:50]1017 (14) - 77093643461234 [07:08:50]1041 (16) - 0000000000875093 [07:08:50]1040 (4) - 104291 [07:08:50]1012 (4) - 22.06.2024 00:46 [07:08:50]1206 (1) - 0 [07:08:50]OFD Sender: Remove packet 104291 [07:08:50]ProducePacketName [07:08:50]name=ofd_packets/00104291 [07:08:50]NVStorageDeleteData [07:08:50]Write to MH i2c: 01 00 00 A3 20 C3 [07:08:50]Write i2c OK [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: 01 [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: 01 07 00 [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 D6 0C AC [07:08:50]RasterBufferAndPrint [07:08:50]line [07:08:50]line [07:08:50]line [07:08:50]line [07:08:50]line [07:08:50]written 0, free lines is 3294 [07:08:50]MH_Cut [07:08:50]Write to MH i2c: D1 01 00 AA 20 01 9C [07:08:50]Write i2c OK [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: D1 [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: D1 01 00 [07:08:50]MH_I2C_Read... [07:08:50]Read from MH i2c: D1 01 00 AA 20 00 9B [07:08:50]Write to MH i2c: 01 00 00 AB 20 CB [07:08:50]Write i2c OK [07:08:50]MH_I2C_Read... [07:08:51]OFD Sender: No OFD packet to send [07:08:51]*** Cut start [07:08:51]*** Partial cut [07:08:51]*** CUTSNS_PIN = 1 [07:08:51]*** CUTSNS_PIN = 0 [07:08:51]*** Brake cut motor [07:08:51]Read from MH i2c: 01 [07:08:51]MH_I2C_Read... [07:08:51]*** Stop cut motor [07:08:51]*** Cut end [07:08:51]Read from MH i2c: 01 07 00 [07:08:51]MH_I2C_Read... [07:08:51]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [07:08:51]process_action close_receipt done [07:08:51]requested_data is exist [07:08:51]produce_requested_data [07:08:51]requested_item fm.sn is exist - process it [07:08:51]wFMCommunicate request_size=4 [07:08:51]MH_SAM_APDU [07:08:51]CAPDU: 80 11 00 00 [07:08:51]Write to MH i2c: E2 08 00 AC 20 80 11 00 00 00 00 00 00 46 [07:08:51]Write i2c OK [07:08:51]MH_I2C_Read... [07:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:52]Read from MH i2c: E2 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 17 00 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 17 00 AC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [07:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:08:52]wFMCommunicate OK [07:08:52]requested_item fd.num is exist - process it [07:08:52]SAM_PROTO_GetFieldsCounters [07:08:52]wFMCommunicate request_size=4 [07:08:52]MH_SAM_APDU [07:08:52]CAPDU: 80 13 00 00 [07:08:52]Write to MH i2c: E2 08 00 AD 20 80 13 00 00 00 00 00 00 49 [07:08:52]Write i2c OK [07:08:52]MH_I2C_Read... [07:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:52]Read from MH i2c: E2 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 62 00 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 62 00 AD 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 18 [07:08: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 63 97 01 00 0E 04 04 00 64 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 [07:08:52]wFMCommunicate OK [07:08:52]SAM_PROTO_GetFieldsCounters done [07:08:52]requested_item shift.num is exist - process it [07:08:52]requested_item shift.opened is exist - process it [07:08:52]req_shift_opened [07:08:52]FM_GetShiftState [07:08:52]SAM_PROTO_GetShiftState [07:08:52]wFMCommunicate request_size=4 [07:08:52]MH_SAM_APDU [07:08:52]CAPDU: 80 13 01 00 [07:08:52]Write to MH i2c: E2 08 00 AE 20 80 13 01 00 00 00 00 00 4B [07:08:52]Write i2c OK [07:08:52]MH_I2C_Read... [07:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:52]Read from MH i2c: E2 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 0E 00 [07:08:52]MH_I2C_Read... [07:08:52]Read from MH i2c: E2 0E 00 AE 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3D [07:08:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:08:52]wFMCommunicate OK [07:08:52]SAM_PROTO_GetShiftState done [07:08:52]FM_GetShiftState done [07:08:52]req_shift_opened done [07:08:52]requested_item shift.open_date is exist - process it [07:08:52]req_shift_open_date [07:08:52]req_shift_open_date done [07:08:52]produce_requested_data done [07:08:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104291,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:08:52]process_action_free close_receipt [07:08:52]json_value_free [07:08:52]json_value_free done [07:08:52]process_json_proto returns [07:08:52]Send response to host [07:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104291,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:08:52]free response buf [07:08:52]execute_script done [07:08:52]execute_script returns [07:08:52]free content buf [07:08:52]Sock 9.Close socket [07:08:52]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:52]accept exits with 7 [07:15:52]New connection [07:15:52]New thread 3067616612 created [07:15:52]Thread 3067473252 joined [07:15:52]Waiting for new connection... [07:15:52] Sock 7.Parse request [07:15:52]Sock 7.Check first char [07:15:52]Sock 7.First char is OK [07:15:52]request: POST /json_proto HTTP/1.0 [07:15:52]Method: POST [07:15:52]URL: /json_proto [07:15:52]Method is POST - this is cgi request [07:15:52]url: /json_proto [07:15:52]query_string will be loaded in cgi processing [07:15:52]execute_cgi json_proto POST (null) [07:15:52]execute_cgi path=json_proto method=POST [07:15:52]POST find Content-Length [07:15:52]Host: 172.17.38.133:8080 [07:15:52]Content-Length: 817 [07:15:52]Content-Type: application/json [07:15:52] [07:15:52]POST finish read [07:15:52]Found Content-Length = 817 [07:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673781", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:52]execute_script... [07:15: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)673781", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:52]POST & json_proto [07:15:52]process_json_proto [07:15:52]json parsed OK: [07:15:52]protocol is kg_v1.0 [07:15:52]action value=close_receipt [07:15:52]process_action close_receipt [07:15:52]cmd_close_receipt [07:15:52]MH_GetDate [07:15:52]Write to MH i2c: F0 00 00 AF 20 BE [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: F0 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: F0 09 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: F0 09 00 AF 20 00 2B 7A 76 66 BD 8F 7C 64 74 [07:15:52]GetLastDocTimeStamp 1719040131 [07:15:52]current date 1719040555 [07:15:52]FM_GetShiftState [07:15:52]SAM_PROTO_GetShiftState [07:15:52]wFMCommunicate request_size=4 [07:15:52]MH_SAM_APDU [07:15:52]CAPDU: 80 13 01 00 [07:15:52]Write to MH i2c: E2 08 00 B0 20 80 13 01 00 00 00 00 00 4D [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:52]Read from MH i2c: E2 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 0E 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 0E 00 B0 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3F [07:15:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:15:52]wFMCommunicate OK [07:15:52]SAM_PROTO_GetShiftState done [07:15:52]FM_GetShiftState done [07:15:52]opened in 1719016176 [07:15:52]opened+sec_in_day 1719102576 [07:15:52]quantity*price = 80012 [07:15:52]sum+1 = 80013 [07:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 22.06.2024 07:15 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104292 ФПД: 94090959527099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104292&fm=94090959527099&tin=02508201610067®Number=0000000000092785&sum=80012 [07:15:53]StoreToDocumentArchive [07:15:53]shift 356 fd 104292 [07:15:53]save to /storage/0356/doc_00104292 [07:15:53]save last doc name /storage/0356/doc_00104292 to /storage/kkm_last_doc_name [07:15:53]save OK [07:15:53]Clear old archive folders... [07:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:15:53]tlvbuf is 0069CDE0 [07:15:53]SAM_PROTO_ClearQueue [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 09 00 00 [07:15:53]Write to MH i2c: E2 08 00 BD 20 80 09 00 00 00 00 00 00 4F [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [07:15:53]RAPDU: 90 00 [07:15:53]wFMCommunicate OK [07:15:53]SAM_PROTO_ClearQueue done [07:15:53]KKMCreateOFDPacket [07:15:53]OFDProtocolAddRootSTLVToBuf [07:15:53]FM_MakeSignedData [07:15:53]FM_MakeSignedData [07:15:53]SAM_PROTO_SignData [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 0D 01 02 [07:15:53]Write to MH i2c: E2 08 00 BE 20 80 0D 01 02 00 00 00 00 57 [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 BE 20 00 90 00 52 [07:15:53]RAPDU: 90 00 [07:15:53]wFMCommunicate OK [07:15:53]wFMCommunicate request_size=255 [07:15:53]MH_SAM_APDU [07:15: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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 [07:15:53]Write to MH i2c: E2 02 01 BF 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 00 00 68 [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [07:15:53]RAPDU: 90 00 [07:15:53]wFMCommunicate OK [07:15:53]wFMCommunicate request_size=10 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 0D 02 02 05 93 42 38 1C BB [07:15:53]Write to MH i2c: E2 0D 00 C0 20 80 0D 02 02 05 00 93 42 38 1C BB 00 00 48 [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [07:15:53]RAPDU: 90 00 [07:15:53]wFMCommunicate OK [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 0D 03 02 [07:15:53]Write to MH i2c: E2 08 00 C1 20 80 0D 03 02 00 00 00 00 5C [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0B 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0B 00 C1 20 00 2D 94 B1 D6 A6 EA E4 7F 90 00 98 [07:15:53]RAPDU: 2D 94 B1 D6 A6 EA E4 7F 90 00 [07:15:53]wFMCommunicate OK [07:15:53]SAM_PROTO_SignData done [07:15:53]FM_MakeSignedData done [07:15:53]CreateOFDProtocolMessage [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 11 00 00 [07:15:53]Write to MH i2c: E2 08 00 C2 20 80 11 00 00 00 00 00 00 5C [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 17 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 17 00 C2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [07:15: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:15:53]wFMCommunicate OK [07:15:53]CreateOFDProtocolMessage done [07:15:53]OFDSenderStorePacket 104292 [07:15:53]StoreOFDPacket docnum=104292 [07:15: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 C2 B0 07 01 89 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 93 42 38 1C BB 2D 94 B1 D6 A6 EA E4 7F [07:15:53]CheckFolder [07:15:53]dirname=/storage/ofd_packets [07:15:53]CheckFolder done [07:15:53]ProducePacketName [07:15:53]name=ofd_packets/00104292 [07:15:53]NVStorageSaveData ofd_packets/00104292 [07:15:53]File name is /storage/ofd_packets/00104292 [07:15:53]Write 301 bytes [07:15:53]NVStorageSaveData done [07:15:53]OFDSenderStorePacket done [07:15:53]KKMCreateOFDPacket done [07:15:53]NVStorageSaveData kkm_last_timestamp [07:15:53]File name is /storage/kkm_last_timestamp [07:15:53]Write 4 bytes [07:15:53]NVStorageSaveData done [07:15:53]ExternCall_PrintAddStr [07:15:53]wPrintStart [07:15:53]Write to MH i2c: 01 00 00 C3 20 E3 [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: 01 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: 01 07 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: 01 07 00 C3 20 00 00 00 00 00 FF 0F F8 [07:15:53]RasterBufferAndPrint [07:15:53]line Счет N : (1)673781 [07:15:53]line ИНН: 02508201610067 [07:15:53]line Контрольно-Кассовый Чек [07:15:53]line ПРОДАЖА [07:15:53]line ТРК (МРК, ГНК) : 32 [07:15:53]line Товар: 2710124130 [07:15:53]line Аи-92-К-5 [07:15:53]line 12.050 * 66.40 [07:15:53]line = 800.12 [07:15:53]line НДС 12% НСП 1% [07:15:53]line > о реализуемом товаре [07:15:53]line ИТОГО: 800.12 [07:15:53]line НСП 1% : 7.08 [07:15:53]line НДС 12% : 84.97 [07:15:53]line Наличными: 0.00 [07:15:53]line Безнал.: 800.12 [07:15:53]line Место: АЗС № 120 "Партнер Нефть" [07:15:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:15:53]line СНО: Общий режим [07:15:53]line Чек 25 22.06.2024 07:15 [07:15:53]line Смена: 356 ФФД: 1.0 [07:15:53]line ЗНМ: 0300000164 [07:15:53]line РНМ: 0000000000092785 [07:15:53]line Версия ККМ: 001 [07:15:53]line Платежная система: Бакай Банк [07:15:53]line ФМ: 0000000000875093 [07:15:53]line ФД: 104292 [07:15:53]line ФПД: 94090959527099 [07:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104292&fm=94090959527099&tin=02508201610067®Number=0000000000092785&sum=80012 [07:15:54]OFD Sender: Processing packet 104292 [packets to send 17, broken 16] [07:15:54]ProducePacketName [07:15:54]name=ofd_packets/00104292 [07:15:54]OFD Sender: To server: pG, [07:15:54]CommunicateWithHost lk.salyk.kg:30040 [07:15:54]ConnectInit lk.salyk.kg [07:15:54]written 0, free lines is 4095 [07:15:54]Connected sock=10 [07:15: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 C2 B0 07 01 89 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 93 42 38 1C BB 2D 94 B1 D6 A6 EA E4 7F [07:15: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 53 99 47 00 98 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 64 97 01 00 F4 03 04 00 AB 20 76 66 B6 04 01 00 00 49 58 A2 73 F8 61 26 91 [07:15:54]CommunicateWithHost err = 0 [07:15:54]CheckOFDResponse [07:15:54]1017 (14) - 77093643461234 [07:15:54]1041 (16) - 0000000000875093 [07:15:54]1040 (4) - 104292 [07:15:54]1012 (4) - 22.06.2024 00:54 [07:15:54]1206 (1) - 0 [07:15:54]OFD Sender: Remove packet 104292 [07:15:54]ProducePacketName [07:15:54]name=ofd_packets/00104292 [07:15:54]NVStorageDeleteData [07:15:54]Write to MH i2c: 01 00 00 ED 20 0D [07:15:54]Write i2c OK [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: 01 [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: 01 07 00 [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 E4 0C 04 [07:15:54]RasterBufferAndPrint [07:15:54]line [07:15:54]line [07:15:54]line [07:15:54]line [07:15:54]line [07:15:54]written 0, free lines is 3303 [07:15:54]MH_Cut [07:15:54]Write to MH i2c: D1 01 00 F4 20 01 E6 [07:15:54]Write i2c OK [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: D1 [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: D1 01 00 [07:15:54]MH_I2C_Read... [07:15:54]Read from MH i2c: D1 01 00 F4 20 00 E5 [07:15:54]Write to MH i2c: 01 00 00 F5 20 15 [07:15:54]Write i2c OK [07:15:54]MH_I2C_Read... [07:15:54]OFD Sender: No OFD packet to send [07:15:55]*** Cut start [07:15:55]*** Partial cut [07:15:55]*** CUTSNS_PIN = 1 [07:15:55]*** CUTSNS_PIN = 0 [07:15:55]*** Brake cut motor [07:15:55]Read from MH i2c: 01 [07:15:55]MH_I2C_Read... [07:15:55]*** Stop cut motor [07:15:55]*** Cut end [07:15:55]Read from MH i2c: 01 07 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [07:15:55]process_action close_receipt done [07:15:55]requested_data is exist [07:15:55]produce_requested_data [07:15:55]requested_item fm.sn is exist - process it [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 11 00 00 [07:15:55]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 17 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [07:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:15:55]wFMCommunicate OK [07:15:55]requested_item fd.num is exist - process it [07:15:55]SAM_PROTO_GetFieldsCounters [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 13 00 00 [07:15:55]Write to MH i2c: E2 08 00 F7 20 80 13 00 00 00 00 00 00 93 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:56]Read from MH i2c: E2 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 62 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 62 00 F7 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 66 [07:15: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 64 97 01 00 0E 04 04 00 64 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 [07:15:56]wFMCommunicate OK [07:15:56]SAM_PROTO_GetFieldsCounters done [07:15:56]requested_item shift.num is exist - process it [07:15:56]requested_item shift.opened is exist - process it [07:15:56]req_shift_opened [07:15:56]FM_GetShiftState [07:15:56]SAM_PROTO_GetShiftState [07:15:56]wFMCommunicate request_size=4 [07:15:56]MH_SAM_APDU [07:15:56]CAPDU: 80 13 01 00 [07:15:56]Write to MH i2c: E2 08 00 F8 20 80 13 01 00 00 00 00 00 95 [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:56]Read from MH i2c: E2 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 0E 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 0E 00 F8 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 87 [07:15:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:15:56]wFMCommunicate OK [07:15:56]SAM_PROTO_GetShiftState done [07:15:56]FM_GetShiftState done [07:15:56]req_shift_opened done [07:15:56]requested_item shift.open_date is exist - process it [07:15:56]req_shift_open_date [07:15:56]req_shift_open_date done [07:15:56]produce_requested_data done [07:15:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104292,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:15:56]process_action_free close_receipt [07:15:56]json_value_free [07:15:56]json_value_free done [07:15:56]process_json_proto returns [07:15:56]Send response to host [07:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104292,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:15:56]free response buf [07:15:56]execute_script done [07:15:56]execute_script returns [07:15:56]free content buf [07:15:56]Sock 7.Close socket [07:15:56]Sock 7.Thread stoped [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:44]accept exits with 9 [07:18:44]New connection [07:18:44]New thread 3067473252 created [07:18:44]Thread 3067616612 joined [07:18:44]Waiting for new connection... [07:18:44] Sock 9.Parse request [07:18:44]Sock 9.Check first char [07:18:44]Sock 9.First char is OK [07:18:44]request: POST /json_proto HTTP/1.0 [07:18:44]Method: POST [07:18:44]URL: /json_proto [07:18:44]Method is POST - this is cgi request [07:18:44]url: /json_proto [07:18:44]query_string will be loaded in cgi processing [07:18:44]execute_cgi json_proto POST (null) [07:18:44]execute_cgi path=json_proto method=POST [07:18:44]POST find Content-Length [07:18:44]Host: 172.17.38.133:8080 [07:18:44]Content-Length: 817 [07:18:44]Content-Type: application/json [07:18:44] [07:18:44]POST finish read [07:18:44]Found Content-Length = 817 [07:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673782", "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 }]} ], "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" ] } } [07:18:44]execute_script... [07:18: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)673782", "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 }]} ], "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" ] } } [07:18:44]POST & json_proto [07:18:44]process_json_proto [07:18:44]json parsed OK: [07:18:44]protocol is kg_v1.0 [07:18:44]action value=close_receipt [07:18:44]process_action close_receipt [07:18:44]cmd_close_receipt [07:18:44]MH_GetDate [07:18:44]Write to MH i2c: F0 00 00 F9 20 08 [07:18:44]Write i2c OK [07:18:44]MH_I2C_Read... [07:18:44]Read from MH i2c: F0 [07:18:44]MH_I2C_Read... [07:18:44]Read from MH i2c: F0 09 00 [07:18:44]MH_I2C_Read... [07:18:44]Read from MH i2c: F0 09 00 F9 20 00 D8 7A 76 66 BD 8F 7C 64 6B [07:18:44]GetLastDocTimeStamp 1719040555 [07:18:44]current date 1719040728 [07:18:44]FM_GetShiftState [07:18:44]SAM_PROTO_GetShiftState [07:18:44]wFMCommunicate request_size=4 [07:18:44]MH_SAM_APDU [07:18:44]CAPDU: 80 13 01 00 [07:18:44]Write to MH i2c: E2 08 00 FA 20 80 13 01 00 00 00 00 00 97 [07:18:44]Write i2c OK [07:18:44]MH_I2C_Read... [07:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:44]Read from MH i2c: E2 [07:18:44]MH_I2C_Read... [07:18:44]Read from MH i2c: E2 0E 00 [07:18:44]MH_I2C_Read... [07:18:44]Read from MH i2c: E2 0E 00 FA 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 89 [07:18:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:18:44]wFMCommunicate OK [07:18:44]SAM_PROTO_GetShiftState done [07:18:44]FM_GetShiftState done [07:18:44]opened in 1719016176 [07:18:44]opened+sec_in_day 1719102576 [07:18:44]quantity*price = 66400 [07:18:44]sum+1 = 66401 [07:18:44]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 СНО: Общий режим Чек 26 22.06.2024 07:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104293 ФПД: 58660028555318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071848&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104293&fm=58660028555318&tin=02508201610067®Number=0000000000092785&sum=66400 [07:18:45]StoreToDocumentArchive [07:18:45]shift 356 fd 104293 [07:18:45]save to /storage/0356/doc_00104293 [07:18:45]save last doc name /storage/0356/doc_00104293 to /storage/kkm_last_doc_name [07:18:45]save OK [07:18:45]Clear old archive folders... [07:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:18:45]tlvbuf is B6F4A7B0 [07:18:45]SAM_PROTO_ClearQueue [07:18:45]wFMCommunicate request_size=4 [07:18:45]MH_SAM_APDU [07:18:45]CAPDU: 80 09 00 00 [07:18:45]Write to MH i2c: E2 08 00 07 21 80 09 00 00 00 00 00 00 9A [07:18:45]Write i2c OK [07:18:45]MH_I2C_Read... [07:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:45]Read from MH i2c: E2 [07:18:45]MH_I2C_Read... [07:18:45]Read from MH i2c: E2 03 00 [07:18:45]MH_I2C_Read... [07:18:45]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [07:18:45]RAPDU: 90 00 [07:18:45]wFMCommunicate OK [07:18:45]SAM_PROTO_ClearQueue done [07:18:45]KKMCreateOFDPacket [07:18:45]OFDProtocolAddRootSTLVToBuf [07:18:45]FM_MakeSignedData [07:18:45]FM_MakeSignedData [07:18:45]SAM_PROTO_SignData [07:18:45]wFMCommunicate request_size=4 [07:18:45]MH_SAM_APDU [07:18:45]CAPDU: 80 0D 01 02 [07:18:45]Write to MH i2c: E2 08 00 08 21 80 0D 01 02 00 00 00 00 A2 [07:18:45]Write i2c OK [07:18:45]MH_I2C_Read... [07:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:45]Read from MH i2c: E2 [07:18:45]MH_I2C_Read... [07:18:45]Read from MH i2c: E2 03 00 [07:18:45]MH_I2C_Read... [07:18:45]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [07:18:45]RAPDU: 90 00 [07:18:45]wFMCommunicate OK [07:18:45]wFMCommunicate request_size=255 [07:18:45]MH_SAM_APDU [07:18: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 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 1A 00 00 00 F4 03 04 00 D8 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 [07:18:45]Write to MH i2c: E2 02 01 09 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1A 00 00 00 F4 03 04 00 D8 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 00 00 F1 [07:18:45]Write i2c OK [07:18:45]MH_I2C_Read... [07:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:46]Read from MH i2c: E2 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 03 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [07:18:46]RAPDU: 90 00 [07:18:46]wFMCommunicate OK [07:18:46]wFMCommunicate request_size=10 [07:18:46]MH_SAM_APDU [07:18:46]CAPDU: 80 0D 02 02 05 59 DA 2A 20 36 [07:18:46]Write to MH i2c: E2 0D 00 0A 21 80 0D 02 02 05 00 59 DA 2A 20 36 00 00 62 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:46]Read from MH i2c: E2 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 03 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [07:18:46]RAPDU: 90 00 [07:18:46]wFMCommunicate OK [07:18:46]wFMCommunicate request_size=4 [07:18:46]MH_SAM_APDU [07:18:46]CAPDU: 80 0D 03 02 [07:18:46]Write to MH i2c: E2 08 00 0B 21 80 0D 03 02 00 00 00 00 A7 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:46]Read from MH i2c: E2 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 0B 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 0B 00 0B 21 00 8C C2 0E 10 42 59 D7 3C 90 00 C2 [07:18:46]RAPDU: 8C C2 0E 10 42 59 D7 3C 90 00 [07:18:46]wFMCommunicate OK [07:18:46]SAM_PROTO_SignData done [07:18:46]FM_MakeSignedData done [07:18:46]CreateOFDProtocolMessage [07:18:46]wFMCommunicate request_size=4 [07:18:46]MH_SAM_APDU [07:18:46]CAPDU: 80 11 00 00 [07:18:46]Write to MH i2c: E2 08 00 0C 21 80 11 00 00 00 00 00 00 A7 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:46]Read from MH i2c: E2 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 17 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: E2 17 00 0C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [07:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:18:46]wFMCommunicate OK [07:18:46]CreateOFDProtocolMessage done [07:18:46]OFDSenderStorePacket 104293 [07:18:46]StoreOFDPacket docnum=104293 [07:18: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 BC 79 07 01 E9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 D8 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 59 DA 2A 20 36 8C C2 0E 10 42 59 D7 3C [07:18:46]CheckFolder [07:18:46]dirname=/storage/ofd_packets [07:18:46]CheckFolder done [07:18:46]ProducePacketName [07:18:46]name=ofd_packets/00104293 [07:18:46]NVStorageSaveData ofd_packets/00104293 [07:18:46]File name is /storage/ofd_packets/00104293 [07:18:46]Write 301 bytes [07:18:46]NVStorageSaveData done [07:18:46]OFDSenderStorePacket done [07:18:46]KKMCreateOFDPacket done [07:18:46]NVStorageSaveData kkm_last_timestamp [07:18:46]File name is /storage/kkm_last_timestamp [07:18:46]Write 4 bytes [07:18:46]NVStorageSaveData done [07:18:46]ExternCall_PrintAddStr [07:18:46]wPrintStart [07:18:46]Write to MH i2c: 01 00 00 0D 21 2E [07:18:46]OFD Sender: Processing packet 104293 [packets to send 17, broken 16] [07:18:46]ProducePacketName [07:18:46]name=ofd_packets/00104293 [07:18:46]OFD Sender: To server: pG, [07:18:46]CommunicateWithHost lk.salyk.kg:30040 [07:18:46]ConnectInit lk.salyk.kg [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 07 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 07 00 0D 21 00 00 00 00 00 FF 0F 43 [07:18:46]RasterBufferAndPrint [07:18:46]line Счет N : (1)673782 [07:18:46]line ИНН: 02508201610067 [07:18:46]line Контрольно-Кассовый Чек [07:18:46]line ПРОДАЖА [07:18:46]line ТРК (МРК, ГНК) : 42 [07:18:46]line Товар: 2710124130 [07:18:46]line Аи-92-К-5 [07:18:46]line 10.000 * 66.40 [07:18:46]line = 664.00 [07:18:46]line НДС 12% НСП 1% [07:18:46]line > о реализуемом товаре [07:18:46]line ИТОГО: 664.00 [07:18:46]line НСП 1% : 5.88 [07:18:46]line НДС 12% : 70.51 [07:18:46]line Наличными: 0.00 [07:18:46]line Безнал.: 664.00 [07:18:46]line Место: АЗС № 120 "Партнер Нефть" [07:18:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:18:46]line СНО: Общий режим [07:18:46]line Чек 26 22.06.2024 07:18 [07:18:46]line Смена: 356 ФФД: 1.0 [07:18:46]line ЗНМ: 0300000164 [07:18:46]line РНМ: 0000000000092785 [07:18:46]line Версия ККМ: 001 [07:18:46]line Платежная система: Бакай Банк [07:18:46]line ФМ: 0000000000875093 [07:18:46]line ФД: 104293 [07:18:46]line ФПД: 58660028555318 [07:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071848&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104293&fm=58660028555318&tin=02508201610067®Number=0000000000092785&sum=66400 [07:18:46]Connected sock=11 [07:18: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 BC 79 07 01 E9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 D8 7A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 59 DA 2A 20 36 8C C2 0E 10 42 59 D7 3C [07:18:46]written 0, free lines is 4095 [07:18: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 79 07 47 00 73 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 65 97 01 00 F4 03 04 00 58 21 76 66 B6 04 01 00 00 C0 24 D8 53 6B 7F D3 9E [07:18:46]CommunicateWithHost err = 0 [07:18:46]CheckOFDResponse [07:18:46]1017 (14) - 77093643461234 [07:18:46]1041 (16) - 0000000000875093 [07:18:46]1040 (4) - 104293 [07:18:46]1012 (4) - 22.06.2024 00:56 [07:18:46]1206 (1) - 0 [07:18:46]OFD Sender: Remove packet 104293 [07:18:46]ProducePacketName [07:18:46]name=ofd_packets/00104293 [07:18:46]NVStorageDeleteData [07:18:46]Write to MH i2c: 01 00 00 37 21 58 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 07 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 DD 0C 48 [07:18:46]RasterBufferAndPrint [07:18:46]line [07:18:46]line [07:18:46]line [07:18:46]line [07:18:46]line [07:18:46]written 0, free lines is 3299 [07:18:46]MH_Cut [07:18:46]Write to MH i2c: D1 01 00 3E 21 01 31 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: D1 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: D1 01 00 [07:18:46]MH_I2C_Read... [07:18:46]Read from MH i2c: D1 01 00 3E 21 00 30 [07:18:46]Write to MH i2c: 01 00 00 3F 21 60 [07:18:46]Write i2c OK [07:18:46]MH_I2C_Read... [07:18:47]OFD Sender: No OFD packet to send [07:18:47]*** Cut start [07:18:47]*** Partial cut [07:18:47]*** CUTSNS_PIN = 1 [07:18:47]*** CUTSNS_PIN = 0 [07:18:47]*** Brake cut motor [07:18:48]Read from MH i2c: 01 [07:18:48]MH_I2C_Read... [07:18:48]*** Stop cut motor [07:18:48]*** Cut end [07:18:48]Read from MH i2c: 01 07 00 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: 01 07 00 3F 21 00 00 00 00 00 FF 0F 75 [07:18:48]process_action close_receipt done [07:18:48]requested_data is exist [07:18:48]produce_requested_data [07:18:48]requested_item fm.sn is exist - process it [07:18:48]wFMCommunicate request_size=4 [07:18:48]MH_SAM_APDU [07:18:48]CAPDU: 80 11 00 00 [07:18:48]Write to MH i2c: E2 08 00 40 21 80 11 00 00 00 00 00 00 DB [07:18:48]Write i2c OK [07:18:48]MH_I2C_Read... [07:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:48]Read from MH i2c: E2 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 17 00 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 17 00 40 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [07:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:18:48]wFMCommunicate OK [07:18:48]requested_item fd.num is exist - process it [07:18:48]SAM_PROTO_GetFieldsCounters [07:18:48]wFMCommunicate request_size=4 [07:18:48]MH_SAM_APDU [07:18:48]CAPDU: 80 13 00 00 [07:18:48]Write to MH i2c: E2 08 00 41 21 80 13 00 00 00 00 00 00 DE [07:18:48]Write i2c OK [07:18:48]MH_I2C_Read... [07:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:48]Read from MH i2c: E2 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 62 00 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 62 00 41 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B5 [07:18: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 65 97 01 00 0E 04 04 00 64 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 [07:18:48]wFMCommunicate OK [07:18:48]SAM_PROTO_GetFieldsCounters done [07:18:48]requested_item shift.num is exist - process it [07:18:48]requested_item shift.opened is exist - process it [07:18:48]req_shift_opened [07:18:48]FM_GetShiftState [07:18:48]SAM_PROTO_GetShiftState [07:18:48]wFMCommunicate request_size=4 [07:18:48]MH_SAM_APDU [07:18:48]CAPDU: 80 13 01 00 [07:18:48]Write to MH i2c: E2 08 00 42 21 80 13 01 00 00 00 00 00 E0 [07:18:48]Write i2c OK [07:18:48]MH_I2C_Read... [07:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:48]Read from MH i2c: E2 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 0E 00 [07:18:48]MH_I2C_Read... [07:18:48]Read from MH i2c: E2 0E 00 42 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D2 [07:18:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:18:48]wFMCommunicate OK [07:18:48]SAM_PROTO_GetShiftState done [07:18:48]FM_GetShiftState done [07:18:48]req_shift_opened done [07:18:48]requested_item shift.open_date is exist - process it [07:18:48]req_shift_open_date [07:18:48]req_shift_open_date done [07:18:48]produce_requested_data done [07:18:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104293,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:18:48]process_action_free close_receipt [07:18:48]json_value_free [07:18:48]json_value_free done [07:18:48]process_json_proto returns [07:18:48]Send response to host [07:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104293,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:18:48]free response buf [07:18:48]execute_script done [07:18:48]execute_script returns [07:18:48]free content buf [07:18:48]Sock 9.Close socket [07:18:48]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]accept exits with 7 [07:34:12]New connection [07:34:12]New thread 3067616612 created [07:34:12]Thread 3067473252 joined [07:34:12]Waiting for new connection... [07:34:12] Sock 7.Parse request [07:34:12]Sock 7.Check first char [07:34:12]Sock 7.First char is OK [07:34:12]request: POST /json_proto HTTP/1.0 [07:34:12]Method: POST [07:34:12]URL: /json_proto [07:34:12]Method is POST - this is cgi request [07:34:12]url: /json_proto [07:34:12]query_string will be loaded in cgi processing [07:34:12]execute_cgi json_proto POST (null) [07:34:12]execute_cgi path=json_proto method=POST [07:34:12]POST find Content-Length [07:34:12]Host: 172.17.38.133:8080 [07:34:12]Content-Length: 1210 [07:34:12]Content-Type: application/json [07:34:12] [07:34:12]POST finish read [07:34:12]Found Content-Length = 1210 [07:34: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673783\u000A22.06.2024 07:11\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\u000A3750948;3750949\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:12]execute_script... [07:34: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673783\u000A22.06.2024 07:11\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\u000A3750948;3750949\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:12]POST & json_proto [07:34:12]process_json_proto [07:34:12]json parsed OK: [07:34:12]protocol is kg_v1.0 [07:34:12]action value=print_text [07:34:12]process_action print_text [07:34:12]cmd_print_text [07:34:12]ExternCall_PrintAddStr [07:34:12]wPrintStart [07:34:12]Write to MH i2c: 01 00 00 43 21 64 [07:34:12]Write i2c OK [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 07 00 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 07 00 43 21 00 00 00 00 00 FF 0F 79 [07:34:12]RasterBufferAndPrint [07:34:12]line *****ТОВАРНЫЙ ЧЕК***** [07:34:12]line АЗС 120 [07:34:12]line Партнер нефть [07:34:12]line 02508201610067 [07:34:12]line Кассир : Байбугуева Г. [07:34:12]line Счет N : (1)673783 [07:34:12]line 22.06.2024 07:11 [07:34:12]line ПРОДАЖА [07:34:12]line ТРК (МРК, ГНК): 11 [07:34:12]line Вид ГСМ : 2710194210 [07:34:12]line ДТ(л)-К-5 [07:34:12]line 20.000 x 72.90 [07:34:12]line ИТОГ: 1458.00 [07:34:12]line Тип оплаты: Талоны: Партнер нефть [07:34:12]line 3750948;3750949 [07:34:12]line ______________________ [07:34:12]line (подпись) [07:34:12]written 0, free lines is 4095 [07:34:12]OFD Sender: No OFD packet to send [07:34:12]Write to MH i2c: 01 00 00 57 21 78 [07:34:12]Write i2c OK [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 07 00 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: 01 07 00 57 21 00 00 00 00 00 17 0E A4 [07:34:12]RasterBufferAndPrint [07:34:12]line [07:34:12]line [07:34:12]line [07:34:12]line [07:34:12]line [07:34:12]written 0, free lines is 3609 [07:34:12]MH_Cut [07:34:12]Write to MH i2c: D1 01 00 5E 21 01 51 [07:34:12]Write i2c OK [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: D1 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: D1 01 00 [07:34:12]MH_I2C_Read... [07:34:12]Read from MH i2c: D1 01 00 5E 21 00 50 [07:34:12]Write to MH i2c: 01 00 00 5F 21 80 [07:34:12]Write i2c OK [07:34:12]MH_I2C_Read... [07:34:13]*** Cut start [07:34:13]*** Partial cut [07:34:13]*** CUTSNS_PIN = 1 [07:34:13]*** CUTSNS_PIN = 0 [07:34:13]*** Brake cut motor [07:34:14]Read from MH i2c: 01 [07:34:14]MH_I2C_Read... [07:34:14]*** Stop cut motor [07:34:14]*** Cut end [07:34:14]Read from MH i2c: 01 07 00 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: 01 07 00 5F 21 00 00 00 00 00 FF 0F 95 [07:34:14]process_action print_text done [07:34:14]requested_data is exist [07:34:14]produce_requested_data [07:34:14]requested_item fm.sn is exist - process it [07:34:14]wFMCommunicate request_size=4 [07:34:14]MH_SAM_APDU [07:34:14]CAPDU: 80 11 00 00 [07:34:14]Write to MH i2c: E2 08 00 60 21 80 11 00 00 00 00 00 00 FB [07:34:14]Write i2c OK [07:34:14]MH_I2C_Read... [07:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:14]Read from MH i2c: E2 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 17 00 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 17 00 60 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [07:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:34:14]wFMCommunicate OK [07:34:14]requested_item fd.num is exist - process it [07:34:14]SAM_PROTO_GetFieldsCounters [07:34:14]wFMCommunicate request_size=4 [07:34:14]MH_SAM_APDU [07:34:14]CAPDU: 80 13 00 00 [07:34:14]Write to MH i2c: E2 08 00 61 21 80 13 00 00 00 00 00 00 FE [07:34:14]Write i2c OK [07:34:14]MH_I2C_Read... [07:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:14]Read from MH i2c: E2 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 62 00 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 62 00 61 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D5 [07:34: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 65 97 01 00 0E 04 04 00 64 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 [07:34:14]wFMCommunicate OK [07:34:14]SAM_PROTO_GetFieldsCounters done [07:34:14]requested_item shift.num is exist - process it [07:34:14]requested_item shift.opened is exist - process it [07:34:14]req_shift_opened [07:34:14]FM_GetShiftState [07:34:14]SAM_PROTO_GetShiftState [07:34:14]wFMCommunicate request_size=4 [07:34:14]MH_SAM_APDU [07:34:14]CAPDU: 80 13 01 00 [07:34:14]Write to MH i2c: E2 08 00 62 21 80 13 01 00 00 00 00 00 00 [07:34:14]Write i2c OK [07:34:14]MH_I2C_Read... [07:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:14]Read from MH i2c: E2 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 0E 00 [07:34:14]MH_I2C_Read... [07:34:14]Read from MH i2c: E2 0E 00 62 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F2 [07:34:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:34:14]wFMCommunicate OK [07:34:14]SAM_PROTO_GetShiftState done [07:34:14]FM_GetShiftState done [07:34:14]req_shift_opened done [07:34:14]requested_item shift.open_date is exist - process it [07:34:14]req_shift_open_date [07:34:14]req_shift_open_date done [07:34:14]produce_requested_data done [07:34:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104293,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:34:14]process_action_free print_text [07:34:14]json_value_free [07:34:14]json_value_free done [07:34:14]process_json_proto returns [07:34:14]Send response to host [07:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104293,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:34:14]free response buf [07:34:14]execute_script done [07:34:14]execute_script returns [07:34:14]free content buf [07:34:14]Sock 7.Close socket [07:34:14]Sock 7.Thread stoped [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]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:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]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:57]accept exits with 9 [07:37:57]New connection [07:37:57]New thread 3067473252 created [07:37:57]Thread 3067616612 joined [07:37:57]Waiting for new connection... [07:37:57] Sock 9.Parse request [07:37:57]Sock 9.Check first char [07:37:57]Sock 9.First char is OK [07:37:57]request: POST /json_proto HTTP/1.0 [07:37:57]Method: POST [07:37:57]URL: /json_proto [07:37:57]Method is POST - this is cgi request [07:37:57]url: /json_proto [07:37:57]query_string will be loaded in cgi processing [07:37:57]execute_cgi json_proto POST (null) [07:37:57]execute_cgi path=json_proto method=POST [07:37:57]POST find Content-Length [07:37:57]Host: 172.17.38.133:8080 [07:37:57]Content-Length: 677 [07:37:57]Content-Type: application/json [07:37:57] [07:37:57]POST finish read [07:37:57]Found Content-Length = 677 [07:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673784", "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" ] } } [07:37:57]execute_script... [07:37: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)673784", "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" ] } } [07:37:57]POST & json_proto [07:37:57]process_json_proto [07:37:57]json parsed OK: [07:37:57]protocol is kg_v1.0 [07:37:57]action value=close_receipt [07:37:57]process_action close_receipt [07:37:57]cmd_close_receipt [07:37:57]MH_GetDate [07:37:57]Write to MH i2c: F0 00 00 63 21 73 [07:37:57]Write i2c OK [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: F0 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: F0 09 00 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: F0 09 00 63 21 00 59 7F 76 66 BD 8F 7C 64 5C [07:37:57]GetLastDocTimeStamp 1719040728 [07:37:57]current date 1719041881 [07:37:57]FM_GetShiftState [07:37:57]SAM_PROTO_GetShiftState [07:37:57]wFMCommunicate request_size=4 [07:37:57]MH_SAM_APDU [07:37:57]CAPDU: 80 13 01 00 [07:37:57]Write to MH i2c: E2 08 00 64 21 80 13 01 00 00 00 00 00 02 [07:37:57]Write i2c OK [07:37:57]MH_I2C_Read... [07:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:57]Read from MH i2c: E2 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 0E 00 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 0E 00 64 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F4 [07:37:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:37:57]wFMCommunicate OK [07:37:57]SAM_PROTO_GetShiftState done [07:37:57]FM_GetShiftState done [07:37:57]opened in 1719016176 [07:37:57]opened+sec_in_day 1719102576 [07:37:57]quantity*price = 40039 [07:37:57]sum+1 = 40040 [07:37:57]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 СНО: Общий режим Чек 27 22.06.2024 07:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104294 ФПД: 118749638766259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T073801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104294&fm=118749638766259&tin=02508201610067®Number=0000000000092785&sum=40000 [07:37:58]StoreToDocumentArchive [07:37:58]shift 356 fd 104294 [07:37:58]save to /storage/0356/doc_00104294 [07:37:58]save last doc name /storage/0356/doc_00104294 to /storage/kkm_last_doc_name [07:37:58]save OK [07:37:58]Clear old archive folders... [07:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:58]tlvbuf is 0069CDD0 [07:37:58]SAM_PROTO_ClearQueue [07:37:58]wFMCommunicate request_size=4 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 09 00 00 [07:37:58]Write to MH i2c: E2 08 00 71 21 80 09 00 00 00 00 00 00 04 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 71 21 00 90 00 06 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]SAM_PROTO_ClearQueue done [07:37:58]KKMCreateOFDPacket [07:37:58]OFDProtocolAddRootSTLVToBuf [07:37:58]FM_MakeSignedData [07:37:58]FM_MakeSignedData [07:37:58]SAM_PROTO_SignData [07:37:58]wFMCommunicate request_size=4 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 0D 01 02 [07:37:58]Write to MH i2c: E2 08 00 72 21 80 0D 01 02 00 00 00 00 0C [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 72 21 00 90 00 07 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]wFMCommunicate request_size=255 [07:37:58]MH_SAM_APDU [07:37: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 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 1B 00 00 00 F4 03 04 00 59 7F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C [07:37:58]Write to MH i2c: E2 02 01 73 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 F4 03 04 00 59 7F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 00 00 32 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 73 21 00 90 00 08 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]wFMCommunicate request_size=10 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 0D 02 02 05 00 8E 09 2E B3 [07:37:58]Write to MH i2c: E2 0D 00 74 21 80 0D 02 02 05 00 00 8E 09 2E B3 00 00 91 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 74 21 00 90 00 09 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]wFMCommunicate request_size=4 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 0D 03 02 [07:37:58]Write to MH i2c: E2 08 00 75 21 80 0D 03 02 00 00 00 00 11 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:59]Read from MH i2c: E2 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 0B 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 0B 00 75 21 00 CB BA 87 A5 C7 C3 ED ED 90 00 27 [07:37:59]RAPDU: CB BA 87 A5 C7 C3 ED ED 90 00 [07:37:59]wFMCommunicate OK [07:37:59]SAM_PROTO_SignData done [07:37:59]FM_MakeSignedData done [07:37:59]CreateOFDProtocolMessage [07:37:59]wFMCommunicate request_size=4 [07:37:59]MH_SAM_APDU [07:37:59]CAPDU: 80 11 00 00 [07:37:59]Write to MH i2c: E2 08 00 76 21 80 11 00 00 00 00 00 00 11 [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:59]Read from MH i2c: E2 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 17 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: E2 17 00 76 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [07:37: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:37:59]wFMCommunicate OK [07:37:59]CreateOFDProtocolMessage done [07:37:59]OFDSenderStorePacket 104294 [07:37:59]StoreOFDPacket docnum=104294 [07:37: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 B1 EB 07 01 3B 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 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 1B 00 00 00 F4 03 04 00 59 7F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 00 8E 09 2E B3 CB BA 87 A5 C7 C3 ED ED [07:37:59]CheckFolder [07:37:59]dirname=/storage/ofd_packets [07:37:59]CheckFolder done [07:37:59]ProducePacketName [07:37:59]name=ofd_packets/00104294 [07:37:59]NVStorageSaveData ofd_packets/00104294 [07:37:59]File name is /storage/ofd_packets/00104294 [07:37:59]Write 301 bytes [07:37:59]NVStorageSaveData done [07:37:59]OFDSenderStorePacket done [07:37:59]KKMCreateOFDPacket done [07:37:59]NVStorageSaveData kkm_last_timestamp [07:37:59]File name is /storage/kkm_last_timestamp [07:37:59]Write 4 bytes [07:37:59]NVStorageSaveData done [07:37:59]ExternCall_PrintAddStr [07:37:59]wPrintStart [07:37:59]Write to MH i2c: 01 00 00 77 21 98 [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 07 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 FF 0F AD [07:37:59]RasterBufferAndPrint [07:37:59]line Счет N : (1)673784 [07:37:59]line ИНН: 02508201610067 [07:37:59]line Контрольно-Кассовый Чек [07:37:59]line ПРОДАЖА [07:37:59]line ТРК (МРК, ГНК) : 32 [07:37:59]line Товар: 2710124130 [07:37:59]line Аи-92-К-5 [07:37:59]line 6.030 * 66.40 [07:37:59]line = 400.39 [07:37:59]line НДС 12% НСП 1% [07:37:59]line > о реализуемом товаре [07:37:59]line ОКРУГЛЕНИЕ: -0.39 [07:37:59]line ИТОГО: 400.00 [07:37:59]line Внесено: 400.00 [07:37:59]line СДАЧА: 0.00 [07:37:59]line НСП 1% : 3.54 [07:37:59]line НДС 12% : 42.52 [07:37:59]line Наличными: 400.00 [07:37:59]line Безнал.: 0.00 [07:37:59]line Место: АЗС № 120 "Партнер Нефть" [07:37:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:37:59]line СНО: Общий режим [07:37:59]line Чек 27 22.06.2024 07:38 [07:37:59]line Смена: 356 ФФД: 1.0 [07:37:59]line ЗНМ: 0300000164 [07:37:59]line РНМ: 0000000000092785 [07:37:59]line Версия ККМ: 001 [07:37:59]line ФМ: 0000000000875093 [07:37:59]line ФД: 104294 [07:37:59]line ФПД: 118749638766259 [07:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T073801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104294&fm=118749638766259&tin=02508201610067®Number=0000000000092785&sum=40000 [07:37:59]OFD Sender: Processing packet 104294 [packets to send 17, broken 16] [07:37:59]ProducePacketName [07:37:59]name=ofd_packets/00104294 [07:37:59]OFD Sender: To server: pG, [07:37:59]CommunicateWithHost lk.salyk.kg:30040 [07:37:59]ConnectInit lk.salyk.kg [07:37:59]written 0, free lines is 4095 [07:37:59]Connected sock=10 [07:37: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 B1 EB 07 01 3B 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 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 1B 00 00 00 F4 03 04 00 59 7F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6C 00 8E 09 2E B3 CB BA 87 A5 C7 C3 ED ED [07:37: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 9C 3A 47 00 69 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 97 01 00 F4 03 04 00 D9 25 76 66 B6 04 01 00 00 4D 61 87 DE FA 17 B0 CE [07:37:59]CommunicateWithHost err = 0 [07:37:59]CheckOFDResponse [07:37:59]1017 (14) - 77093643461234 [07:37:59]1041 (16) - 0000000000875093 [07:37:59]1040 (4) - 104294 [07:37:59]1012 (4) - 22.06.2024 01:16 [07:37:59]1206 (1) - 0 [07:37:59]OFD Sender: Remove packet 104294 [07:37:59]ProducePacketName [07:37:59]name=ofd_packets/00104294 [07:37:59]NVStorageDeleteData [07:37:59]Write to MH i2c: 01 00 00 A2 21 C3 [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 07 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: 01 07 00 A2 21 00 00 00 00 00 DA 0C B0 [07:37:59]RasterBufferAndPrint [07:37:59]line [07:37:59]line [07:37:59]line [07:37:59]line [07:37:59]line [07:37:59]written 0, free lines is 3297 [07:37:59]MH_Cut [07:37:59]Write to MH i2c: D1 01 00 A9 21 01 9C [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: D1 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: D1 01 00 [07:37:59]MH_I2C_Read... [07:37:59]Read from MH i2c: D1 01 00 A9 21 00 9B [07:37:59]Write to MH i2c: 01 00 00 AA 21 CB [07:37:59]Write i2c OK [07:37:59]MH_I2C_Read... [07:38:00]OFD Sender: No OFD packet to send [07:38:00]*** Cut start [07:38:00]*** Partial cut [07:38:00]*** CUTSNS_PIN = 1 [07:38:00]*** CUTSNS_PIN = 0 [07:38:00]*** Brake cut motor [07:38:01]Read from MH i2c: 01 [07:38:01]MH_I2C_Read... [07:38:01]*** Stop cut motor [07:38:01]*** Cut end [07:38:01]Read from MH i2c: 01 07 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: 01 07 00 AA 21 00 00 00 00 00 FF 0F E0 [07:38:01]process_action close_receipt done [07:38:01]requested_data is exist [07:38:01]produce_requested_data [07:38:01]requested_item fm.sn is exist - process it [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 11 00 00 [07:38:01]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [07:38: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:38:01]wFMCommunicate OK [07:38:01]requested_item fd.num is exist - process it [07:38:01]SAM_PROTO_GetFieldsCounters [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 13 00 00 [07:38:01]Write to MH i2c: E2 08 00 AC 21 80 13 00 00 00 00 00 00 49 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 62 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 62 00 AC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 24 [07:38: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 66 97 01 00 0E 04 04 00 64 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 [07:38:01]wFMCommunicate OK [07:38:01]SAM_PROTO_GetFieldsCounters done [07:38:01]requested_item shift.num is exist - process it [07:38:01]requested_item shift.opened is exist - process it [07:38:01]req_shift_opened [07:38:01]FM_GetShiftState [07:38:01]SAM_PROTO_GetShiftState [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 13 01 00 [07:38:01]Write to MH i2c: E2 08 00 AD 21 80 13 01 00 00 00 00 00 4B [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0E 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0E 00 AD 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3D [07:38:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:38:01]wFMCommunicate OK [07:38:01]SAM_PROTO_GetShiftState done [07:38:01]FM_GetShiftState done [07:38:01]req_shift_opened done [07:38:01]requested_item shift.open_date is exist - process it [07:38:01]req_shift_open_date [07:38:01]req_shift_open_date done [07:38:01]produce_requested_data done [07:38:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104294,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:38:01]process_action_free close_receipt [07:38:01]json_value_free [07:38:01]json_value_free done [07:38:01]process_json_proto returns [07:38:01]Send response to host [07:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104294,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:38:01]free response buf [07:38:01]execute_script done [07:38:01]execute_script returns [07:38:01]free content buf [07:38:01]Sock 9.Close socket [07:38:01]Sock 9.Thread stoped [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:44]accept exits with 7 [07:45:44]New connection [07:45:44]New thread 3067616612 created [07:45:44]Thread 3067473252 joined [07:45:44]Waiting for new connection... [07:45:44] Sock 7.Parse request [07:45:44]Sock 7.Check first char [07:45:44]Sock 7.First char is OK [07:45:44]request: POST /json_proto HTTP/1.0 [07:45:44]Method: POST [07:45:44]URL: /json_proto [07:45:44]Method is POST - this is cgi request [07:45:44]url: /json_proto [07:45:44]query_string will be loaded in cgi processing [07:45:44]execute_cgi json_proto POST (null) [07:45:44]execute_cgi path=json_proto method=POST [07:45:44]POST find Content-Length [07:45:44]Host: 172.17.38.133:8080 [07:45:44]Content-Length: 819 [07:45:44]Content-Type: application/json [07:45:44] [07:45:44]POST finish read [07:45:44]Found Content-Length = 819 [07:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673785", "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 }]} ], "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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]execute_script... [07:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673785", "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 }]} ], "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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]POST & json_proto [07:45:44]process_json_proto [07:45:44]json parsed OK: [07:45:44]protocol is kg_v1.0 [07:45:44]action value=close_receipt [07:45:44]process_action close_receipt [07:45:44]cmd_close_receipt [07:45:44]MH_GetDate [07:45:44]Write to MH i2c: F0 00 00 AE 21 BE [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 AE 21 00 2C 81 76 66 BD 8F 7C 64 7C [07:45:44]GetLastDocTimeStamp 1719041881 [07:45:44]current date 1719042348 [07:45:44]FM_GetShiftState [07:45:44]SAM_PROTO_GetShiftState [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 13 01 00 [07:45:44]Write to MH i2c: E2 08 00 AF 21 80 13 01 00 00 00 00 00 4D [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 AF 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3F [07:45:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:45:44]wFMCommunicate OK [07:45:44]SAM_PROTO_GetShiftState done [07:45:44]FM_GetShiftState done [07:45:44]opened in 1719016176 [07:45:44]opened+sec_in_day 1719102576 [07:45:44]quantity*price = 100060 [07:45:44]sum+1 = 100062 [07:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 22.06.2024 07:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104295 ФПД: 261748707189161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104295&fm=261748707189161&tin=02508201610067®Number=0000000000092785&sum=100061 [07:45:45]StoreToDocumentArchive [07:45:45]shift 356 fd 104295 [07:45:45]save to /storage/0356/doc_00104295 [07:45:45]save last doc name /storage/0356/doc_00104295 to /storage/kkm_last_doc_name [07:45:45]save OK [07:45:45]Clear old archive folders... [07:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:45]tlvbuf is B6FFA230 [07:45:45]SAM_PROTO_ClearQueue [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 09 00 00 [07:45:45]Write to MH i2c: E2 08 00 BC 21 80 09 00 00 00 00 00 00 4F [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 BC 21 00 90 00 51 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_ClearQueue done [07:45:45]KKMCreateOFDPacket [07:45:45]OFDProtocolAddRootSTLVToBuf [07:45:45]FM_MakeSignedData [07:45:45]FM_MakeSignedData [07:45:45]SAM_PROTO_SignData [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 01 02 [07:45:45]Write to MH i2c: E2 08 00 BD 21 80 0D 01 02 00 00 00 00 57 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 BD 21 00 90 00 52 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=255 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE [07:45:45]Write to MH i2c: E2 02 01 BE 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE 00 00 C3 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]OFD Sender: No OFD packet to send [07:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 BE 21 00 90 00 53 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=10 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 02 02 05 0F 1E B6 61 A9 [07:45:45]Write to MH i2c: E2 0D 00 BF 21 80 0D 02 02 05 00 0F 1E B6 61 A9 00 00 51 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 BF 21 00 90 00 54 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 03 02 [07:45:45]Write to MH i2c: E2 08 00 C0 21 80 0D 03 02 00 00 00 00 5C [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0B 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0B 00 C0 21 00 FE B5 33 F6 7E 84 0D 3B 90 00 83 [07:45:45]RAPDU: FE B5 33 F6 7E 84 0D 3B 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_SignData done [07:45:45]FM_MakeSignedData done [07:45:45]CreateOFDProtocolMessage [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 11 00 00 [07:45:45]Write to MH i2c: E2 08 00 C1 21 80 11 00 00 00 00 00 00 5C [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 17 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 17 00 C1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [07:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:45:45]wFMCommunicate OK [07:45:45]CreateOFDProtocolMessage done [07:45:45]OFDSenderStorePacket 104295 [07:45:45]StoreOFDPacket docnum=104295 [07:45: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 02 9B 07 01 1F 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 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 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE 0F 1E B6 61 A9 FE B5 33 F6 7E 84 0D 3B [07:45:45]CheckFolder [07:45:45]dirname=/storage/ofd_packets [07:45:45]CheckFolder done [07:45:45]ProducePacketName [07:45:45]name=ofd_packets/00104295 [07:45:45]NVStorageSaveData ofd_packets/00104295 [07:45:45]File name is /storage/ofd_packets/00104295 [07:45:45]Write 301 bytes [07:45:45]NVStorageSaveData done [07:45:45]OFDSenderStorePacket done [07:45:45]KKMCreateOFDPacket done [07:45:45]NVStorageSaveData kkm_last_timestamp [07:45:45]File name is /storage/kkm_last_timestamp [07:45:45]Write 4 bytes [07:45:45]NVStorageSaveData done [07:45:45]ExternCall_PrintAddStr [07:45:45]wPrintStart [07:45:45]Write to MH i2c: 01 00 00 C2 21 E3 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 07 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 07 00 C2 21 00 00 00 00 00 FF 0F F8 [07:45:45]RasterBufferAndPrint [07:45:45]line Счет N : (1)673785 [07:45:45]line ИНН: 02508201610067 [07:45:45]line Контрольно-Кассовый Чек [07:45:45]line ПРОДАЖА [07:45:45]line ТРК (МРК, ГНК) : 31 [07:45:45]line Товар: 2710124500 [07:45:45]line Аи-95-К-5 [07:45:45]line 13.540 * 73.90 [07:45:45]line = 1000.61 [07:45:45]line НДС 12% НСП 1% [07:45:45]line > о реализуемом товаре [07:45:45]line ИТОГО: 1000.61 [07:45:45]line НСП 1% : 8.85 [07:45:45]line НДС 12% : 106.26 [07:45:45]line Наличными: 0.00 [07:45:45]line Безнал.: 1000.61 [07:45:45]line Место: АЗС № 120 "Партнер Нефть" [07:45:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:45:45]line СНО: Общий режим [07:45:45]line Чек 28 22.06.2024 07:45 [07:45:45]line Смена: 356 ФФД: 1.0 [07:45:45]line ЗНМ: 0300000164 [07:45:45]line РНМ: 0000000000092785 [07:45:45]line Версия ККМ: 001 [07:45:45]line Платежная система: Бакай Банк [07:45:45]line ФМ: 0000000000875093 [07:45:45]line ФД: 104295 [07:45:45]line ФПД: 261748707189161 [07:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104295&fm=261748707189161&tin=02508201610067®Number=0000000000092785&sum=100061 [07:45:46]OFD Sender: Processing packet 104295 [packets to send 17, broken 16] [07:45:46]ProducePacketName [07:45:46]name=ofd_packets/00104295 [07:45:46]OFD Sender: To server: pG, [07:45:46]CommunicateWithHost lk.salyk.kg:30040 [07:45:46]ConnectInit lk.salyk.kg [07:45:46]written 0, free lines is 4095 [07:45:46]Connected sock=10 [07:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 9B 07 01 1F 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 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 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE 0F 1E B6 61 A9 FE B5 33 F6 7E 84 0D 3B [07:45: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 85 1C 47 00 26 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 67 97 01 00 F4 03 04 00 AB 27 76 66 B6 04 01 00 00 DC EA 38 AF AA 46 C0 E9 [07:45:46]CommunicateWithHost err = 0 [07:45:46]CheckOFDResponse [07:45:46]1017 (14) - 77093643461234 [07:45:46]1041 (16) - 0000000000875093 [07:45:46]1040 (4) - 104295 [07:45:46]1012 (4) - 22.06.2024 01:23 [07:45:46]1206 (1) - 0 [07:45:46]OFD Sender: Remove packet 104295 [07:45:46]ProducePacketName [07:45:46]name=ofd_packets/00104295 [07:45:46]NVStorageDeleteData [07:45:46]Write to MH i2c: 01 00 00 EC 21 0D [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 EC 21 00 00 00 00 00 E3 0C 03 [07:45:46]RasterBufferAndPrint [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]written 0, free lines is 3306 [07:45:46]MH_Cut [07:45:46]Write to MH i2c: D1 01 00 F3 21 01 E6 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 01 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 01 00 F3 21 00 E5 [07:45:46]Write to MH i2c: 01 00 00 F4 21 15 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:47]OFD Sender: No OFD packet to send [07:45:47]*** Cut start [07:45:47]*** Partial cut [07:45:47]*** CUTSNS_PIN = 1 [07:45:47]*** CUTSNS_PIN = 0 [07:45:47]*** Brake cut motor [07:45:48]Read from MH i2c: 01 [07:45:48]MH_I2C_Read... [07:45:48]*** Stop cut motor [07:45:48]*** Cut end [07:45:48]Read from MH i2c: 01 07 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: 01 07 00 F4 21 00 00 00 00 00 FF 0F 2A [07:45:48]process_action close_receipt done [07:45:48]requested_data is exist [07:45:48]produce_requested_data [07:45:48]requested_item fm.sn is exist - process it [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 11 00 00 [07:45:48]Write to MH i2c: E2 08 00 F5 21 80 11 00 00 00 00 00 00 90 [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 17 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 17 00 F5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [07:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:45:48]wFMCommunicate OK [07:45:48]requested_item fd.num is exist - process it [07:45:48]SAM_PROTO_GetFieldsCounters [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 13 00 00 [07:45:48]Write to MH i2c: E2 08 00 F6 21 80 13 00 00 00 00 00 00 93 [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 F6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 72 [07:45: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 97 01 00 0E 04 04 00 64 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 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetFieldsCounters done [07:45:48]requested_item shift.num is exist - process it [07:45:48]requested_item shift.opened is exist - process it [07:45:48]req_shift_opened [07:45:48]FM_GetShiftState [07:45:48]SAM_PROTO_GetShiftState [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 13 01 00 [07:45:48]Write to MH i2c: E2 08 00 F7 21 80 13 01 00 00 00 00 00 95 [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 F7 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 87 [07:45:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetShiftState done [07:45:48]FM_GetShiftState done [07:45:48]req_shift_opened done [07:45:48]requested_item shift.open_date is exist - process it [07:45:48]req_shift_open_date [07:45:48]req_shift_open_date done [07:45:48]produce_requested_data done [07:45:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104295,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:45:48]process_action_free close_receipt [07:45:48]json_value_free [07:45:48]json_value_free done [07:45:48]process_json_proto returns [07:45:48]Send response to host [07:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104295,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:45:48]free response buf [07:45:48]execute_script done [07:45:48]execute_script returns [07:45:48]free content buf [07:45:48]Sock 7.Close socket [07:45:48]Sock 7.Thread stoped [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:09]accept exits with 9 [07:48:09]New connection [07:48:09]New thread 3067473252 created [07:48:09]Thread 3067616612 joined [07:48:09]Waiting for new connection... [07:48:09] Sock 9.Parse request [07:48:09]Sock 9.Check first char [07:48:09]Sock 9.First char is OK [07:48:09]request: POST /json_proto HTTP/1.0 [07:48:09]Method: POST [07:48:09]URL: /json_proto [07:48:09]Method is POST - this is cgi request [07:48:09]url: /json_proto [07:48:09]query_string will be loaded in cgi processing [07:48:09]execute_cgi json_proto POST (null) [07:48:09]execute_cgi path=json_proto method=POST [07:48:09]POST find Content-Length [07:48:09]Host: 172.17.38.133:8080 [07:48:09]Content-Length: 796 [07:48:09]Content-Type: application/json [07:48:09] [07:48:09]POST finish read [07:48:09]Found Content-Length = 796 [07:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673786", "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" : 0.140, "sum" : 9.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:09]execute_script... [07:48:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673786", "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" : 0.140, "sum" : 9.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:09]POST & json_proto [07:48:09]process_json_proto [07:48:09]json parsed OK: [07:48:09]protocol is kg_v1.0 [07:48:09]action value=close_receipt [07:48:09]process_action close_receipt [07:48:09]cmd_close_receipt [07:48:09]MH_GetDate [07:48:09]Write to MH i2c: F0 00 00 F8 21 08 [07:48:09]Write i2c OK [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 09 00 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 09 00 F8 21 00 BD 81 76 66 BD 8F 7C 64 57 [07:48:09]GetLastDocTimeStamp 1719042348 [07:48:09]current date 1719042493 [07:48:09]FM_GetShiftState [07:48:09]SAM_PROTO_GetShiftState [07:48:09]wFMCommunicate request_size=4 [07:48:09]MH_SAM_APDU [07:48:09]CAPDU: 80 13 01 00 [07:48:09]Write to MH i2c: E2 08 00 F9 21 80 13 01 00 00 00 00 00 97 [07:48:09]Write i2c OK [07:48:09]MH_I2C_Read... [07:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:09]Read from MH i2c: E2 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: E2 0E 00 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: E2 0E 00 F9 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 89 [07:48:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:48:09]wFMCommunicate OK [07:48:09]SAM_PROTO_GetShiftState done [07:48:09]FM_GetShiftState done [07:48:09]opened in 1719016176 [07:48:09]opened+sec_in_day 1719102576 [07:48:09]quantity*price = 929 [07:48:09]sum+1 = 931 [07:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9.30 НСП 1% : 0.08 НДС 12% : 0.99 Наличными: 0.00 Безнал.: 9.30 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 22.06.2024 07:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104296 ФПД: 156241861682906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074813&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104296&fm=156241861682906&tin=02508201610067®Number=0000000000092785&sum=930 [07:48:10]StoreToDocumentArchive [07:48:10]shift 356 fd 104296 [07:48:10]save to /storage/0356/doc_00104296 [07:48:10]save last doc name /storage/0356/doc_00104296 to /storage/kkm_last_doc_name [07:48:10]save OK [07:48:10]Clear old archive folders... [07:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:10]tlvbuf is 006620A0 [07:48:10]SAM_PROTO_ClearQueue [07:48:10]wFMCommunicate request_size=4 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 09 00 00 [07:48:10]Write to MH i2c: E2 08 00 06 22 80 09 00 00 00 00 00 00 9A [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:10]Read from MH i2c: E2 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 06 22 00 90 00 9C [07:48:10]RAPDU: 90 00 [07:48:10]wFMCommunicate OK [07:48:10]SAM_PROTO_ClearQueue done [07:48:10]KKMCreateOFDPacket [07:48:10]OFDProtocolAddRootSTLVToBuf [07:48:10]FM_MakeSignedData [07:48:10]FM_MakeSignedData [07:48:10]SAM_PROTO_SignData [07:48:10]wFMCommunicate request_size=4 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 0D 01 02 [07:48:10]Write to MH i2c: E2 08 00 07 22 80 0D 01 02 00 00 00 00 A2 [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:10]Read from MH i2c: E2 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 07 22 00 90 00 9D [07:48:10]RAPDU: 90 00 [07:48:10]wFMCommunicate OK [07:48:10]wFMCommunicate request_size=255 [07:48:10]MH_SAM_APDU [07:48: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 8C 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A2 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8E [07:48:10]Write to MH i2c: E2 02 01 08 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A2 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8E 00 00 CB [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 08 22 00 90 00 9E [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]wFMCommunicate request_size=10 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 0D 02 02 05 19 E4 AA 26 DA [07:48:11]Write to MH i2c: E2 0D 00 09 22 80 0D 02 02 05 00 19 E4 AA 26 DA 00 00 56 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 09 22 00 90 00 9F [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 0D 03 02 [07:48:11]Write to MH i2c: E2 08 00 0A 22 80 0D 03 02 00 00 00 00 A7 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0B 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0B 00 0A 22 00 5F 53 4F E0 38 35 0F 81 90 00 86 [07:48:11]RAPDU: 5F 53 4F E0 38 35 0F 81 90 00 [07:48:11]wFMCommunicate OK [07:48:11]SAM_PROTO_SignData done [07:48:11]FM_MakeSignedData done [07:48:11]CreateOFDProtocolMessage [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 11 00 00 [07:48:11]Write to MH i2c: E2 08 00 0B 22 80 11 00 00 00 00 00 00 A7 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 17 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 17 00 0B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [07: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 [07:48:11]wFMCommunicate OK [07:48:11]CreateOFDProtocolMessage done [07:48:11]OFDSenderStorePacket 104296 [07:48:11]StoreOFDPacket docnum=104296 [07: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 FC 96 07 01 67 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 8C 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A2 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8E 19 E4 AA 26 DA 5F 53 4F E0 38 35 0F 81 [07:48:11]CheckFolder [07:48:11]dirname=/storage/ofd_packets [07:48:11]CheckFolder done [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00104296 [07:48:11]NVStorageSaveData ofd_packets/00104296 [07:48:11]File name is /storage/ofd_packets/00104296 [07:48:11]Write 301 bytes [07:48:11]NVStorageSaveData done [07:48:11]OFDSenderStorePacket done [07:48:11]KKMCreateOFDPacket done [07:48:11]NVStorageSaveData kkm_last_timestamp [07:48:11]File name is /storage/kkm_last_timestamp [07:48:11]Write 4 bytes [07:48:11]NVStorageSaveData done [07:48:11]ExternCall_PrintAddStr [07:48:11]wPrintStart [07:48:11]Write to MH i2c: 01 00 00 0C 22 2E [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 07 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 07 00 0C 22 00 00 00 00 00 FF 0F 43 [07:48:11]RasterBufferAndPrint [07:48:11]line Счет N : (1)673786 [07:48:11]line ИНН: 02508201610067 [07:48:11]line Контрольно-Кассовый Чек [07:48:11]line ПРОДАЖА [07:48:11]line ТРК (МРК, ГНК) : 42 [07:48:11]line Товар: 2710124130 [07:48:11]line Аи-92-К-5 [07:48:11]line 0.140 * 66.40 [07:48:11]line = 9.30 [07:48:11]line НДС 12% НСП 1% [07:48:11]line > о реализуемом товаре [07:48:11]line ИТОГО: 9.30 [07:48:11]line НСП 1% : 0.08 [07:48:11]line НДС 12% : 0.99 [07:48:11]line Наличными: 0.00 [07:48:11]line Безнал.: 9.30 [07:48:11]line Место: АЗС № 120 "Партнер Нефть" [07:48:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:48:11]line СНО: Общий режим [07:48:11]line Чек 29 22.06.2024 07:48 [07:48:11]line Смена: 356 ФФД: 1.0 [07:48:11]line ЗНМ: 0300000164 [07:48:11]line РНМ: 0000000000092785 [07:48:11]line Версия ККМ: 001 [07:48:11]line Платежная система: O! деньги [07:48:11]line ФМ: 0000000000875093 [07:48:11]line ФД: 104296 [07:48:11]line ФПД: 156241861682906 [07:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074813&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104296&fm=156241861682906&tin=02508201610067®Number=0000000000092785&sum=930 [07:48:11]OFD Sender: Processing packet 104296 [packets to send 17, broken 16] [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00104296 [07:48:11]OFD Sender: To server: pG, [07:48:11]CommunicateWithHost lk.salyk.kg:30040 [07:48:11]ConnectInit lk.salyk.kg [07:48:11]written 0, free lines is 4095 [07:48:11]Connected sock=10 [07:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FC 96 07 01 67 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 8C 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A2 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BD 81 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8E 19 E4 AA 26 DA 5F 53 4F E0 38 35 0F 81 [07:48: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 78 36 47 00 0C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 97 01 00 F4 03 04 00 3D 28 76 66 B6 04 01 00 00 09 CC 7F 97 36 BD 03 68 [07:48:11]CommunicateWithHost err = 0 [07:48:11]CheckOFDResponse [07:48:11]1017 (14) - 77093643461234 [07:48:11]1041 (16) - 0000000000875093 [07:48:11]1040 (4) - 104296 [07:48:11]1012 (4) - 22.06.2024 01:26 [07:48:11]1206 (1) - 0 [07:48:11]OFD Sender: Remove packet 104296 [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00104296 [07:48:11]NVStorageDeleteData [07:48:12]Write to MH i2c: 01 00 00 36 22 58 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 36 22 00 00 00 00 00 DD 0C 48 [07:48:12]RasterBufferAndPrint [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]written 0, free lines is 3299 [07:48:12]MH_Cut [07:48:12]Write to MH i2c: D1 01 00 3D 22 01 31 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 01 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 01 00 3D 22 00 30 [07:48:12]Write to MH i2c: 01 00 00 3E 22 60 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]OFD Sender: No OFD packet to send [07:48:12]*** Cut start [07:48:12]*** Partial cut [07:48:12]*** CUTSNS_PIN = 1 [07:48:12]*** CUTSNS_PIN = 0 [07:48:13]*** Brake cut motor [07:48:13]Read from MH i2c: 01 [07:48:13]MH_I2C_Read... [07:48:13]*** Stop cut motor [07:48:13]*** Cut end [07:48:13]Read from MH i2c: 01 07 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 FF 0F 75 [07:48:13]process_action close_receipt done [07:48:13]requested_data is exist [07:48:13]produce_requested_data [07:48:13]requested_item fm.sn is exist - process it [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 11 00 00 [07:48:13]Write to MH i2c: E2 08 00 3F 22 80 11 00 00 00 00 00 00 DB [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 17 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 17 00 3F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [07: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 [07:48:13]wFMCommunicate OK [07:48:13]requested_item fd.num is exist - process it [07:48:13]SAM_PROTO_GetFieldsCounters [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 13 00 00 [07:48:13]Write to MH i2c: E2 08 00 40 22 80 13 00 00 00 00 00 00 DE [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 62 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 62 00 40 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C1 [07:48: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 97 01 00 0E 04 04 00 64 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 [07:48:13]wFMCommunicate OK [07:48:13]SAM_PROTO_GetFieldsCounters done [07:48:13]requested_item shift.num is exist - process it [07:48:13]requested_item shift.opened is exist - process it [07:48:13]req_shift_opened [07:48:13]FM_GetShiftState [07:48:13]SAM_PROTO_GetShiftState [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 13 01 00 [07:48:13]Write to MH i2c: E2 08 00 41 22 80 13 01 00 00 00 00 00 E0 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:13]Read from MH i2c: E2 0E 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 0E 00 41 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D2 [07:48:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:48:13]wFMCommunicate OK [07:48:13]SAM_PROTO_GetShiftState done [07:48:13]FM_GetShiftState done [07:48:13]req_shift_opened done [07:48:13]requested_item shift.open_date is exist - process it [07:48:13]req_shift_open_date [07:48:13]req_shift_open_date done [07:48:13]produce_requested_data done [07:48:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104296,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:48:13]process_action_free close_receipt [07:48:13]json_value_free [07:48:13]json_value_free done [07:48:13]process_json_proto returns [07:48:13]Send response to host [07:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104296,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:48:13]free response buf [07:48:13]execute_script done [07:48:13]execute_script returns [07:48:13]free content buf [07:48:13]Sock 9.Close socket [07:48:13]Sock 9.Thread stoped [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:45]accept exits with 7 [07:49:45]New connection [07:49:45]New thread 3067616612 created [07:49:45]Thread 3067473252 joined [07:49:45]Waiting for new connection... [07:49:45] Sock 7.Parse request [07:49:45]Sock 7.Check first char [07:49:45]Sock 7.First char is OK [07:49:45]request: POST /json_proto HTTP/1.0 [07:49:45]Method: POST [07:49:45]URL: /json_proto [07:49:45]Method is POST - this is cgi request [07:49:45]url: /json_proto [07:49:45]query_string will be loaded in cgi processing [07:49:45]execute_cgi json_proto POST (null) [07:49:45]execute_cgi path=json_proto method=POST [07:49:45]POST find Content-Length [07:49:45]Host: 172.17.38.133:8080 [07:49:45]Content-Length: 801 [07:49:45]Content-Type: application/json [07:49:45] [07:49:45]POST finish read [07:49:45]Found Content-Length = 801 [07:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673787", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:45]execute_script... [07:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673787", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:45]POST & json_proto [07:49:45]process_json_proto [07:49:45]json parsed OK: [07:49:45]protocol is kg_v1.0 [07:49:45]action value=close_receipt [07:49:45]process_action close_receipt [07:49:45]cmd_close_receipt [07:49:45]MH_GetDate [07:49:45]Write to MH i2c: F0 00 00 42 22 53 [07:49:45]Write i2c OK [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: F0 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: F0 09 00 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: F0 09 00 42 22 00 1D 82 76 66 BD 8F 7C 64 03 [07:49:45]GetLastDocTimeStamp 1719042493 [07:49:45]current date 1719042589 [07:49:45]FM_GetShiftState [07:49:45]SAM_PROTO_GetShiftState [07:49:45]wFMCommunicate request_size=4 [07:49:45]MH_SAM_APDU [07:49:45]CAPDU: 80 13 01 00 [07:49:45]Write to MH i2c: E2 08 00 43 22 80 13 01 00 00 00 00 00 E2 [07:49:45]Write i2c OK [07:49:45]MH_I2C_Read... [07:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:45]Read from MH i2c: E2 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: E2 0E 00 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: E2 0E 00 43 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D4 [07:49:45]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:49:45]wFMCommunicate OK [07:49:45]SAM_PROTO_GetShiftState done [07:49:45]FM_GetShiftState done [07:49:45]opened in 1719016176 [07:49:45]opened+sec_in_day 1719102576 [07:49:45]quantity*price = 80012 [07:49:45]sum+1 = 80013 [07:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 22.06.2024 07:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104297 ФПД: 147165779153671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104297&fm=147165779153671&tin=02508201610067®Number=0000000000092785&sum=80012 [07:49:47]StoreToDocumentArchive [07:49:47]shift 356 fd 104297 [07:49:47]save to /storage/0356/doc_00104297 [07:49:47]save last doc name /storage/0356/doc_00104297 to /storage/kkm_last_doc_name [07:49:47]save OK [07:49:47]Clear old archive folders... [07:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:47]tlvbuf is 0066A680 [07:49:47]SAM_PROTO_ClearQueue [07:49:47]wFMCommunicate request_size=4 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 09 00 00 [07:49:47]Write to MH i2c: E2 08 00 50 22 80 09 00 00 00 00 00 00 E4 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 50 22 00 90 00 E6 [07:49:47]RAPDU: 90 00 [07:49:47]wFMCommunicate OK [07:49:47]SAM_PROTO_ClearQueue done [07:49:47]KKMCreateOFDPacket [07:49:47]OFDProtocolAddRootSTLVToBuf [07:49:47]FM_MakeSignedData [07:49:47]FM_MakeSignedData [07:49:47]SAM_PROTO_SignData [07:49:47]wFMCommunicate request_size=4 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 0D 01 02 [07:49:47]Write to MH i2c: E2 08 00 51 22 80 0D 01 02 00 00 00 00 EC [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 51 22 00 90 00 E7 [07:49:47]RAPDU: 90 00 [07:49:47]wFMCommunicate OK [07:49:47]wFMCommunicate request_size=255 [07:49:47]MH_SAM_APDU [07:49: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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 [07:49:47]Write to MH i2c: E2 02 01 52 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 00 00 31 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 [07:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 52 22 00 90 00 E8 [07:49:47]RAPDU: 90 00 [07:49:47]wFMCommunicate OK [07:49:47]wFMCommunicate request_size=10 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 0D 02 02 05 D8 B3 FD 53 07 [07:49:47]Write to MH i2c: E2 0D 00 53 22 80 0D 02 02 05 00 D8 B3 FD 53 07 00 00 DB [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 03 00 53 22 00 90 00 E9 [07:49:47]RAPDU: 90 00 [07:49:47]wFMCommunicate OK [07:49:47]wFMCommunicate request_size=4 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 0D 03 02 [07:49:47]Write to MH i2c: E2 08 00 54 22 80 0D 03 02 00 00 00 00 F1 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 0B 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 0B 00 54 22 00 E6 7D CD 82 8B 18 FA DC 90 00 1D [07:49:47]RAPDU: E6 7D CD 82 8B 18 FA DC 90 00 [07:49:47]wFMCommunicate OK [07:49:47]SAM_PROTO_SignData done [07:49:47]FM_MakeSignedData done [07:49:47]CreateOFDProtocolMessage [07:49:47]wFMCommunicate request_size=4 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 11 00 00 [07:49:47]Write to MH i2c: E2 08 00 55 22 80 11 00 00 00 00 00 00 F1 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]OFD Sender: No OFD packet to send [07:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 17 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 17 00 55 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [07:49:47]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:47]wFMCommunicate OK [07:49:47]CreateOFDProtocolMessage done [07:49:47]OFDSenderStorePacket 104297 [07:49:47]StoreOFDPacket docnum=104297 [07:49: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 CA 24 07 01 64 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 D8 B3 FD 53 07 E6 7D CD 82 8B 18 FA DC [07:49:47]CheckFolder [07:49:47]dirname=/storage/ofd_packets [07:49:47]CheckFolder done [07:49:47]ProducePacketName [07:49:47]name=ofd_packets/00104297 [07:49:47]NVStorageSaveData ofd_packets/00104297 [07:49:47]File name is /storage/ofd_packets/00104297 [07:49:47]Write 301 bytes [07:49:47]NVStorageSaveData done [07:49:47]OFDSenderStorePacket done [07:49:47]KKMCreateOFDPacket done [07:49:47]NVStorageSaveData kkm_last_timestamp [07:49:47]File name is /storage/kkm_last_timestamp [07:49:47]Write 4 bytes [07:49:47]NVStorageSaveData done [07:49:47]ExternCall_PrintAddStr [07:49:47]wPrintStart [07:49:47]Write to MH i2c: 01 00 00 56 22 78 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: 01 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: 01 07 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: 01 07 00 56 22 00 00 00 00 00 FF 0F 8D [07:49:47]RasterBufferAndPrint [07:49:47]line Счет N : (1)673787 [07:49:47]line ИНН: 02508201610067 [07:49:47]line Контрольно-Кассовый Чек [07:49:47]line ПРОДАЖА [07:49:47]line ТРК (МРК, ГНК) : 42 [07:49:47]line Товар: 2710124130 [07:49:47]line Аи-92-К-5 [07:49:47]line 12.050 * 66.40 [07:49:47]line = 800.12 [07:49:47]line НДС 12% НСП 1% [07:49:47]line > о реализуемом товаре [07:49:47]line ИТОГО: 800.12 [07:49:47]line НСП 1% : 7.08 [07:49:47]line НДС 12% : 84.97 [07:49:47]line Наличными: 0.00 [07:49:47]line Безнал.: 800.12 [07:49:47]line Место: АЗС № 120 "Партнер Нефть" [07:49:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:49:47]line СНО: Общий режим [07:49:47]line Чек 30 22.06.2024 07:49 [07:49:47]line Смена: 356 ФФД: 1.0 [07:49:47]line ЗНМ: 0300000164 [07:49:47]line РНМ: 0000000000092785 [07:49:47]line Версия ККМ: 001 [07:49:47]line Платежная система: O! деньги [07:49:47]line ФМ: 0000000000875093 [07:49:47]line ФД: 104297 [07:49:47]line ФПД: 147165779153671 [07:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104297&fm=147165779153671&tin=02508201610067®Number=0000000000092785&sum=80012 [07:49:47]OFD Sender: Processing packet 104297 [packets to send 17, broken 16] [07:49:47]ProducePacketName [07:49:47]name=ofd_packets/00104297 [07:49:47]OFD Sender: To server: pG, [07:49:47]CommunicateWithHost lk.salyk.kg:30040 [07:49:47]ConnectInit lk.salyk.kg [07:49:47]written 0, free lines is 4095 [07:49:48]Connected sock=10 [07:49: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 CA 24 07 01 64 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 D8 B3 FD 53 07 E6 7D CD 82 8B 18 FA DC [07:49: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 B8 05 47 00 EF 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 69 97 01 00 F4 03 04 00 9D 28 76 66 B6 04 01 00 00 1C A0 6B C4 4E 4F AB D3 [07:49:48]CommunicateWithHost err = 0 [07:49:48]CheckOFDResponse [07:49:48]1017 (14) - 77093643461234 [07:49:48]1041 (16) - 0000000000875093 [07:49:48]1040 (4) - 104297 [07:49:48]1012 (4) - 22.06.2024 01:27 [07:49:48]1206 (1) - 0 [07:49:48]OFD Sender: Remove packet 104297 [07:49:48]ProducePacketName [07:49:48]name=ofd_packets/00104297 [07:49:48]NVStorageDeleteData [07:49:48]Write to MH i2c: 01 00 00 80 22 A2 [07:49:48]Write i2c OK [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: 01 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: 01 07 00 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: 01 07 00 80 22 00 00 00 00 00 DD 0C 92 [07:49:48]RasterBufferAndPrint [07:49:48]line [07:49:48]line [07:49:48]line [07:49:48]line [07:49:48]line [07:49:48]written 0, free lines is 3299 [07:49:48]MH_Cut [07:49:48]Write to MH i2c: D1 01 00 87 22 01 7B [07:49:48]Write i2c OK [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: D1 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: D1 01 00 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: D1 01 00 87 22 00 7A [07:49:48]Write to MH i2c: 01 00 00 88 22 AA [07:49:48]Write i2c OK [07:49:48]MH_I2C_Read... [07:49:48]OFD Sender: No OFD packet to send [07:49:49]*** Cut start [07:49:49]*** Partial cut [07:49:49]*** CUTSNS_PIN = 1 [07:49:49]*** CUTSNS_PIN = 0 [07:49:49]*** Brake cut motor [07:49:49]Read from MH i2c: 01 [07:49:49]MH_I2C_Read... [07:49:49]*** Stop cut motor [07:49:49]*** Cut end [07:49:49]Read from MH i2c: 01 07 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 88 22 00 00 00 00 00 FF 0F BF [07:49:49]process_action close_receipt done [07:49:49]requested_data is exist [07:49:49]produce_requested_data [07:49:49]requested_item fm.sn is exist - process it [07:49:49]wFMCommunicate request_size=4 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 11 00 00 [07:49:49]Write to MH i2c: E2 08 00 89 22 80 11 00 00 00 00 00 00 25 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 17 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 17 00 89 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [07: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 [07:49:49]wFMCommunicate OK [07:49:49]requested_item fd.num is exist - process it [07:49:49]SAM_PROTO_GetFieldsCounters [07:49:49]wFMCommunicate request_size=4 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 13 00 00 [07:49:49]Write to MH i2c: E2 08 00 8A 22 80 13 00 00 00 00 00 00 28 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 62 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 62 00 8A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0F [07:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [07:49:49]wFMCommunicate OK [07:49:49]SAM_PROTO_GetFieldsCounters done [07:49:49]requested_item shift.num is exist - process it [07:49:49]requested_item shift.opened is exist - process it [07:49:49]req_shift_opened [07:49:49]FM_GetShiftState [07:49:49]SAM_PROTO_GetShiftState [07:49:49]wFMCommunicate request_size=4 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 13 01 00 [07:49:49]Write to MH i2c: E2 08 00 8B 22 80 13 01 00 00 00 00 00 2A [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:50]Read from MH i2c: E2 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: E2 0E 00 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: E2 0E 00 8B 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 1C [07:49:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:49:50]wFMCommunicate OK [07:49:50]SAM_PROTO_GetShiftState done [07:49:50]FM_GetShiftState done [07:49:50]req_shift_opened done [07:49:50]requested_item shift.open_date is exist - process it [07:49:50]req_shift_open_date [07:49:50]req_shift_open_date done [07:49:50]produce_requested_data done [07:49:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104297,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:49:50]process_action_free close_receipt [07:49:50]json_value_free [07:49:50]json_value_free done [07:49:50]process_json_proto returns [07:49:50]Send response to host [07:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104297,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:49:50]free response buf [07:49:50]execute_script done [07:49:50]execute_script returns [07:49:50]free content buf [07:49:50]Sock 7.Close socket [07:49:50]Sock 7.Thread stoped [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:02]accept exits with 9 [07:53:02]New connection [07:53:02]New thread 3067473252 created [07:53:02]Thread 3067616612 joined [07:53:02]Waiting for new connection... [07:53:02] Sock 9.Parse request [07:53:02]Sock 9.Check first char [07:53:02]Sock 9.First char is OK [07:53:02]request: POST /json_proto HTTP/1.0 [07:53:02]Method: POST [07:53:02]URL: /json_proto [07:53:02]Method is POST - this is cgi request [07:53:02]url: /json_proto [07:53:02]query_string will be loaded in cgi processing [07:53:02]execute_cgi json_proto POST (null) [07:53:02]execute_cgi path=json_proto method=POST [07:53:02]POST find Content-Length [07:53:02]Host: 172.17.38.133:8080 [07:53:02]Content-Length: 682 [07:53:02]Content-Type: application/json [07:53:02] [07:53:02]POST finish read [07:53:02]Found Content-Length = 682 [07:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673788", "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:53:02]execute_script... [07:53: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)673788", "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:53:02]POST & json_proto [07:53:02]process_json_proto [07:53:02]json parsed OK: [07:53:02]protocol is kg_v1.0 [07:53:02]action value=close_receipt [07:53:02]process_action close_receipt [07:53:02]cmd_close_receipt [07:53:02]MH_GetDate [07:53:02]Write to MH i2c: F0 00 00 8C 22 9D [07:53:02]Write i2c OK [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: F0 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: F0 09 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: F0 09 00 8C 22 00 E2 82 76 66 BD 8F 7C 64 12 [07:53:02]GetLastDocTimeStamp 1719042589 [07:53:02]current date 1719042786 [07:53:02]FM_GetShiftState [07:53:02]SAM_PROTO_GetShiftState [07:53:02]wFMCommunicate request_size=4 [07:53:02]MH_SAM_APDU [07:53:02]CAPDU: 80 13 01 00 [07:53:02]Write to MH i2c: E2 08 00 8D 22 80 13 01 00 00 00 00 00 2C [07:53:02]Write i2c OK [07:53:02]MH_I2C_Read... [07:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:02]Read from MH i2c: E2 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 0E 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 0E 00 8D 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 1E [07:53:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:53:02]wFMCommunicate OK [07:53:02]SAM_PROTO_GetShiftState done [07:53:02]FM_GetShiftState done [07:53:02]opened in 1719016176 [07:53:02]opened+sec_in_day 1719102576 [07:53:02]quantity*price = 100064 [07:53:02]sum+1 = 100066 [07:53: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 СНО: Общий режим Чек 31 22.06.2024 07:53 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104298 ФПД: 45181463543669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T075306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104298&fm=45181463543669&tin=02508201610067®Number=0000000000092785&sum=100000 [07:53:04]StoreToDocumentArchive [07:53:04]shift 356 fd 104298 [07:53:04]save to /storage/0356/doc_00104298 [07:53:04]save last doc name /storage/0356/doc_00104298 to /storage/kkm_last_doc_name [07:53:04]save OK [07:53:04]Clear old archive folders... [07:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:04]tlvbuf is 00690C90 [07:53:04]SAM_PROTO_ClearQueue [07:53:04]wFMCommunicate request_size=4 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 09 00 00 [07:53:04]Write to MH i2c: E2 08 00 9A 22 80 09 00 00 00 00 00 00 2E [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:04]Read from MH i2c: E2 03 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 9A 22 00 90 00 30 [07:53:04]RAPDU: 90 00 [07:53:04]wFMCommunicate OK [07:53:04]SAM_PROTO_ClearQueue done [07:53:04]KKMCreateOFDPacket [07:53:04]OFDProtocolAddRootSTLVToBuf [07:53:04]FM_MakeSignedData [07:53:04]FM_MakeSignedData [07:53:04]SAM_PROTO_SignData [07:53:04]wFMCommunicate request_size=4 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 0D 01 02 [07:53:04]Write to MH i2c: E2 08 00 9B 22 80 0D 01 02 00 00 00 00 36 [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 9B 22 00 90 00 31 [07:53:04]RAPDU: 90 00 [07:53:04]wFMCommunicate OK [07:53:04]wFMCommunicate request_size=255 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 E2 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 29 [07:53:04]Write to MH i2c: E2 02 01 9C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 E2 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 29 00 00 2F [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 9C 22 00 90 00 32 [07:53:04]RAPDU: 90 00 [07:53:04]wFMCommunicate OK [07:53:04]wFMCommunicate request_size=10 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 0D 02 02 05 17 A1 15 BF 75 [07:53:04]Write to MH i2c: E2 0D 00 9D 22 80 0D 02 02 05 00 17 A1 15 BF 75 00 00 44 [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 03 00 9D 22 00 90 00 33 [07:53:04]RAPDU: 90 00 [07:53:04]wFMCommunicate OK [07:53:04]wFMCommunicate request_size=4 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 0D 03 02 [07:53:04]Write to MH i2c: E2 08 00 9E 22 80 0D 03 02 00 00 00 00 3B [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 0B 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 0B 00 9E 22 00 60 50 E5 AF 8C 88 73 35 90 00 3C [07:53:04]RAPDU: 60 50 E5 AF 8C 88 73 35 90 00 [07:53:04]wFMCommunicate OK [07:53:04]SAM_PROTO_SignData done [07:53:04]FM_MakeSignedData done [07:53:04]CreateOFDProtocolMessage [07:53:04]wFMCommunicate request_size=4 [07:53:04]MH_SAM_APDU [07:53:04]CAPDU: 80 11 00 00 [07:53:04]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:04]Read from MH i2c: E2 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 17 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [07: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 [07:53:04]wFMCommunicate OK [07:53:04]CreateOFDProtocolMessage done [07:53:04]OFDSenderStorePacket 104298 [07:53:04]StoreOFDPacket docnum=104298 [07:53: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 D6 19 07 01 89 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 E2 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 29 17 A1 15 BF 75 60 50 E5 AF 8C 88 73 35 [07:53:04]CheckFolder [07:53:04]dirname=/storage/ofd_packets [07:53:04]CheckFolder done [07:53:04]ProducePacketName [07:53:04]name=ofd_packets/00104298 [07:53:04]NVStorageSaveData ofd_packets/00104298 [07:53:04]File name is /storage/ofd_packets/00104298 [07:53:04]Write 301 bytes [07:53:04]NVStorageSaveData done [07:53:04]OFDSenderStorePacket done [07:53:04]KKMCreateOFDPacket done [07:53:04]NVStorageSaveData kkm_last_timestamp [07:53:04]File name is /storage/kkm_last_timestamp [07:53:04]Write 4 bytes [07:53:04]NVStorageSaveData done [07:53:04]ExternCall_PrintAddStr [07:53:04]wPrintStart [07:53:04]Write to MH i2c: 01 00 00 A0 22 C2 [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 07 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 07 00 A0 22 00 00 00 00 00 FF 0F D7 [07:53:04]RasterBufferAndPrint [07:53:04]line Счет N : (1)673788 [07:53:04]line ИНН: 02508201610067 [07:53:04]line Контрольно-Кассовый Чек [07:53:04]line ПРОДАЖА [07:53:04]line ТРК (МРК, ГНК) : 42 [07:53:04]line Товар: 2710124130 [07:53:04]line Аи-92-К-5 [07:53:04]line 15.070 * 66.40 [07:53:04]line = 1000.65 [07:53:04]line НДС 12% НСП 1% [07:53:04]line > о реализуемом товаре [07:53:04]line ОКРУГЛЕНИЕ: -0.65 [07:53:04]line ИТОГО: 1000.00 [07:53:04]line Внесено: 1000.00 [07:53:04]line СДАЧА: 0.00 [07:53:04]line НСП 1% : 8.85 [07:53:04]line НДС 12% : 106.26 [07:53:04]line Наличными: 1000.00 [07:53:04]line Безнал.: 0.00 [07:53:04]line Место: АЗС № 120 "Партнер Нефть" [07:53:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:53:04]line СНО: Общий режим [07:53:04]line Чек 31 22.06.2024 07:53 [07:53:04]line Смена: 356 ФФД: 1.0 [07:53:04]line ЗНМ: 0300000164 [07:53:04]line РНМ: 0000000000092785 [07:53:04]line Версия ККМ: 001 [07:53:04]line ФМ: 0000000000875093 [07:53:04]line ФД: 104298 [07:53:04]line ФПД: 45181463543669 [07:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T075306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104298&fm=45181463543669&tin=02508201610067®Number=0000000000092785&sum=100000 [07:53:04]OFD Sender: Processing packet 104298 [packets to send 17, broken 16] [07:53:04]ProducePacketName [07:53:04]name=ofd_packets/00104298 [07:53:04]OFD Sender: To server: pG, [07:53:04]CommunicateWithHost lk.salyk.kg:30040 [07:53:04]ConnectInit lk.salyk.kg [07:53:04]written 0, free lines is 4095 [07:53:05]Connected sock=11 [07:53: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 D6 19 07 01 89 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 E2 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 29 17 A1 15 BF 75 60 50 E5 AF 8C 88 73 35 [07:53: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 05 12 47 00 B3 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 6A 97 01 00 F4 03 04 00 62 29 76 66 B6 04 01 00 00 3F F6 3D 8F 3F A5 85 5B [07:53:05]CommunicateWithHost err = 0 [07:53:05]CheckOFDResponse [07:53:05]1017 (14) - 77093643461234 [07:53:05]1041 (16) - 0000000000875093 [07:53:05]1040 (4) - 104298 [07:53:05]1012 (4) - 22.06.2024 01:31 [07:53:05]1206 (1) - 0 [07:53:05]OFD Sender: Remove packet 104298 [07:53:05]ProducePacketName [07:53:05]name=ofd_packets/00104298 [07:53:05]NVStorageDeleteData [07:53:05]Write to MH i2c: 01 00 00 CB 22 ED [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: 01 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: 01 07 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: 01 07 00 CB 22 00 00 00 00 00 DD 0C DD [07:53:05]RasterBufferAndPrint [07:53:05]line [07:53:05]line [07:53:05]line [07:53:05]line [07:53:05]line [07:53:05]written 0, free lines is 3299 [07:53:05]MH_Cut [07:53:05]Write to MH i2c: D1 01 00 D2 22 01 C6 [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: D1 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: D1 01 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: D1 01 00 D2 22 00 C5 [07:53:05]Write to MH i2c: 01 00 00 D3 22 F5 [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]OFD Sender: No OFD packet to send [07:53:06]*** Cut start [07:53:06]*** Partial cut [07:53:06]*** CUTSNS_PIN = 1 [07:53:06]*** CUTSNS_PIN = 0 [07:53:06]*** Brake cut motor [07:53:06]Read from MH i2c: 01 [07:53:06]MH_I2C_Read... [07:53:06]*** Stop cut motor [07:53:06]*** Cut end [07:53:06]Read from MH i2c: 01 07 00 [07:53:06]MH_I2C_Read... [07:53:06]Read from MH i2c: 01 07 00 D3 22 00 00 00 00 00 FF 0F 0A [07:53:06]process_action close_receipt done [07:53:06]requested_data is exist [07:53:06]produce_requested_data [07:53:06]requested_item fm.sn is exist - process it [07:53:06]wFMCommunicate request_size=4 [07:53:06]MH_SAM_APDU [07:53:06]CAPDU: 80 11 00 00 [07:53:06]Write to MH i2c: E2 08 00 D4 22 80 11 00 00 00 00 00 00 70 [07:53:06]Write i2c OK [07:53:06]MH_I2C_Read... [07:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:06]Read from MH i2c: E2 [07:53:06]MH_I2C_Read... [07:53:06]Read from MH i2c: E2 17 00 [07:53:06]MH_I2C_Read... [07:53:06]Read from MH i2c: E2 17 00 D4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [07:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:53:06]wFMCommunicate OK [07:53:06]requested_item fd.num is exist - process it [07:53:06]SAM_PROTO_GetFieldsCounters [07:53:06]wFMCommunicate request_size=4 [07:53:06]MH_SAM_APDU [07:53:06]CAPDU: 80 13 00 00 [07:53:06]Write to MH i2c: E2 08 00 D5 22 80 13 00 00 00 00 00 00 73 [07:53:06]Write i2c OK [07:53:06]MH_I2C_Read... [07:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:06]Read from MH i2c: E2 [07:53:06]MH_I2C_Read... [07:53:06]Read from MH i2c: E2 62 00 [07:53:06]MH_I2C_Read... [07:53:06]Read from MH i2c: E2 62 00 D5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5E [07:53: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 6A 97 01 00 0E 04 04 00 64 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 [07:53:06]wFMCommunicate OK [07:53:06]SAM_PROTO_GetFieldsCounters done [07:53:06]requested_item shift.num is exist - process it [07:53:06]requested_item shift.opened is exist - process it [07:53:06]req_shift_opened [07:53:06]FM_GetShiftState [07:53:06]SAM_PROTO_GetShiftState [07:53:06]wFMCommunicate request_size=4 [07:53:06]MH_SAM_APDU [07:53:06]CAPDU: 80 13 01 00 [07:53:06]Write to MH i2c: E2 08 00 D6 22 80 13 01 00 00 00 00 00 75 [07:53:06]Write i2c OK [07:53:06]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0E 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0E 00 D6 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 67 [07:53:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:53:07]wFMCommunicate OK [07:53:07]SAM_PROTO_GetShiftState done [07:53:07]FM_GetShiftState done [07:53:07]req_shift_opened done [07:53:07]requested_item shift.open_date is exist - process it [07:53:07]req_shift_open_date [07:53:07]req_shift_open_date done [07:53:07]produce_requested_data done [07:53:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104298,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:53:07]process_action_free close_receipt [07:53:07]json_value_free [07:53:07]json_value_free done [07:53:07]process_json_proto returns [07:53:07]Send response to host [07:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104298,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:53:07]free response buf [07:53:07]execute_script done [07:53:07]execute_script returns [07:53:07]free content buf [07:53:07]Sock 9.Close socket [07:53:07]Sock 9.Thread stoped [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]accept exits with 7 [07:53:30]New connection [07:53:30]New thread 3067616612 created [07:53:30]Thread 3067473252 joined [07:53:30]Waiting for new connection... [07:53:30] Sock 7.Parse request [07:53:30]Sock 7.Check first char [07:53:30]Sock 7.First char is OK [07:53:30]request: POST /json_proto HTTP/1.0 [07:53:30]Method: POST [07:53:30]URL: /json_proto [07:53:30]Method is POST - this is cgi request [07:53:30]url: /json_proto [07:53:30]query_string will be loaded in cgi processing [07:53:30]execute_cgi json_proto POST (null) [07:53:30]execute_cgi path=json_proto method=POST [07:53:30]POST find Content-Length [07:53:30]Host: 172.17.38.133:8080 [07:53:30]Content-Length: 682 [07:53:30]Content-Type: application/json [07:53:30] [07:53:30]POST finish read [07:53:30]Found Content-Length = 682 [07:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673789", "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" ] } } [07:53:30]execute_script... [07:53: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)673789", "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" ] } } [07:53:30]POST & json_proto [07:53:30]process_json_proto [07:53:30]json parsed OK: [07:53:30]protocol is kg_v1.0 [07:53:30]action value=close_receipt [07:53:30]process_action close_receipt [07:53:30]cmd_close_receipt [07:53:30]MH_GetDate [07:53:30]Write to MH i2c: F0 00 00 D7 22 E8 [07:53:30]Write i2c OK [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: F0 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: F0 09 00 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: F0 09 00 D7 22 00 FE 82 76 66 BD 8F 7C 64 79 [07:53:30]GetLastDocTimeStamp 1719042786 [07:53:30]current date 1719042814 [07:53:30]FM_GetShiftState [07:53:30]SAM_PROTO_GetShiftState [07:53:30]wFMCommunicate request_size=4 [07:53:30]MH_SAM_APDU [07:53:30]CAPDU: 80 13 01 00 [07:53:30]Write to MH i2c: E2 08 00 D8 22 80 13 01 00 00 00 00 00 77 [07:53:30]Write i2c OK [07:53:30]MH_I2C_Read... [07:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:30]Read from MH i2c: E2 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: E2 0E 00 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: E2 0E 00 D8 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 69 [07:53:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:53:30]wFMCommunicate OK [07:53:30]SAM_PROTO_GetShiftState done [07:53:30]FM_GetShiftState done [07:53:30]opened in 1719016176 [07:53:30]opened+sec_in_day 1719102576 [07:53:30]quantity*price = 200063 [07:53:30]sum+1 = 200064 [07:53:30]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 СНО: Общий режим Чек 32 22.06.2024 07:53 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104299 ФПД: 177624455235978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T075334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104299&fm=177624455235978&tin=02508201610067®Number=0000000000092785&sum=200000 [07:53:31]StoreToDocumentArchive [07:53:31]shift 356 fd 104299 [07:53:31]save to /storage/0356/doc_00104299 [07:53:31]save last doc name /storage/0356/doc_00104299 to /storage/kkm_last_doc_name [07:53:31]save OK [07:53:31]Clear old archive folders... [07:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:31]tlvbuf is 006904E0 [07:53:31]SAM_PROTO_ClearQueue [07:53:31]wFMCommunicate request_size=4 [07:53:31]MH_SAM_APDU [07:53:31]CAPDU: 80 09 00 00 [07:53:31]Write to MH i2c: E2 08 00 E5 22 80 09 00 00 00 00 00 00 79 [07:53:31]Write i2c OK [07:53:31]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 E5 22 00 90 00 7B [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_ClearQueue done [07:53:32]KKMCreateOFDPacket [07:53:32]OFDProtocolAddRootSTLVToBuf [07:53:32]FM_MakeSignedData [07:53:32]FM_MakeSignedData [07:53:32]SAM_PROTO_SignData [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 01 02 [07:53:32]Write to MH i2c: E2 08 00 E6 22 80 0D 01 02 00 00 00 00 81 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 E6 22 00 90 00 7C [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=255 [07:53:32]MH_SAM_APDU [07:53: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 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 20 00 00 00 F4 03 04 00 FE 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 [07:53:32]Write to MH i2c: E2 02 01 E7 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 FE 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 00 00 B5 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 E7 22 00 90 00 7D [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=10 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 02 02 05 8C 6A 8E C9 8A [07:53:32]Write to MH i2c: E2 0D 00 E8 22 80 0D 02 02 05 00 8C 6A 8E C9 8A 00 00 65 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 E8 22 00 90 00 7E [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 03 02 [07:53:32]Write to MH i2c: E2 08 00 E9 22 80 0D 03 02 00 00 00 00 86 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0B 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0B 00 E9 22 00 AD DF D3 F7 7E 4A 0F EA 90 00 9E [07:53:32]RAPDU: AD DF D3 F7 7E 4A 0F EA 90 00 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_SignData done [07:53:32]FM_MakeSignedData done [07:53:32]CreateOFDProtocolMessage [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 11 00 00 [07:53:32]Write to MH i2c: E2 08 00 EA 22 80 11 00 00 00 00 00 00 86 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 17 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 17 00 EA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [07:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:53:32]wFMCommunicate OK [07:53:32]CreateOFDProtocolMessage done [07:53:32]OFDSenderStorePacket 104299 [07:53:32]StoreOFDPacket docnum=104299 [07:53: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 D6 F4 07 01 44 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 00 00 00 F4 03 04 00 FE 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 8C 6A 8E C9 8A AD DF D3 F7 7E 4A 0F EA [07:53:32]CheckFolder [07:53:32]dirname=/storage/ofd_packets [07:53:32]CheckFolder done [07:53:32]ProducePacketName [07:53:32]name=ofd_packets/00104299 [07:53:32]NVStorageSaveData ofd_packets/00104299 [07:53:32]File name is /storage/ofd_packets/00104299 [07:53:32]Write 301 bytes [07:53:32]NVStorageSaveData done [07:53:32]OFDSenderStorePacket done [07:53:32]KKMCreateOFDPacket done [07:53:32]NVStorageSaveData kkm_last_timestamp [07:53:32]File name is /storage/kkm_last_timestamp [07:53:32]Write 4 bytes [07:53:32]NVStorageSaveData done [07:53:32]ExternCall_PrintAddStr [07:53:32]wPrintStart [07:53:32]Write to MH i2c: 01 00 00 EB 22 0D [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 07 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 07 00 EB 22 00 00 00 00 00 FF 0F 22 [07:53:32]RasterBufferAndPrint [07:53:32]line Счет N : (1)673789 [07:53:32]line ИНН: 02508201610067 [07:53:32]line Контрольно-Кассовый Чек [07:53:32]line ПРОДАЖА [07:53:32]line ТРК (МРК, ГНК) : 32 [07:53:32]line Товар: 2710124130 [07:53:32]line Аи-92-К-5 [07:53:32]line 30.130 * 66.40 [07:53:32]line = 2000.63 [07:53:32]line НДС 12% НСП 1% [07:53:32]line > о реализуемом товаре [07:53:32]line ОКРУГЛЕНИЕ: -0.63 [07:53:32]line ИТОГО: 2000.00 [07:53:32]line Внесено: 2000.00 [07:53:32]line СДАЧА: 0.00 [07:53:32]line НСП 1% : 17.70 [07:53:32]line НДС 12% : 212.46 [07:53:32]line Наличными: 2000.00 [07:53:32]line Безнал.: 0.00 [07:53:32]line Место: АЗС № 120 "Партнер Нефть" [07:53:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:53:32]line СНО: Общий режим [07:53:32]line Чек 32 22.06.2024 07:53 [07:53:32]line Смена: 356 ФФД: 1.0 [07:53:32]line ЗНМ: 0300000164 [07:53:32]line РНМ: 0000000000092785 [07:53:32]line Версия ККМ: 001 [07:53:32]line ФМ: 0000000000875093 [07:53:32]line ФД: 104299 [07:53:32]line ФПД: 177624455235978 [07:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T075334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104299&fm=177624455235978&tin=02508201610067®Number=0000000000092785&sum=200000 [07:53:32]OFD Sender: Processing packet 104299 [packets to send 17, broken 16] [07:53:32]ProducePacketName [07:53:32]name=ofd_packets/00104299 [07:53:32]OFD Sender: To server: pG, [07:53:32]CommunicateWithHost lk.salyk.kg:30040 [07:53:32]ConnectInit lk.salyk.kg [07:53:32]written 0, free lines is 4095 [07:53:32]Connected sock=10 [07:53: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 0F 01 00 00 D6 F4 07 01 44 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 00 00 00 F4 03 04 00 FE 82 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 8C 6A 8E C9 8A AD DF D3 F7 7E 4A 0F EA [07:53: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 A6 47 47 00 79 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 6B 97 01 00 F4 03 04 00 7E 29 76 66 B6 04 01 00 00 46 D2 C1 28 DE CF 0F 8C [07:53:33]CommunicateWithHost err = 0 [07:53:33]CheckOFDResponse [07:53:33]1017 (14) - 77093643461234 [07:53:33]1041 (16) - 0000000000875093 [07:53:33]1040 (4) - 104299 [07:53:33]1012 (4) - 22.06.2024 01:31 [07:53:33]1206 (1) - 0 [07:53:33]OFD Sender: Remove packet 104299 [07:53:33]ProducePacketName [07:53:33]name=ofd_packets/00104299 [07:53:33]NVStorageDeleteData [07:53:33]Write to MH i2c: 01 00 00 16 23 39 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 07 00 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 E4 0C 30 [07:53:33]RasterBufferAndPrint [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]written 0, free lines is 3306 [07:53:33]MH_Cut [07:53:33]Write to MH i2c: D1 01 00 1D 23 01 12 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 01 00 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 01 00 1D 23 00 11 [07:53:33]Write to MH i2c: 01 00 00 1E 23 41 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]OFD Sender: No OFD packet to send [07:53:34]*** Cut start [07:53:34]*** Partial cut [07:53:34]*** CUTSNS_PIN = 1 [07:53:34]*** CUTSNS_PIN = 0 [07:53:34]*** Brake cut motor [07:53:34]Read from MH i2c: 01 [07:53:34]MH_I2C_Read... [07:53:34]*** Stop cut motor [07:53:34]*** Cut end [07:53:34]Read from MH i2c: 01 07 00 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [07:53:34]process_action close_receipt done [07:53:34]requested_data is exist [07:53:34]produce_requested_data [07:53:34]requested_item fm.sn is exist - process it [07:53:34]wFMCommunicate request_size=4 [07:53:34]MH_SAM_APDU [07:53:34]CAPDU: 80 11 00 00 [07:53:34]Write to MH i2c: E2 08 00 1F 23 80 11 00 00 00 00 00 00 BC [07:53:34]Write i2c OK [07:53:34]MH_I2C_Read... [07:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:34]Read from MH i2c: E2 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 17 00 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 17 00 1F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [07:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:53:34]wFMCommunicate OK [07:53:34]requested_item fd.num is exist - process it [07:53:34]SAM_PROTO_GetFieldsCounters [07:53:34]wFMCommunicate request_size=4 [07:53:34]MH_SAM_APDU [07:53:34]CAPDU: 80 13 00 00 [07:53:34]Write to MH i2c: E2 08 00 20 23 80 13 00 00 00 00 00 00 BF [07:53:34]Write i2c OK [07:53:34]MH_I2C_Read... [07:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:34]Read from MH i2c: E2 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 62 00 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 62 00 20 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 AE [07:53: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 6B 97 01 00 0E 04 04 00 64 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 [07:53:34]wFMCommunicate OK [07:53:34]SAM_PROTO_GetFieldsCounters done [07:53:34]requested_item shift.num is exist - process it [07:53:34]requested_item shift.opened is exist - process it [07:53:34]req_shift_opened [07:53:34]FM_GetShiftState [07:53:34]SAM_PROTO_GetShiftState [07:53:34]wFMCommunicate request_size=4 [07:53:34]MH_SAM_APDU [07:53:34]CAPDU: 80 13 01 00 [07:53:34]Write to MH i2c: E2 08 00 21 23 80 13 01 00 00 00 00 00 C1 [07:53:34]Write i2c OK [07:53:34]MH_I2C_Read... [07:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:34]Read from MH i2c: E2 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 0E 00 [07:53:34]MH_I2C_Read... [07:53:34]Read from MH i2c: E2 0E 00 21 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B3 [07:53:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [07:53:34]wFMCommunicate OK [07:53:34]SAM_PROTO_GetShiftState done [07:53:34]FM_GetShiftState done [07:53:34]req_shift_opened done [07:53:34]requested_item shift.open_date is exist - process it [07:53:34]req_shift_open_date [07:53:34]req_shift_open_date done [07:53:34]produce_requested_data done [07:53:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104299,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [07:53:34]process_action_free close_receipt [07:53:34]json_value_free [07:53:34]json_value_free done [07:53:34]process_json_proto returns [07:53:34]Send response to host [07:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104299,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [07:53:34]free response buf [07:53:34]execute_script done [07:53:34]execute_script returns [07:53:34]free content buf [07:53:34]Sock 7.Close socket [07:53:34]Sock 7.Thread stoped [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:24]accept exits with 9 [08:02:24]New connection [08:02:24]New thread 3067473252 created [08:02:24]Thread 3067616612 joined [08:02:24]Waiting for new connection... [08:02:24] Sock 9.Parse request [08:02:24]Sock 9.Check first char [08:02:24]Sock 9.First char is OK [08:02:24]request: POST /json_proto HTTP/1.0 [08:02:24]Method: POST [08:02:24]URL: /json_proto [08:02:24]Method is POST - this is cgi request [08:02:24]url: /json_proto [08:02:24]query_string will be loaded in cgi processing [08:02:24]execute_cgi json_proto POST (null) [08:02:24]execute_cgi path=json_proto method=POST [08:02:24]POST find Content-Length [08:02:24]Host: 172.17.38.133:8080 [08:02:24]Content-Length: 677 [08:02:24]Content-Type: application/json [08:02:24] [08:02:24]POST finish read [08:02:24]Found Content-Length = 677 [08:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673790", "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" ] } } [08:02:24]execute_script... [08:02:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673790", "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" ] } } [08:02:24]POST & json_proto [08:02:24]process_json_proto [08:02:24]json parsed OK: [08:02:24]protocol is kg_v1.0 [08:02:24]action value=close_receipt [08:02:24]process_action close_receipt [08:02:24]cmd_close_receipt [08:02:24]MH_GetDate [08:02:24]Write to MH i2c: F0 00 00 22 23 34 [08:02:24]Write i2c OK [08:02:24]MH_I2C_Read... [08:02:24]Read from MH i2c: F0 [08:02:24]MH_I2C_Read... [08:02:24]Read from MH i2c: F0 09 00 [08:02:24]MH_I2C_Read... [08:02:24]Read from MH i2c: F0 09 00 22 23 00 14 85 76 66 BD 8F 7C 64 DE [08:02:24]GetLastDocTimeStamp 1719042814 [08:02:24]current date 1719043348 [08:02:24]FM_GetShiftState [08:02:24]SAM_PROTO_GetShiftState [08:02:24]wFMCommunicate request_size=4 [08:02:24]MH_SAM_APDU [08:02:24]CAPDU: 80 13 01 00 [08:02:24]Write to MH i2c: E2 08 00 23 23 80 13 01 00 00 00 00 00 C3 [08:02:24]Write i2c OK [08:02:24]MH_I2C_Read... [08:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:24]Read from MH i2c: E2 [08:02:24]MH_I2C_Read... [08:02:24]Read from MH i2c: E2 0E 00 [08:02:24]MH_I2C_Read... [08:02:24]Read from MH i2c: E2 0E 00 23 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B5 [08:02:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:02:24]wFMCommunicate OK [08:02:24]SAM_PROTO_GetShiftState done [08:02:24]FM_GetShiftState done [08:02:24]opened in 1719016176 [08:02:24]opened+sec_in_day 1719102576 [08:02:24]quantity*price = 40039 [08:02:24]sum+1 = 40040 [08:02:24]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 СНО: Общий режим Чек 33 22.06.2024 08:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104300 ФПД: 15254600584065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080228&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104300&fm=15254600584065&tin=02508201610067®Number=0000000000092785&sum=40000 [08:02:25]StoreToDocumentArchive [08:02:25]shift 356 fd 104300 [08:02:25]save to /storage/0356/doc_00104300 [08:02:25]save last doc name /storage/0356/doc_00104300 to /storage/kkm_last_doc_name [08:02:25]save OK [08:02:25]Clear old archive folders... [08:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:25]tlvbuf is 00690CD0 [08:02:25]SAM_PROTO_ClearQueue [08:02:25]wFMCommunicate request_size=4 [08:02:25]MH_SAM_APDU [08:02:25]CAPDU: 80 09 00 00 [08:02:25]Write to MH i2c: E2 08 00 30 23 80 09 00 00 00 00 00 00 C5 [08:02:25]Write i2c OK [08:02:25]MH_I2C_Read... [08:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:25]Read from MH i2c: E2 [08:02:25]MH_I2C_Read... [08:02:25]Read from MH i2c: E2 03 00 [08:02:25]MH_I2C_Read... [08:02:25]Read from MH i2c: E2 03 00 30 23 00 90 00 C7 [08:02:25]RAPDU: 90 00 [08:02:25]wFMCommunicate OK [08:02:25]SAM_PROTO_ClearQueue done [08:02:25]KKMCreateOFDPacket [08:02:25]OFDProtocolAddRootSTLVToBuf [08:02:25]FM_MakeSignedData [08:02:25]FM_MakeSignedData [08:02:25]SAM_PROTO_SignData [08:02:25]wFMCommunicate request_size=4 [08:02:25]MH_SAM_APDU [08:02:25]CAPDU: 80 0D 01 02 [08:02:25]Write to MH i2c: E2 08 00 31 23 80 0D 01 02 00 00 00 00 CD [08:02:25]Write i2c OK [08:02:25]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 31 23 00 90 00 C8 [08:02:26]RAPDU: 90 00 [08:02:26]wFMCommunicate OK [08:02:26]wFMCommunicate request_size=255 [08:02:26]MH_SAM_APDU [08:02: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 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 21 00 00 00 F4 03 04 00 14 85 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D [08:02:26]Write to MH i2c: E2 02 01 32 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 21 00 00 00 F4 03 04 00 14 85 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D 00 00 61 [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 32 23 00 90 00 C9 [08:02:26]RAPDU: 90 00 [08:02:26]wFMCommunicate OK [08:02:26]wFMCommunicate request_size=10 [08:02:26]MH_SAM_APDU [08:02:26]CAPDU: 80 0D 02 02 05 DF BD 0C 8B 81 [08:02:26]Write to MH i2c: E2 0D 00 33 23 80 0D 02 02 05 00 DF BD 0C 8B 81 00 00 8E [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 03 00 33 23 00 90 00 CA [08:02:26]RAPDU: 90 00 [08:02:26]wFMCommunicate OK [08:02:26]wFMCommunicate request_size=4 [08:02:26]MH_SAM_APDU [08:02:26]CAPDU: 80 0D 03 02 [08:02:26]Write to MH i2c: E2 08 00 34 23 80 0D 03 02 00 00 00 00 D2 [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 0B 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 0B 00 34 23 00 B1 66 A0 BF 8E F8 9A 2D 90 00 96 [08:02:26]RAPDU: B1 66 A0 BF 8E F8 9A 2D 90 00 [08:02:26]wFMCommunicate OK [08:02:26]SAM_PROTO_SignData done [08:02:26]FM_MakeSignedData done [08:02:26]CreateOFDProtocolMessage [08:02:26]wFMCommunicate request_size=4 [08:02:26]MH_SAM_APDU [08:02:26]CAPDU: 80 11 00 00 [08:02:26]Write to MH i2c: E2 08 00 35 23 80 11 00 00 00 00 00 00 D2 [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 17 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 17 00 35 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [08:02:26]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:26]wFMCommunicate OK [08:02:26]CreateOFDProtocolMessage done [08:02:26]OFDSenderStorePacket 104300 [08:02:26]StoreOFDPacket docnum=104300 [08:02: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 3A 93 07 01 EF F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 14 85 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D DF BD 0C 8B 81 B1 66 A0 BF 8E F8 9A 2D [08:02:26]CheckFolder [08:02:26]dirname=/storage/ofd_packets [08:02:26]CheckFolder done [08:02:26]ProducePacketName [08:02:26]name=ofd_packets/00104300 [08:02:26]NVStorageSaveData ofd_packets/00104300 [08:02:26]File name is /storage/ofd_packets/00104300 [08:02:26]Write 301 bytes [08:02:26]NVStorageSaveData done [08:02:26]OFDSenderStorePacket done [08:02:26]KKMCreateOFDPacket done [08:02:26]NVStorageSaveData kkm_last_timestamp [08:02:26]File name is /storage/kkm_last_timestamp [08:02:26]Write 4 bytes [08:02:26]NVStorageSaveData done [08:02:26]ExternCall_PrintAddStr [08:02:26]wPrintStart [08:02:26]Write to MH i2c: 01 00 00 36 23 59 [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: 01 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: 01 07 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 FF 0F 6E [08:02:26]RasterBufferAndPrint [08:02:26]line Счет N : (1)673790 [08:02:26]line ИНН: 02508201610067 [08:02:26]line Контрольно-Кассовый Чек [08:02:26]line ПРОДАЖА [08:02:26]line ТРК (МРК, ГНК) : 32 [08:02:26]line Товар: 2710124130 [08:02:26]line Аи-92-К-5 [08:02:26]line 6.030 * 66.40 [08:02:26]line = 400.39 [08:02:26]line НДС 12% НСП 1% [08:02:26]line > о реализуемом товаре [08:02:26]line ОКРУГЛЕНИЕ: -0.39 [08:02:26]line ИТОГО: 400.00 [08:02:26]line Внесено: 400.00 [08:02:26]line СДАЧА: 0.00 [08:02:26]line НСП 1% : 3.54 [08:02:26]line НДС 12% : 42.52 [08:02:26]line Наличными: 400.00 [08:02:26]line Безнал.: 0.00 [08:02:26]line Место: АЗС № 120 "Партнер Нефть" [08:02:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:02:26]line СНО: Общий режим [08:02:26]line Чек 33 22.06.2024 08:02 [08:02:26]line Смена: 356 ФФД: 1.0 [08:02:26]line ЗНМ: 0300000164 [08:02:26]line РНМ: 0000000000092785 [08:02:26]line Версия ККМ: 001 [08:02:26]line ФМ: 0000000000875093 [08:02:26]line ФД: 104300 [08:02:26]line ФПД: 15254600584065 [08:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080228&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104300&fm=15254600584065&tin=02508201610067®Number=0000000000092785&sum=40000 [08:02:26]OFD Sender: Processing packet 104300 [packets to send 17, broken 16] [08:02:26]ProducePacketName [08:02:26]name=ofd_packets/00104300 [08:02:26]OFD Sender: To server: pG, [08:02:26]CommunicateWithHost lk.salyk.kg:30040 [08:02:26]ConnectInit lk.salyk.kg [08:02:26]written 0, free lines is 4095 [08:02:27]Connected sock=10 [08:02: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 3A 93 07 01 EF F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 14 85 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D DF BD 0C 8B 81 B1 66 A0 BF 8E F8 9A 2D [08:02: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 CF 9F 47 00 1C 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 6C 97 01 00 F4 03 04 00 94 2B 76 66 B6 04 01 00 00 D2 E5 3C BD 64 AB 94 0C [08:02:27]CommunicateWithHost err = 0 [08:02:27]CheckOFDResponse [08:02:27]1017 (14) - 77093643461234 [08:02:27]1041 (16) - 0000000000875093 [08:02:27]1040 (4) - 104300 [08:02:27]1012 (4) - 22.06.2024 01:40 [08:02:27]1206 (1) - 0 [08:02:27]OFD Sender: Remove packet 104300 [08:02:27]ProducePacketName [08:02:27]name=ofd_packets/00104300 [08:02:27]NVStorageDeleteData [08:02:27]Write to MH i2c: 01 00 00 61 23 84 [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 07 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 07 00 61 23 00 00 00 00 00 D7 0C 6E [08:02:27]RasterBufferAndPrint [08:02:27]line [08:02:27]line [08:02:27]line [08:02:27]line [08:02:27]line [08:02:27]written 0, free lines is 3294 [08:02:27]MH_Cut [08:02:27]Write to MH i2c: D1 01 00 68 23 01 5D [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: D1 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: D1 01 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: D1 01 00 68 23 00 5C [08:02:27]Write to MH i2c: 01 00 00 69 23 8C [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]OFD Sender: No OFD packet to send [08:02:28]*** Cut start [08:02:28]*** Partial cut [08:02:28]*** CUTSNS_PIN = 1 [08:02:28]*** CUTSNS_PIN = 0 [08:02:28]*** Brake cut motor [08:02:28]Read from MH i2c: 01 [08:02:28]MH_I2C_Read... [08:02:28]*** Stop cut motor [08:02:28]*** Cut end [08:02:28]Read from MH i2c: 01 07 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 FF 0F A1 [08:02:28]process_action close_receipt done [08:02:28]requested_data is exist [08:02:28]produce_requested_data [08:02:28]requested_item fm.sn is exist - process it [08:02:28]wFMCommunicate request_size=4 [08:02:28]MH_SAM_APDU [08:02:28]CAPDU: 80 11 00 00 [08:02:28]Write to MH i2c: E2 08 00 6A 23 80 11 00 00 00 00 00 00 07 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:28]Read from MH i2c: E2 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 17 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 17 00 6A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [08:02:28]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:28]wFMCommunicate OK [08:02:28]requested_item fd.num is exist - process it [08:02:28]SAM_PROTO_GetFieldsCounters [08:02:28]wFMCommunicate request_size=4 [08:02:28]MH_SAM_APDU [08:02:28]CAPDU: 80 13 00 00 [08:02:28]Write to MH i2c: E2 08 00 6B 23 80 13 00 00 00 00 00 00 0A [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:28]Read from MH i2c: E2 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 62 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 62 00 6B 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 FD [08:02:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:02:28]wFMCommunicate OK [08:02:28]SAM_PROTO_GetFieldsCounters done [08:02:28]requested_item shift.num is exist - process it [08:02:28]requested_item shift.opened is exist - process it [08:02:28]req_shift_opened [08:02:28]FM_GetShiftState [08:02:28]SAM_PROTO_GetShiftState [08:02:28]wFMCommunicate request_size=4 [08:02:28]MH_SAM_APDU [08:02:28]CAPDU: 80 13 01 00 [08:02:28]Write to MH i2c: E2 08 00 6C 23 80 13 01 00 00 00 00 00 0C [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:28]Read from MH i2c: E2 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 6C 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FE [08:02:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:02:28]wFMCommunicate OK [08:02:28]SAM_PROTO_GetShiftState done [08:02:28]FM_GetShiftState done [08:02:28]req_shift_opened done [08:02:28]requested_item shift.open_date is exist - process it [08:02:28]req_shift_open_date [08:02:28]req_shift_open_date done [08:02:28]produce_requested_data done [08:02:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104300,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:02:28]process_action_free close_receipt [08:02:28]json_value_free [08:02:28]json_value_free done [08:02:28]process_json_proto returns [08:02:28]Send response to host [08:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104300,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:02:28]free response buf [08:02:28]execute_script done [08:02:28]execute_script returns [08:02:28]free content buf [08:02:28]Sock 9.Close socket [08:02:28]Sock 9.Thread stoped [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]accept exits with 7 [08:14:03]New connection [08:14:03]New thread 3067616612 created [08:14:03]Thread 3067473252 joined [08:14:03]Waiting for new connection... [08:14:03] Sock 7.Parse request [08:14:03]Sock 7.Check first char [08:14:03]Sock 7.First char is OK [08:14:03]request: POST /json_proto HTTP/1.0 [08:14:03]Method: POST [08:14:03]URL: /json_proto [08:14:03]Method is POST - this is cgi request [08:14:03]url: /json_proto [08:14:03]query_string will be loaded in cgi processing [08:14:03]execute_cgi json_proto POST (null) [08:14:03]execute_cgi path=json_proto method=POST [08:14:03]POST find Content-Length [08:14:03]Host: 172.17.38.133:8080 [08:14:03]Content-Length: 819 [08:14:03]Content-Type: application/json [08:14:03] [08:14:03]POST finish read [08:14:03]Found Content-Length = 819 [08:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673791", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:03]execute_script... [08:14: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)673791", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:03]POST & json_proto [08:14:03]process_json_proto [08:14:03]json parsed OK: [08:14:03]protocol is kg_v1.0 [08:14:03]action value=close_receipt [08:14:03]process_action close_receipt [08:14:03]cmd_close_receipt [08:14:03]MH_GetDate [08:14:03]Write to MH i2c: F0 00 00 6D 23 7F [08:14:03]Write i2c OK [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: F0 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: F0 09 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: F0 09 00 6D 23 00 CF 87 76 66 BD 8F 7C 64 E6 [08:14:03]GetLastDocTimeStamp 1719043348 [08:14:03]current date 1719044047 [08:14:03]FM_GetShiftState [08:14:03]SAM_PROTO_GetShiftState [08:14:03]wFMCommunicate request_size=4 [08:14:03]MH_SAM_APDU [08:14:03]CAPDU: 80 13 01 00 [08:14:03]Write to MH i2c: E2 08 00 6E 23 80 13 01 00 00 00 00 00 0E [08:14:03]Write i2c OK [08:14:03]MH_I2C_Read... [08:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:03]Read from MH i2c: E2 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 0E 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 0E 00 6E 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 00 [08:14:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:14:03]wFMCommunicate OK [08:14:03]SAM_PROTO_GetShiftState done [08:14:03]FM_GetShiftState done [08:14:03]opened in 1719016176 [08:14:03]opened+sec_in_day 1719102576 [08:14:03]quantity*price = 300034 [08:14:03]sum+1 = 300035 [08:14:03]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 СНО: Общий режим Чек 34 22.06.2024 08:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104301 ФПД: 245191789853205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104301&fm=245191789853205&tin=02508201610067®Number=0000000000092785&sum=300034 [08:14:04]StoreToDocumentArchive [08:14:04]shift 356 fd 104301 [08:14:04]save to /storage/0356/doc_00104301 [08:14:04]save last doc name /storage/0356/doc_00104301 to /storage/kkm_last_doc_name [08:14:04]save OK [08:14:04]Clear old archive folders... [08:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:04]tlvbuf is B6F63850 [08:14:04]SAM_PROTO_ClearQueue [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 09 00 00 [08:14:04]Write to MH i2c: E2 08 00 7B 23 80 09 00 00 00 00 00 00 10 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 7B 23 00 90 00 12 [08:14:04]RAPDU: 90 00 [08:14:04]wFMCommunicate OK [08:14:04]SAM_PROTO_ClearQueue done [08:14:04]KKMCreateOFDPacket [08:14:04]OFDProtocolAddRootSTLVToBuf [08:14:04]FM_MakeSignedData [08:14:04]FM_MakeSignedData [08:14:04]SAM_PROTO_SignData [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 0D 01 02 [08:14:04]Write to MH i2c: E2 08 00 7C 23 80 0D 01 02 00 00 00 00 18 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 7C 23 00 90 00 13 [08:14:04]RAPDU: 90 00 [08:14:04]wFMCommunicate OK [08:14:04]wFMCommunicate request_size=255 [08:14:04]MH_SAM_APDU [08:14: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 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 22 00 00 00 F4 03 04 00 CF 87 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DF [08:14:04]Write to MH i2c: E2 02 01 7D 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 CF 87 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DF 00 00 22 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 7D 23 00 90 00 14 [08:14:04]RAPDU: 90 00 [08:14:04]wFMCommunicate OK [08:14:04]wFMCommunicate request_size=10 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 0D 02 02 05 00 29 89 3A 15 [08:14:04]Write to MH i2c: E2 0D 00 7E 23 80 0D 02 02 05 00 00 29 89 3A 15 00 00 26 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 03 00 7E 23 00 90 00 15 [08:14:04]RAPDU: 90 00 [08:14:04]wFMCommunicate OK [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 0D 03 02 [08:14:04]Write to MH i2c: E2 08 00 7F 23 80 0D 03 02 00 00 00 00 1D [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 0B 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 0B 00 7F 23 00 0C 46 3D 77 33 C0 C8 87 90 00 66 [08:14:04]RAPDU: 0C 46 3D 77 33 C0 C8 87 90 00 [08:14:04]wFMCommunicate OK [08:14:04]SAM_PROTO_SignData done [08:14:04]FM_MakeSignedData done [08:14:04]CreateOFDProtocolMessage [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 11 00 00 [08:14:04]Write to MH i2c: E2 08 00 80 23 80 11 00 00 00 00 00 00 1D [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 17 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 17 00 80 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [08:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:14:04]wFMCommunicate OK [08:14:04]CreateOFDProtocolMessage done [08:14:04]OFDSenderStorePacket 104301 [08:14:04]StoreOFDPacket docnum=104301 [08:14: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 6A B8 07 01 C4 32 5A 03 01 00 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 22 00 00 00 F4 03 04 00 CF 87 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DF 00 29 89 3A 15 0C 46 3D 77 33 C0 C8 87 [08:14:04]CheckFolder [08:14:04]dirname=/storage/ofd_packets [08:14:04]CheckFolder done [08:14:04]ProducePacketName [08:14:04]name=ofd_packets/00104301 [08:14:04]NVStorageSaveData ofd_packets/00104301 [08:14:04]File name is /storage/ofd_packets/00104301 [08:14:04]Write 301 bytes [08:14:04]NVStorageSaveData done [08:14:04]OFDSenderStorePacket done [08:14:04]KKMCreateOFDPacket done [08:14:04]NVStorageSaveData kkm_last_timestamp [08:14:04]File name is /storage/kkm_last_timestamp [08:14:04]Write 4 bytes [08:14:04]NVStorageSaveData done [08:14:04]ExternCall_PrintAddStr [08:14:04]wPrintStart [08:14:04]Write to MH i2c: 01 00 00 81 23 A4 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: 01 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: 01 07 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: 01 07 00 81 23 00 00 00 00 00 FF 0F B9 [08:14:04]RasterBufferAndPrint [08:14:04]line Счет N : (1)673791 [08:14:04]line ИНН: 02508201610067 [08:14:04]line Контрольно-Кассовый Чек [08:14:04]line ПРОДАЖА [08:14:04]line ТРК (МРК, ГНК) : 31 [08:14:04]line Товар: 2710124500 [08:14:04]line Аи-95-К-5 [08:14:04]line 40.600 * 73.90 [08:14:04]line = 3000.34 [08:14:04]line НДС 12% НСП 1% [08:14:04]line > о реализуемом товаре [08:14:04]line ИТОГО: 3000.34 [08:14:04]line НСП 1% : 26.55 [08:14:04]line НДС 12% : 318.62 [08:14:04]line Наличными: 0.00 [08:14:04]line Безнал.: 3000.34 [08:14:04]line Место: АЗС № 120 "Партнер Нефть" [08:14:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:14:04]line СНО: Общий режим [08:14:04]line Чек 34 22.06.2024 08:14 [08:14:04]line Смена: 356 ФФД: 1.0 [08:14:04]line ЗНМ: 0300000164 [08:14:04]line РНМ: 0000000000092785 [08:14:04]line Версия ККМ: 001 [08:14:04]line Платежная система: Бакай Банк [08:14:04]line ФМ: 0000000000875093 [08:14:04]line ФД: 104301 [08:14:04]line ФПД: 245191789853205 [08:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104301&fm=245191789853205&tin=02508201610067®Number=0000000000092785&sum=300034 [08:14:05]OFD Sender: Processing packet 104301 [packets to send 17, broken 16] [08:14:05]ProducePacketName [08:14:05]name=ofd_packets/00104301 [08:14:05]OFD Sender: To server: pG, [08:14:05]CommunicateWithHost lk.salyk.kg:30040 [08:14:05]ConnectInit lk.salyk.kg [08:14:05]written 0, free lines is 4095 [08:14:05]Connected sock=10 [08:14: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 6A B8 07 01 C4 32 5A 03 01 00 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 22 00 00 00 F4 03 04 00 CF 87 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DF 00 29 89 3A 15 0C 46 3D 77 33 C0 C8 87 [08:14: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 0E CD 47 00 72 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 6D 97 01 00 F4 03 04 00 4E 2E 76 66 B6 04 01 00 00 20 50 E6 64 B3 BD 18 98 [08:14:05]CommunicateWithHost err = 0 [08:14:05]CheckOFDResponse [08:14:05]1017 (14) - 77093643461234 [08:14:05]1041 (16) - 0000000000875093 [08:14:05]1040 (4) - 104301 [08:14:05]1012 (4) - 22.06.2024 01:52 [08:14:05]1206 (1) - 0 [08:14:05]OFD Sender: Remove packet 104301 [08:14:05]ProducePacketName [08:14:05]name=ofd_packets/00104301 [08:14:05]NVStorageDeleteData [08:14:05]Write to MH i2c: 01 00 00 AB 23 CE [08:14:05]Write i2c OK [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: 01 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: 01 07 00 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: 01 07 00 AB 23 00 00 00 00 00 E3 0C C4 [08:14:05]RasterBufferAndPrint [08:14:05]line [08:14:05]line [08:14:05]line [08:14:05]line [08:14:05]line [08:14:05]written 0, free lines is 3306 [08:14:05]MH_Cut [08:14:05]Write to MH i2c: D1 01 00 B2 23 01 A7 [08:14:05]Write i2c OK [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: D1 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: D1 01 00 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: D1 01 00 B2 23 00 A6 [08:14:05]Write to MH i2c: 01 00 00 B3 23 D6 [08:14:05]Write i2c OK [08:14:05]MH_I2C_Read... [08:14:06]OFD Sender: No OFD packet to send [08:14:06]*** Cut start [08:14:06]*** Partial cut [08:14:06]*** CUTSNS_PIN = 1 [08:14:06]*** CUTSNS_PIN = 0 [08:14:06]*** Brake cut motor [08:14:06]Read from MH i2c: 01 [08:14:06]MH_I2C_Read... [08:14:06]*** Stop cut motor [08:14:06]*** Cut end [08:14:06]Read from MH i2c: 01 07 00 [08:14:06]MH_I2C_Read... [08:14:07]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 FF 0F EB [08:14:07]process_action close_receipt done [08:14:07]requested_data is exist [08:14:07]produce_requested_data [08:14:07]requested_item fm.sn is exist - process it [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 11 00 00 [08:14:07]Write to MH i2c: E2 08 00 B4 23 80 11 00 00 00 00 00 00 51 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 17 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 17 00 B4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [08: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 [08:14:07]wFMCommunicate OK [08:14:07]requested_item fd.num is exist - process it [08:14:07]SAM_PROTO_GetFieldsCounters [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 13 00 00 [08:14:07]Write to MH i2c: E2 08 00 B5 23 80 13 00 00 00 00 00 00 54 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 62 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 62 00 B5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 4B [08:14: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 6D 97 01 00 0E 04 04 00 64 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:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_GetFieldsCounters done [08:14:07]requested_item shift.num is exist - process it [08:14:07]requested_item shift.opened is exist - process it [08:14:07]req_shift_opened [08:14:07]FM_GetShiftState [08:14:07]SAM_PROTO_GetShiftState [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 13 01 00 [08:14:07]Write to MH i2c: E2 08 00 B6 23 80 13 01 00 00 00 00 00 56 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0E 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0E 00 B6 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 48 [08:14:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_GetShiftState done [08:14:07]FM_GetShiftState done [08:14:07]req_shift_opened done [08:14:07]requested_item shift.open_date is exist - process it [08:14:07]req_shift_open_date [08:14:07]req_shift_open_date done [08:14:07]produce_requested_data done [08:14:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104301,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:14:07]process_action_free close_receipt [08:14:07]json_value_free [08:14:07]json_value_free done [08:14:07]process_json_proto returns [08:14:07]Send response to host [08:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104301,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:14:07]free response buf [08:14:07]execute_script done [08:14:07]execute_script returns [08:14:07]free content buf [08:14:07]Sock 7.Close socket [08:14:07]Sock 7.Thread stoped [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:15]accept exits with 9 [08:17:15]New connection [08:17:15]New thread 3067473252 created [08:17:15]Thread 3067616612 joined [08:17:15]Waiting for new connection... [08:17:15] Sock 9.Parse request [08:17:15]Sock 9.Check first char [08:17:15]Sock 9.First char is OK [08:17:15]request: POST /json_proto HTTP/1.0 [08:17:15]Method: POST [08:17:15]URL: /json_proto [08:17:15]Method is POST - this is cgi request [08:17:15]url: /json_proto [08:17:15]query_string will be loaded in cgi processing [08:17:15]execute_cgi json_proto POST (null) [08:17:15]execute_cgi path=json_proto method=POST [08:17:15]POST find Content-Length [08:17:15]Host: 172.17.38.133:8080 [08:17:15]Content-Length: 682 [08:17:15]Content-Type: application/json [08:17:15] [08:17:15]POST finish read [08:17:15]Found Content-Length = 682 [08:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673792", "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" ] } } [08:17:15]execute_script... [08:17: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)673792", "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" ] } } [08:17:15]POST & json_proto [08:17:15]process_json_proto [08:17:15]json parsed OK: [08:17:15]protocol is kg_v1.0 [08:17:15]action value=close_receipt [08:17:15]process_action close_receipt [08:17:15]cmd_close_receipt [08:17:15]MH_GetDate [08:17:15]Write to MH i2c: F0 00 00 B7 23 C9 [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 09 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 09 00 B7 23 00 8F 88 76 66 BD 8F 7C 64 F1 [08:17:15]GetLastDocTimeStamp 1719044047 [08:17:15]current date 1719044239 [08:17:15]FM_GetShiftState [08:17:15]SAM_PROTO_GetShiftState [08:17:15]wFMCommunicate request_size=4 [08:17:15]MH_SAM_APDU [08:17:15]CAPDU: 80 13 01 00 [08:17:15]Write to MH i2c: E2 08 00 B8 23 80 13 01 00 00 00 00 00 58 [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:15]Read from MH i2c: E2 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 B8 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4A [08:17:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:17:15]wFMCommunicate OK [08:17:15]SAM_PROTO_GetShiftState done [08:17:15]FM_GetShiftState done [08:17:15]opened in 1719016176 [08:17:15]opened+sec_in_day 1719102576 [08:17:15]quantity*price = 100064 [08:17:15]sum+1 = 100066 [08:17: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 СНО: Общий режим Чек 35 22.06.2024 08:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104302 ФПД: 1020241225317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104302&fm=1020241225317&tin=02508201610067®Number=0000000000092785&sum=100000 [08:17:17]StoreToDocumentArchive [08:17:17]shift 356 fd 104302 [08:17:17]save to /storage/0356/doc_00104302 [08:17:17]save last doc name /storage/0356/doc_00104302 to /storage/kkm_last_doc_name [08:17:17]save OK [08:17:17]Clear old archive folders... [08:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:17]tlvbuf is B6E4A5C0 [08:17:17]SAM_PROTO_ClearQueue [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 09 00 00 [08:17:17]Write to MH i2c: E2 08 00 C5 23 80 09 00 00 00 00 00 00 5A [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 C5 23 00 90 00 5C [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]SAM_PROTO_ClearQueue done [08:17:17]KKMCreateOFDPacket [08:17:17]OFDProtocolAddRootSTLVToBuf [08:17:17]FM_MakeSignedData [08:17:17]FM_MakeSignedData [08:17:17]SAM_PROTO_SignData [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 01 02 [08:17:17]Write to MH i2c: E2 08 00 C6 23 80 0D 01 02 00 00 00 00 62 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 C6 23 00 90 00 5D [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=255 [08:17:17]MH_SAM_APDU [08:17: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 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 8F 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 [08:17:17]Write to MH i2c: E2 02 01 C7 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8F 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 00 ED [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 C7 23 00 90 00 5E [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=10 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 02 02 05 ED 8B 1D A6 65 [08:17:17]Write to MH i2c: E2 0D 00 C8 23 80 0D 02 02 05 00 ED 8B 1D A6 65 00 00 0F [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 C8 23 00 90 00 5F [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 03 02 [08:17:17]Write to MH i2c: E2 08 00 C9 23 80 0D 03 02 00 00 00 00 67 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 0B 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 0B 00 C9 23 00 0A 72 44 F4 68 CA 1E 84 90 00 F0 [08:17:17]RAPDU: 0A 72 44 F4 68 CA 1E 84 90 00 [08:17:17]wFMCommunicate OK [08:17:17]SAM_PROTO_SignData done [08:17:17]FM_MakeSignedData done [08:17:17]CreateOFDProtocolMessage [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 11 00 00 [08:17:17]Write to MH i2c: E2 08 00 CA 23 80 11 00 00 00 00 00 00 67 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 17 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 17 00 CA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [08:17: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:17:17]wFMCommunicate OK [08:17:17]CreateOFDProtocolMessage done [08:17:17]OFDSenderStorePacket 104302 [08:17:17]StoreOFDPacket docnum=104302 [08:17: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 DE 88 07 01 46 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8F 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 ED 8B 1D A6 65 0A 72 44 F4 68 CA 1E 84 [08:17:17]CheckFolder [08:17:17]dirname=/storage/ofd_packets [08:17:17]CheckFolder done [08:17:17]ProducePacketName [08:17:17]name=ofd_packets/00104302 [08:17:17]NVStorageSaveData ofd_packets/00104302 [08:17:17]File name is /storage/ofd_packets/00104302 [08:17:17]Write 301 bytes [08:17:17]NVStorageSaveData done [08:17:17]OFDSenderStorePacket done [08:17:17]KKMCreateOFDPacket done [08:17:17]NVStorageSaveData kkm_last_timestamp [08:17:17]File name is /storage/kkm_last_timestamp [08:17:17]Write 4 bytes [08:17:17]NVStorageSaveData done [08:17:17]ExternCall_PrintAddStr [08:17:17]wPrintStart [08:17:17]Write to MH i2c: 01 00 00 CB 23 EE [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 07 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 FF 0F 03 [08:17:17]RasterBufferAndPrint [08:17:17]line Счет N : (1)673792 [08:17:17]line ИНН: 02508201610067 [08:17:17]line Контрольно-Кассовый Чек [08:17:17]line ПРОДАЖА [08:17:17]line ТРК (МРК, ГНК) : 42 [08:17:17]line Товар: 2710124130 [08:17:17]line Аи-92-К-5 [08:17:17]line 15.070 * 66.40 [08:17:17]line = 1000.65 [08:17:17]line НДС 12% НСП 1% [08:17:17]line > о реализуемом товаре [08:17:17]line ОКРУГЛЕНИЕ: -0.65 [08:17:17]line ИТОГО: 1000.00 [08:17:17]line Внесено: 1000.00 [08:17:17]line СДАЧА: 0.00 [08:17:17]line НСП 1% : 8.85 [08:17:17]line НДС 12% : 106.26 [08:17:17]line Наличными: 1000.00 [08:17:17]line Безнал.: 0.00 [08:17:17]line Место: АЗС № 120 "Партнер Нефть" [08:17:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:17:17]line СНО: Общий режим [08:17:17]line Чек 35 22.06.2024 08:17 [08:17:17]line Смена: 356 ФФД: 1.0 [08:17:17]line ЗНМ: 0300000164 [08:17:17]line РНМ: 0000000000092785 [08:17:17]line Версия ККМ: 001 [08:17:17]line ФМ: 0000000000875093 [08:17:17]line ФД: 104302 [08:17:17]line ФПД: 1020241225317 [08:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104302&fm=1020241225317&tin=02508201610067®Number=0000000000092785&sum=100000 [08:17:17]OFD Sender: Processing packet 104302 [packets to send 17, broken 16] [08:17:17]ProducePacketName [08:17:17]name=ofd_packets/00104302 [08:17:17]OFD Sender: To server: pG, [08:17:17]CommunicateWithHost lk.salyk.kg:30040 [08:17:17]ConnectInit lk.salyk.kg [08:17:17]written 0, free lines is 4095 [08:17:18]Connected sock=11 [08:17: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 DE 88 07 01 46 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8F 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 ED 8B 1D A6 65 0A 72 44 F4 68 CA 1E 84 [08:17: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 49 79 47 00 08 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 97 01 00 F4 03 04 00 0F 2F 76 66 B6 04 01 00 00 8D 08 97 32 37 9C DA EE [08:17:18]CommunicateWithHost err = 0 [08:17:18]CheckOFDResponse [08:17:18]1017 (14) - 77093643461234 [08:17:18]1041 (16) - 0000000000875093 [08:17:18]1040 (4) - 104302 [08:17:18]1012 (4) - 22.06.2024 01:55 [08:17:18]1206 (1) - 0 [08:17:18]OFD Sender: Remove packet 104302 [08:17:18]ProducePacketName [08:17:18]name=ofd_packets/00104302 [08:17:18]NVStorageDeleteData [08:17:18]Write to MH i2c: 01 00 00 F6 23 19 [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 07 00 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 07 00 F6 23 00 00 00 00 00 D8 0C 04 [08:17:18]RasterBufferAndPrint [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]written 0, free lines is 3297 [08:17:18]MH_Cut [08:17:18]Write to MH i2c: D1 01 00 FD 23 01 F2 [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 01 00 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 01 00 FD 23 00 F1 [08:17:18]Write to MH i2c: 01 00 00 FE 23 21 [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]OFD Sender: No OFD packet to send [08:17:19]*** Cut start [08:17:19]*** Partial cut [08:17:19]*** CUTSNS_PIN = 1 [08:17:19]*** CUTSNS_PIN = 0 [08:17:19]*** Brake cut motor [08:17:19]Read from MH i2c: 01 [08:17:19]MH_I2C_Read... [08:17:19]*** Stop cut motor [08:17:19]*** Cut end [08:17:19]Read from MH i2c: 01 07 00 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: 01 07 00 FE 23 00 00 00 00 00 FF 0F 36 [08:17:19]process_action close_receipt done [08:17:19]requested_data is exist [08:17:19]produce_requested_data [08:17:19]requested_item fm.sn is exist - process it [08:17:19]wFMCommunicate request_size=4 [08:17:19]MH_SAM_APDU [08:17:19]CAPDU: 80 11 00 00 [08:17:19]Write to MH i2c: E2 08 00 FF 23 80 11 00 00 00 00 00 00 9C [08:17:19]Write i2c OK [08:17:19]MH_I2C_Read... [08:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:19]Read from MH i2c: E2 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 17 00 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 17 00 FF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [08:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:17:19]wFMCommunicate OK [08:17:19]requested_item fd.num is exist - process it [08:17:19]SAM_PROTO_GetFieldsCounters [08:17:19]wFMCommunicate request_size=4 [08:17:19]MH_SAM_APDU [08:17:19]CAPDU: 80 13 00 00 [08:17:19]Write to MH i2c: E2 08 00 00 24 80 13 00 00 00 00 00 00 A0 [08:17:19]Write i2c OK [08:17:19]MH_I2C_Read... [08:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:19]Read from MH i2c: E2 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 62 00 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 62 00 00 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 9B [08:17: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 6E 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:19]wFMCommunicate OK [08:17:19]SAM_PROTO_GetFieldsCounters done [08:17:19]requested_item shift.num is exist - process it [08:17:19]requested_item shift.opened is exist - process it [08:17:19]req_shift_opened [08:17:19]FM_GetShiftState [08:17:19]SAM_PROTO_GetShiftState [08:17:19]wFMCommunicate request_size=4 [08:17:19]MH_SAM_APDU [08:17:19]CAPDU: 80 13 01 00 [08:17:19]Write to MH i2c: E2 08 00 01 24 80 13 01 00 00 00 00 00 A2 [08:17:19]Write i2c OK [08:17:19]MH_I2C_Read... [08:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:20]Read from MH i2c: E2 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 01 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 94 [08:17:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:17:20]wFMCommunicate OK [08:17:20]SAM_PROTO_GetShiftState done [08:17:20]FM_GetShiftState done [08:17:20]req_shift_opened done [08:17:20]requested_item shift.open_date is exist - process it [08:17:20]req_shift_open_date [08:17:20]req_shift_open_date done [08:17:20]produce_requested_data done [08:17:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104302,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:17:20]process_action_free close_receipt [08:17:20]json_value_free [08:17:20]json_value_free done [08:17:20]process_json_proto returns [08:17:20]Send response to host [08:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104302,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:17:20]free response buf [08:17:20]execute_script done [08:17:20]execute_script returns [08:17:20]free content buf [08:17:20]Sock 9.Close socket [08:17:20]Sock 9.Thread stoped [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:45]accept exits with 7 [08:17:45]New connection [08:17:45]New thread 3067616612 created [08:17:45]Thread 3067473252 joined [08:17:45]Waiting for new connection... [08:17:45] Sock 7.Parse request [08:17:45]Sock 7.Check first char [08:17:45]Sock 7.First char is OK [08:17:45]request: POST /json_proto HTTP/1.0 [08:17:45]Method: POST [08:17:45]URL: /json_proto [08:17:45]Method is POST - this is cgi request [08:17:45]url: /json_proto [08:17:45]query_string will be loaded in cgi processing [08:17:45]execute_cgi json_proto POST (null) [08:17:45]execute_cgi path=json_proto method=POST [08:17:45]POST find Content-Length [08:17:45]Host: 172.17.38.133:8080 [08:17:45]Content-Length: 677 [08:17:45]Content-Type: application/json [08:17:45] [08:17:45]POST finish read [08:17:45]Found Content-Length = 677 [08:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673793", "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:17:45]execute_script... [08:17: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)673793", "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:17:45]POST & json_proto [08:17:45]process_json_proto [08:17:45]json parsed OK: [08:17:45]protocol is kg_v1.0 [08:17:45]action value=close_receipt [08:17:45]process_action close_receipt [08:17:45]cmd_close_receipt [08:17:45]MH_GetDate [08:17:45]Write to MH i2c: F0 00 00 02 24 15 [08:17:45]Write i2c OK [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: F0 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: F0 09 00 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: F0 09 00 02 24 00 AD 88 76 66 BD 8F 7C 64 5B [08:17:45]GetLastDocTimeStamp 1719044239 [08:17:45]current date 1719044269 [08:17:45]FM_GetShiftState [08:17:45]SAM_PROTO_GetShiftState [08:17:45]wFMCommunicate request_size=4 [08:17:45]MH_SAM_APDU [08:17:45]CAPDU: 80 13 01 00 [08:17:45]Write to MH i2c: E2 08 00 03 24 80 13 01 00 00 00 00 00 A4 [08:17:45]Write i2c OK [08:17:45]MH_I2C_Read... [08:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:45]Read from MH i2c: E2 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: E2 0E 00 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: E2 0E 00 03 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 96 [08:17:45]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:17:45]wFMCommunicate OK [08:17:45]SAM_PROTO_GetShiftState done [08:17:45]FM_GetShiftState done [08:17:45]opened in 1719016176 [08:17:45]opened+sec_in_day 1719102576 [08:17:45]quantity*price = 50065 [08:17:45]sum+1 = 50067 [08:17:45]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 СНО: Общий режим Чек 36 22.06.2024 08:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104303 ФПД: 255927677248501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081749&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104303&fm=255927677248501&tin=02508201610067®Number=0000000000092785&sum=50000 [08:17:46]StoreToDocumentArchive [08:17:46]shift 356 fd 104303 [08:17:46]save to /storage/0356/doc_00104303 [08:17:46]save last doc name /storage/0356/doc_00104303 to /storage/kkm_last_doc_name [08:17:46]save OK [08:17:46]Clear old archive folders... [08:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:46]tlvbuf is 006BAEC0 [08:17:46]SAM_PROTO_ClearQueue [08:17:46]wFMCommunicate request_size=4 [08:17:46]MH_SAM_APDU [08:17:46]CAPDU: 80 09 00 00 [08:17:46]Write to MH i2c: E2 08 00 10 24 80 09 00 00 00 00 00 00 A6 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:46]Read from MH i2c: E2 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 03 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [08:17:46]RAPDU: 90 00 [08:17:46]wFMCommunicate OK [08:17:46]SAM_PROTO_ClearQueue done [08:17:46]KKMCreateOFDPacket [08:17:46]OFDProtocolAddRootSTLVToBuf [08:17:46]FM_MakeSignedData [08:17:46]FM_MakeSignedData [08:17:46]SAM_PROTO_SignData [08:17:46]wFMCommunicate request_size=4 [08:17:46]MH_SAM_APDU [08:17:46]CAPDU: 80 0D 01 02 [08:17:46]Write to MH i2c: E2 08 00 11 24 80 0D 01 02 00 00 00 00 AE [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:46]Read from MH i2c: E2 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 03 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 03 00 11 24 00 90 00 A9 [08:17:46]RAPDU: 90 00 [08:17:46]wFMCommunicate OK [08:17:46]wFMCommunicate request_size=255 [08:17:46]MH_SAM_APDU [08:17:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 AD 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 [08:17:46]Write to MH i2c: E2 02 01 12 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 AD 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 00 00 F1 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:47]Read from MH i2c: E2 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 12 24 00 90 00 AA [08:17:47]RAPDU: 90 00 [08:17:47]wFMCommunicate OK [08:17:47]wFMCommunicate request_size=10 [08:17:47]MH_SAM_APDU [08:17:47]CAPDU: 80 0D 02 02 05 C3 CE 4A 63 F5 [08:17:47]Write to MH i2c: E2 0D 00 13 24 80 0D 02 02 05 00 C3 CE 4A 63 F5 00 00 EE [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:47]Read from MH i2c: E2 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 03 00 13 24 00 90 00 AB [08:17:47]RAPDU: 90 00 [08:17:47]wFMCommunicate OK [08:17:47]wFMCommunicate request_size=4 [08:17:47]MH_SAM_APDU [08:17:47]CAPDU: 80 0D 03 02 [08:17:47]Write to MH i2c: E2 08 00 14 24 80 0D 03 02 00 00 00 00 B3 [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:47]Read from MH i2c: E2 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 0B 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 0B 00 14 24 00 6C 9C 63 7B 1B 43 F6 FC 90 00 EA [08:17:47]RAPDU: 6C 9C 63 7B 1B 43 F6 FC 90 00 [08:17:47]wFMCommunicate OK [08:17:47]SAM_PROTO_SignData done [08:17:47]FM_MakeSignedData done [08:17:47]CreateOFDProtocolMessage [08:17:47]wFMCommunicate request_size=4 [08:17:47]MH_SAM_APDU [08:17:47]CAPDU: 80 11 00 00 [08:17:47]Write to MH i2c: E2 08 00 15 24 80 11 00 00 00 00 00 00 B3 [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:47]Read from MH i2c: E2 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 17 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: E2 17 00 15 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [08:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:17:47]wFMCommunicate OK [08:17:47]CreateOFDProtocolMessage done [08:17:47]OFDSenderStorePacket 104303 [08:17:47]StoreOFDPacket docnum=104303 [08:17: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 61 9D 07 01 76 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 AD 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 C3 CE 4A 63 F5 6C 9C 63 7B 1B 43 F6 FC [08:17:47]CheckFolder [08:17:47]dirname=/storage/ofd_packets [08:17:47]CheckFolder done [08:17:47]ProducePacketName [08:17:47]name=ofd_packets/00104303 [08:17:47]NVStorageSaveData ofd_packets/00104303 [08:17:47]File name is /storage/ofd_packets/00104303 [08:17:47]Write 301 bytes [08:17:47]NVStorageSaveData done [08:17:47]OFDSenderStorePacket done [08:17:47]KKMCreateOFDPacket done [08:17:47]NVStorageSaveData kkm_last_timestamp [08:17:47]File name is /storage/kkm_last_timestamp [08:17:47]Write 4 bytes [08:17:47]NVStorageSaveData done [08:17:47]ExternCall_PrintAddStr [08:17:47]wPrintStart [08:17:47]Write to MH i2c: 01 00 00 16 24 3A [08:17:47]Write i2c OK [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: 01 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: 01 07 00 [08:17:47]MH_I2C_Read... [08:17:47]Read from MH i2c: 01 07 00 16 24 00 00 00 00 00 FF 0F 4F [08:17:47]RasterBufferAndPrint [08:17:47]line Счет N : (1)673793 [08:17:47]line ИНН: 02508201610067 [08:17:47]line Контрольно-Кассовый Чек [08:17:47]line ПРОДАЖА [08:17:47]line ТРК (МРК, ГНК) : 32 [08:17:47]line Товар: 2710124130 [08:17:47]line Аи-92-К-5 [08:17:47]line 7.540 * 66.40 [08:17:47]line = 500.66 [08:17:47]line НДС 12% НСП 1% [08:17:47]line > о реализуемом товаре [08:17:47]line ОКРУГЛЕНИЕ: -0.66 [08:17:47]line ИТОГО: 500.00 [08:17:47]line Внесено: 500.00 [08:17:47]line СДАЧА: 0.00 [08:17:47]line НСП 1% : 4.43 [08:17:47]line НДС 12% : 53.17 [08:17:47]line Наличными: 500.00 [08:17:47]line Безнал.: 0.00 [08:17:47]line Место: АЗС № 120 "Партнер Нефть" [08:17:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:17:47]line СНО: Общий режим [08:17:47]line Чек 36 22.06.2024 08:17 [08:17:47]line Смена: 356 ФФД: 1.0 [08:17:47]line ЗНМ: 0300000164 [08:17:47]line РНМ: 0000000000092785 [08:17:47]line Версия ККМ: 001 [08:17:47]line ФМ: 0000000000875093 [08:17:47]line ФД: 104303 [08:17:47]line ФПД: 255927677248501 [08:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081749&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104303&fm=255927677248501&tin=02508201610067®Number=0000000000092785&sum=50000 [08:17:47]written 0, free lines is 4095 [08:17:47]OFD Sender: Processing packet 104303 [packets to send 17, broken 16] [08:17:47]ProducePacketName [08:17:47]name=ofd_packets/00104303 [08:17:47]OFD Sender: To server: pG, [08:17:47]CommunicateWithHost lk.salyk.kg:30040 [08:17:47]ConnectInit lk.salyk.kg [08:17:47]Connected sock=10 [08:17: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 61 9D 07 01 76 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 AD 88 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 C3 CE 4A 63 F5 6C 9C 63 7B 1B 43 F6 FC [08: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 4C D9 47 00 E9 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 2D 2F 76 66 B6 04 01 00 00 26 C4 DA D4 43 0F 4D 00 [08:17:47]CommunicateWithHost err = 0 [08:17:47]CheckOFDResponse [08:17:47]1017 (14) - 77093643461234 [08:17:47]1041 (16) - 0000000000875093 [08:17:47]1040 (4) - 104303 [08:17:47]1012 (4) - 22.06.2024 01:55 [08:17:47]1206 (1) - 0 [08:17:47]OFD Sender: Remove packet 104303 [08:17:47]ProducePacketName [08:17:47]name=ofd_packets/00104303 [08:17:47]NVStorageDeleteData [08:17:48]Write to MH i2c: 01 00 00 41 24 65 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 E6 0C 5E [08:17:48]RasterBufferAndPrint [08:17:48]line [08:17:48]line [08:17:48]line [08:17:48]line [08:17:48]line [08:17:48]written 0, free lines is 3308 [08:17:48]MH_Cut [08:17:48]Write to MH i2c: D1 01 00 48 24 01 3E [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: D1 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: D1 01 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: D1 01 00 48 24 00 3D [08:17:48]Write to MH i2c: 01 00 00 49 24 6D [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]OFD Sender: No OFD packet to send [08:17:48]*** Cut start [08:17:48]*** Partial cut [08:17:48]*** CUTSNS_PIN = 1 [08:17:48]*** CUTSNS_PIN = 0 [08:17:49]*** Brake cut motor [08:17:49]Read from MH i2c: 01 [08:17:49]MH_I2C_Read... [08:17:49]*** Stop cut motor [08:17:49]*** Cut end [08:17:49]Read from MH i2c: 01 07 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 07 00 49 24 00 00 00 00 00 FF 0F 82 [08:17:49]process_action close_receipt done [08:17:49]requested_data is exist [08:17:49]produce_requested_data [08:17:49]requested_item fm.sn is exist - process it [08:17:49]wFMCommunicate request_size=4 [08:17:49]MH_SAM_APDU [08:17:49]CAPDU: 80 11 00 00 [08:17:49]Write to MH i2c: E2 08 00 4A 24 80 11 00 00 00 00 00 00 E8 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:49]Read from MH i2c: E2 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 17 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 17 00 4A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [08:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:17:49]wFMCommunicate OK [08:17:49]requested_item fd.num is exist - process it [08:17:49]SAM_PROTO_GetFieldsCounters [08:17:49]wFMCommunicate request_size=4 [08:17:49]MH_SAM_APDU [08:17:49]CAPDU: 80 13 00 00 [08:17:49]Write to MH i2c: E2 08 00 4B 24 80 13 00 00 00 00 00 00 EB [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:49]Read from MH i2c: E2 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 62 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 62 00 4B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EA [08:17: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 6F 97 01 00 0E 04 04 00 64 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 [08:17:49]wFMCommunicate OK [08:17:49]SAM_PROTO_GetFieldsCounters done [08:17:49]requested_item shift.num is exist - process it [08:17:49]requested_item shift.opened is exist - process it [08:17:49]req_shift_opened [08:17:49]FM_GetShiftState [08:17:49]SAM_PROTO_GetShiftState [08:17:49]wFMCommunicate request_size=4 [08:17:49]MH_SAM_APDU [08:17:49]CAPDU: 80 13 01 00 [08:17:49]Write to MH i2c: E2 08 00 4C 24 80 13 01 00 00 00 00 00 ED [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:49]Read from MH i2c: E2 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 0E 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: E2 0E 00 4C 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DF [08:17:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:17:49]wFMCommunicate OK [08:17:49]SAM_PROTO_GetShiftState done [08:17:49]FM_GetShiftState done [08:17:49]req_shift_opened done [08:17:49]requested_item shift.open_date is exist - process it [08:17:49]req_shift_open_date [08:17:49]req_shift_open_date done [08:17:49]produce_requested_data done [08:17:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104303,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:17:49]process_action_free close_receipt [08:17:49]json_value_free [08:17:49]json_value_free done [08:17:49]process_json_proto returns [08:17:49]Send response to host [08:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104303,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:17:49]free response buf [08:17:49]execute_script done [08:17:49]execute_script returns [08:17:49]free content buf [08:17:49]Sock 7.Close socket [08:17:49]Sock 7.Thread stoped [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:34]accept exits with 9 [08:35:34]New connection [08:35:34]New thread 3067473252 created [08:35:34]Thread 3067616612 joined [08:35:34]Waiting for new connection... [08:35:34] Sock 9.Parse request [08:35:34]Sock 9.Check first char [08:35:34]Sock 9.First char is OK [08:35:34]request: POST /json_proto HTTP/1.0 [08:35:34]Method: POST [08:35:34]URL: /json_proto [08:35:34]Method is POST - this is cgi request [08:35:34]url: /json_proto [08:35:35]query_string will be loaded in cgi processing [08:35:35]execute_cgi json_proto POST (null) [08:35:35]execute_cgi path=json_proto method=POST [08:35:35]POST find Content-Length [08:35:35]Host: 172.17.38.133:8080 [08:35:35]Content-Length: 1212 [08:35:35]Content-Type: application/json [08:35:35] [08:35:35]POST finish read [08:35:35]Found Content-Length = 1212 [08:35: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673794\u000A22.06.2024 08:12\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 35.190 x 72.90\u000A\u0418\u0422\u041E\u0413: 2565.35\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\u000A00561\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:35]execute_script... [08:35: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673794\u000A22.06.2024 08:12\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 35.190 x 72.90\u000A\u0418\u0422\u041E\u0413: 2565.35\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\u000A00561\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:35]POST & json_proto [08:35:35]process_json_proto [08:35:35]json parsed OK: [08:35:35]protocol is kg_v1.0 [08:35:35]action value=print_text [08:35:35]process_action print_text [08:35:35]cmd_print_text [08:35:35]ExternCall_PrintAddStr [08:35:35]wPrintStart [08:35:35]Write to MH i2c: 01 00 00 4D 24 71 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 07 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 07 00 4D 24 00 00 00 00 00 FF 0F 86 [08:35:35]RasterBufferAndPrint [08:35:35]line *****ТОВАРНЫЙ ЧЕК***** [08:35:35]line АЗС 120 [08:35:35]line Партнер нефть [08:35:35]line 02508201610067 [08:35:35]line Кассир : Байбугуева Г. [08:35:35]line Счет N : (1)673794 [08:35:35]line 22.06.2024 08:12 [08:35:35]line ПРОДАЖА [08:35:35]line ТРК (МРК, ГНК): 21 [08:35:35]line Вид ГСМ : 2710194210 [08:35:35]line ДТ(л)-К-5 [08:35:35]line 35.190 x 72.90 [08:35:35]line ИТОГ: 2565.35 [08:35:35]line Тип оплаты: Талоны: Топливная Карта [08:35:35]line 00561 [08:35:35]line ______________________ [08:35:35]line (подпись) [08:35:35]written 0, free lines is 4095 [08:35:35]Write to MH i2c: 01 00 00 61 24 85 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 07 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: 01 07 00 61 24 00 00 00 00 00 12 0E AC [08:35:35]RasterBufferAndPrint [08:35:35]line [08:35:35]line [08:35:35]line [08:35:35]line [08:35:35]line [08:35:35]written 0, free lines is 3604 [08:35:35]MH_Cut [08:35:35]Write to MH i2c: D1 01 00 68 24 01 5E [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: D1 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: D1 01 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: D1 01 00 68 24 00 5D [08:35:35]Write to MH i2c: 01 00 00 69 24 8D [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]*** Cut start [08:35:35]*** Partial cut [08:35:35]*** CUTSNS_PIN = 1 [08:35:35]*** CUTSNS_PIN = 0 [08:35:36]*** Brake cut motor [08:35:36]Read from MH i2c: 01 [08:35:36]MH_I2C_Read... [08:35:36]*** Stop cut motor [08:35:36]*** Cut end [08:35:36]Read from MH i2c: 01 07 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 69 24 00 00 00 00 00 FF 0F A2 [08:35:36]process_action print_text done [08:35:36]requested_data is exist [08:35:36]produce_requested_data [08:35:36]requested_item fm.sn is exist - process it [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 11 00 00 [08:35:36]Write to MH i2c: E2 08 00 6A 24 80 11 00 00 00 00 00 00 08 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 6A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [08:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:35:36]wFMCommunicate OK [08:35:36]requested_item fd.num is exist - process it [08:35:36]SAM_PROTO_GetFieldsCounters [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 13 00 00 [08:35:36]Write to MH i2c: E2 08 00 6B 24 80 13 00 00 00 00 00 00 0B [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 62 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 62 00 6B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0A [08:35: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 6F 97 01 00 0E 04 04 00 64 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 [08:35:36]wFMCommunicate OK [08:35:36]SAM_PROTO_GetFieldsCounters done [08:35:36]requested_item shift.num is exist - process it [08:35:36]requested_item shift.opened is exist - process it [08:35:36]req_shift_opened [08:35:36]FM_GetShiftState [08:35:36]SAM_PROTO_GetShiftState [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 13 01 00 [08:35:36]Write to MH i2c: E2 08 00 6C 24 80 13 01 00 00 00 00 00 0D [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0E 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0E 00 6C 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FF [08:35:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:35:36]wFMCommunicate OK [08:35:36]SAM_PROTO_GetShiftState done [08:35:36]FM_GetShiftState done [08:35:36]req_shift_opened done [08:35:36]requested_item shift.open_date is exist - process it [08:35:36]req_shift_open_date [08:35:36]req_shift_open_date done [08:35:36]produce_requested_data done [08:35:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104303,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:35:36]process_action_free print_text [08:35:36]json_value_free [08:35:36]json_value_free done [08:35:36]process_json_proto returns [08:35:36]Send response to host [08:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104303,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:35:36]free response buf [08:35:36]execute_script done [08:35:36]execute_script returns [08:35:36]free content buf [08:35:36]Sock 9.Close socket [08:35:36]Sock 9.Thread stoped [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:30]accept exits with 7 [08:41:30]New connection [08:41:30]New thread 3067616612 created [08:41:30]Thread 3067473252 joined [08:41:30]Waiting for new connection... [08:41:30] Sock 7.Parse request [08:41:30]Sock 7.Check first char [08:41:30]Sock 7.First char is OK [08:41:30]request: POST /json_proto HTTP/1.0 [08:41:30]Method: POST [08:41:30]URL: /json_proto [08:41:30]Method is POST - this is cgi request [08:41:30]url: /json_proto [08:41:30]query_string will be loaded in cgi processing [08:41:30]execute_cgi json_proto POST (null) [08:41:30]execute_cgi path=json_proto method=POST [08:41:30]POST find Content-Length [08:41:30]Host: 172.17.38.133:8080 [08:41:30]Content-Length: 682 [08:41:30]Content-Type: application/json [08:41:30] [08:41:30]POST finish read [08:41:30]Found Content-Length = 682 [08:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673795", "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" ] } } [08:41:30]execute_script... [08:41: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)673795", "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" ] } } [08:41:30]POST & json_proto [08:41:30]process_json_proto [08:41:30]json parsed OK: [08:41:30]protocol is kg_v1.0 [08:41:30]action value=close_receipt [08:41:30]process_action close_receipt [08:41:30]cmd_close_receipt [08:41:30]MH_GetDate [08:41:30]Write to MH i2c: F0 00 00 6D 24 80 [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: F0 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: F0 09 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: F0 09 00 6D 24 00 3E 8E 76 66 BD 8F 7C 64 5D [08:41:30]GetLastDocTimeStamp 1719044269 [08:41:30]current date 1719045694 [08:41:30]FM_GetShiftState [08:41:30]SAM_PROTO_GetShiftState [08:41:30]wFMCommunicate request_size=4 [08:41:30]MH_SAM_APDU [08:41:30]CAPDU: 80 13 01 00 [08:41:30]Write to MH i2c: E2 08 00 6E 24 80 13 01 00 00 00 00 00 0F [08:41:30]Write i2c OK [08:41:30]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 6E 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 01 [08:41:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:41:30]wFMCommunicate OK [08:41:30]SAM_PROTO_GetShiftState done [08:41:30]FM_GetShiftState done [08:41:30]opened in 1719016176 [08:41:30]opened+sec_in_day 1719102576 [08:41:30]quantity*price = 200047 [08:41:30]sum+1 = 200048 [08:41:30]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 СНО: Общий режим Чек 37 22.06.2024 08:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104304 ФПД: 215018481747045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104304&fm=215018481747045&tin=02508201610067®Number=0000000000092785&sum=200000 [08:41:31]StoreToDocumentArchive [08:41:31]shift 356 fd 104304 [08:41:31]save to /storage/0356/doc_00104304 [08:41:31]save last doc name /storage/0356/doc_00104304 to /storage/kkm_last_doc_name [08:41:31]save OK [08:41:31]Clear old archive folders... [08:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:31]tlvbuf is 006E55A0 [08:41:31]SAM_PROTO_ClearQueue [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 09 00 00 [08:41:31]Write to MH i2c: E2 08 00 7B 24 80 09 00 00 00 00 00 00 11 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 7B 24 00 90 00 13 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]SAM_PROTO_ClearQueue done [08:41:31]KKMCreateOFDPacket [08:41:31]OFDProtocolAddRootSTLVToBuf [08:41:31]FM_MakeSignedData [08:41:31]FM_MakeSignedData [08:41:31]SAM_PROTO_SignData [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 01 02 [08:41:31]Write to MH i2c: E2 08 00 7C 24 80 0D 01 02 00 00 00 00 19 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 7C 24 00 90 00 14 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=255 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 25 00 00 00 F4 03 04 00 3E 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 [08:41:31]Write to MH i2c: E2 02 01 7D 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 F4 03 04 00 3E 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 00 00 A8 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 7D 24 00 90 00 15 [08:41:32]RAPDU: 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=10 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 0D 02 02 05 8E E4 39 84 65 [08:41:32]Write to MH i2c: E2 0D 00 7E 24 80 0D 02 02 05 00 8E E4 39 84 65 00 00 BA [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 7E 24 00 90 00 16 [08:41:32]RAPDU: 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 0D 03 02 [08:41:32]Write to MH i2c: E2 08 00 7F 24 80 0D 03 02 00 00 00 00 1E [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 0B 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 0B 00 7F 24 00 22 EA 92 A4 3C 2A 34 75 90 00 70 [08:41:32]RAPDU: 22 EA 92 A4 3C 2A 34 75 90 00 [08:41:32]wFMCommunicate OK [08:41:32]SAM_PROTO_SignData done [08:41:32]FM_MakeSignedData done [08:41:32]CreateOFDProtocolMessage [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 11 00 00 [08:41:32]Write to MH i2c: E2 08 00 80 24 80 11 00 00 00 00 00 00 1E [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 17 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 17 00 80 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [08:41:32]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:32]wFMCommunicate OK [08:41:32]CreateOFDProtocolMessage done [08:41:32]OFDSenderStorePacket 104304 [08:41:32]StoreOFDPacket docnum=104304 [08:41: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 97 B5 07 01 C0 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 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 25 00 00 00 F4 03 04 00 3E 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 8E E4 39 84 65 22 EA 92 A4 3C 2A 34 75 [08:41:32]CheckFolder [08:41:32]dirname=/storage/ofd_packets [08:41:32]CheckFolder done [08:41:32]ProducePacketName [08:41:32]name=ofd_packets/00104304 [08:41:32]NVStorageSaveData ofd_packets/00104304 [08:41:32]File name is /storage/ofd_packets/00104304 [08:41:32]Write 301 bytes [08:41:32]NVStorageSaveData done [08:41:32]OFDSenderStorePacket done [08:41:32]KKMCreateOFDPacket done [08:41:32]NVStorageSaveData kkm_last_timestamp [08:41:32]File name is /storage/kkm_last_timestamp [08:41:32]Write 4 bytes [08:41:32]NVStorageSaveData done [08:41:32]ExternCall_PrintAddStr [08:41:32]wPrintStart [08:41:32]Write to MH i2c: 01 00 00 81 24 A5 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 07 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 FF 0F BA [08:41:32]RasterBufferAndPrint [08:41:32]line Счет N : (1)673795 [08:41:32]line ИНН: 02508201610067 [08:41:32]line Контрольно-Кассовый Чек [08:41:32]line ПРОДАЖА [08:41:32]line ТРК (МРК, ГНК) : 41 [08:41:32]line Товар: 2710124500 [08:41:32]line Аи-95-К-5 [08:41:32]line 27.070 * 73.90 [08:41:32]line = 2000.47 [08:41:32]line НДС 12% НСП 1% [08:41:32]line > о реализуемом товаре [08:41:32]line ОКРУГЛЕНИЕ: -0.47 [08:41:32]line ИТОГО: 2000.00 [08:41:32]line Внесено: 2000.00 [08:41:32]line СДАЧА: 0.00 [08:41:32]line НСП 1% : 17.70 [08:41:32]line НДС 12% : 212.44 [08:41:32]line Наличными: 2000.00 [08:41:32]line Безнал.: 0.00 [08:41:32]line Место: АЗС № 120 "Партнер Нефть" [08:41:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:41:32]line СНО: Общий режим [08:41:32]line Чек 37 22.06.2024 08:41 [08:41:32]line Смена: 356 ФФД: 1.0 [08:41:32]line ЗНМ: 0300000164 [08:41:32]line РНМ: 0000000000092785 [08:41:32]line Версия ККМ: 001 [08:41:32]line ФМ: 0000000000875093 [08:41:32]line ФД: 104304 [08:41:32]line ФПД: 215018481747045 [08:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104304&fm=215018481747045&tin=02508201610067®Number=0000000000092785&sum=200000 [08:41:32]OFD Sender: Processing packet 104304 [packets to send 17, broken 16] [08:41:32]ProducePacketName [08:41:32]name=ofd_packets/00104304 [08:41:32]OFD Sender: To server: pG, [08:41:32]CommunicateWithHost lk.salyk.kg:30040 [08:41:32]ConnectInit lk.salyk.kg [08:41:32]written 0, free lines is 4095 [08:41:32]Connected sock=10 [08:41: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 0F 01 00 00 97 B5 07 01 C0 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 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 25 00 00 00 F4 03 04 00 3E 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 8E E4 39 84 65 22 EA 92 A4 3C 2A 34 75 [08:41: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 8F 89 47 00 C4 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 70 97 01 00 F4 03 04 00 BE 34 76 66 B6 04 01 00 00 FB 64 C4 F9 59 DB 12 D8 [08:41:33]CommunicateWithHost err = 0 [08:41:33]CheckOFDResponse [08:41:33]1017 (14) - 77093643461234 [08:41:33]1041 (16) - 0000000000875093 [08:41:33]1040 (4) - 104304 [08:41:33]1012 (4) - 22.06.2024 02:19 [08:41:33]1206 (1) - 0 [08:41:33]OFD Sender: Remove packet 104304 [08:41:33]ProducePacketName [08:41:33]name=ofd_packets/00104304 [08:41:33]NVStorageDeleteData [08:41:33]Write to MH i2c: 01 00 00 AC 24 D0 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 C9 0C AC [08:41:33]RasterBufferAndPrint [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]written 0, free lines is 3279 [08:41:33]MH_Cut [08:41:33]Write to MH i2c: D1 01 00 B3 24 01 A9 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 01 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 01 00 B3 24 00 A8 [08:41:33]Write to MH i2c: 01 00 00 B4 24 D8 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]OFD Sender: No OFD packet to send [08:41:33]*** Cut start [08:41:33]*** Partial cut [08:41:33]*** CUTSNS_PIN = 1 [08:41:34]*** CUTSNS_PIN = 0 [08:41:34]*** Brake cut motor [08:41:34]Read from MH i2c: 01 [08:41:34]MH_I2C_Read... [08:41:34]*** Stop cut motor [08:41:34]*** Cut end [08:41:34]Read from MH i2c: 01 07 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: 01 07 00 B4 24 00 00 00 00 00 FF 0F ED [08:41:34]process_action close_receipt done [08:41:34]requested_data is exist [08:41:34]produce_requested_data [08:41:34]requested_item fm.sn is exist - process it [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 11 00 00 [08:41:34]Write to MH i2c: E2 08 00 B5 24 80 11 00 00 00 00 00 00 53 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 17 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 17 00 B5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [08:41:34]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:34]wFMCommunicate OK [08:41:34]requested_item fd.num is exist - process it [08:41:34]SAM_PROTO_GetFieldsCounters [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 13 00 00 [08:41:34]Write to MH i2c: E2 08 00 B6 24 80 13 00 00 00 00 00 00 56 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 62 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 62 00 B6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 59 [08:41: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 70 97 01 00 0E 04 04 00 64 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 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_GetFieldsCounters done [08:41:34]requested_item shift.num is exist - process it [08:41:34]requested_item shift.opened is exist - process it [08:41:34]req_shift_opened [08:41:34]FM_GetShiftState [08:41:34]SAM_PROTO_GetShiftState [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 13 01 00 [08:41:34]Write to MH i2c: E2 08 00 B7 24 80 13 01 00 00 00 00 00 58 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 0E 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 0E 00 B7 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4A [08:41:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_GetShiftState done [08:41:34]FM_GetShiftState done [08:41:34]req_shift_opened done [08:41:34]requested_item shift.open_date is exist - process it [08:41:34]req_shift_open_date [08:41:34]req_shift_open_date done [08:41:34]produce_requested_data done [08:41:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104304,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:41:34]process_action_free close_receipt [08:41:34]json_value_free [08:41:34]json_value_free done [08:41:34]process_json_proto returns [08:41:34]Send response to host [08:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104304,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:41:34]free response buf [08:41:34]execute_script done [08:41:34]execute_script returns [08:41:34]free content buf [08:41:34]Sock 7.Close socket [08:41:34]Sock 7.Thread stoped [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:17]accept exits with 9 [08:44:17]New connection [08:44:17]New thread 3067473252 created [08:44:17]Thread 3067616612 joined [08:44:17]Waiting for new connection... [08:44:17] Sock 9.Parse request [08:44:17]Sock 9.Check first char [08:44:17]Sock 9.First char is OK [08:44:17]request: POST /json_proto HTTP/1.0 [08:44:17]Method: POST [08:44:17]URL: /json_proto [08:44:17]Method is POST - this is cgi request [08:44:17]url: /json_proto [08:44:17]query_string will be loaded in cgi processing [08:44:17]execute_cgi json_proto POST (null) [08:44:17]execute_cgi path=json_proto method=POST [08:44:17]POST find Content-Length [08:44:17]Host: 172.17.38.133:8080 [08:44:17]Content-Length: 819 [08:44:17]Content-Type: application/json [08:44:17] [08:44:17]POST finish read [08:44:17]Found Content-Length = 819 [08:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673796", "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" : 19.700, "sum" : 1455.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1455.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:17]execute_script... [08:44:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673796", "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" : 19.700, "sum" : 1455.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1455.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:17]POST & json_proto [08:44:17]process_json_proto [08:44:17]json parsed OK: [08:44:17]protocol is kg_v1.0 [08:44:17]action value=close_receipt [08:44:17]process_action close_receipt [08:44:17]cmd_close_receipt [08:44:17]MH_GetDate [08:44:17]Write to MH i2c: F0 00 00 B8 24 CB [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 09 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: F0 09 00 B8 24 00 E5 8E 76 66 BD 8F 7C 64 4F [08:44:17]GetLastDocTimeStamp 1719045694 [08:44:17]current date 1719045861 [08:44:17]FM_GetShiftState [08:44:17]SAM_PROTO_GetShiftState [08:44:17]wFMCommunicate request_size=4 [08:44:17]MH_SAM_APDU [08:44:17]CAPDU: 80 13 01 00 [08:44:17]Write to MH i2c: E2 08 00 B9 24 80 13 01 00 00 00 00 00 5A [08:44:17]Write i2c OK [08:44:17]MH_I2C_Read... [08:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:17]Read from MH i2c: E2 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: E2 0E 00 [08:44:17]MH_I2C_Read... [08:44:17]Read from MH i2c: E2 0E 00 B9 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4C [08:44:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:44:17]wFMCommunicate OK [08:44:17]SAM_PROTO_GetShiftState done [08:44:17]FM_GetShiftState done [08:44:17]opened in 1719016176 [08:44:17]opened+sec_in_day 1719102576 [08:44:17]quantity*price = 145583 [08:44:17]sum+1 = 145584 [08:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1455.83 НСП 1% : 12.88 НДС 12% : 154.60 Наличными: 0.00 Безнал.: 1455.83 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 22.06.2024 08:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104305 ФПД: 146294091062842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084421&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104305&fm=146294091062842&tin=02508201610067®Number=0000000000092785&sum=145583 [08:44:19]StoreToDocumentArchive [08:44:19]shift 356 fd 104305 [08:44:19]save to /storage/0356/doc_00104305 [08:44:19]save last doc name /storage/0356/doc_00104305 to /storage/kkm_last_doc_name [08:44:19]save OK [08:44:19]Clear old archive folders... [08:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:19]tlvbuf is 00714BF0 [08:44:19]SAM_PROTO_ClearQueue [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 09 00 00 [08:44:19]Write to MH i2c: E2 08 00 C6 24 80 09 00 00 00 00 00 00 5C [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:19]Read from MH i2c: E2 03 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [08:44:19]RAPDU: 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_ClearQueue done [08:44:19]KKMCreateOFDPacket [08:44:19]OFDProtocolAddRootSTLVToBuf [08:44:19]FM_MakeSignedData [08:44:19]FM_MakeSignedData [08:44:19]SAM_PROTO_SignData [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 0D 01 02 [08:44:19]Write to MH i2c: E2 08 00 C7 24 80 0D 01 02 00 00 00 00 64 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [08:44:19]RAPDU: 90 00 [08:44:19]wFMCommunicate OK [08:44:19]wFMCommunicate request_size=255 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AF 38 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 38 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 38 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E5 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 [08:44:19]Write to MH i2c: E2 02 01 C8 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AF 38 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 38 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 38 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E5 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 00 00 82 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 C8 24 00 90 00 60 [08:44:19]RAPDU: 90 00 [08:44:19]wFMCommunicate OK [08:44:19]wFMCommunicate request_size=10 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 0D 02 02 05 0D BF 54 9E 3A [08:44:19]Write to MH i2c: E2 0D 00 C9 24 80 0D 02 02 05 00 0D BF 54 9E 3A 00 00 69 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [08:44:19]RAPDU: 90 00 [08:44:19]wFMCommunicate OK [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 0D 03 02 [08:44:19]Write to MH i2c: E2 08 00 CA 24 80 0D 03 02 00 00 00 00 69 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0B 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0B 00 CA 24 00 77 76 29 5E 8A 8B 23 AA 90 00 C0 [08:44:19]RAPDU: 77 76 29 5E 8A 8B 23 AA 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_SignData done [08:44:19]FM_MakeSignedData done [08:44:19]CreateOFDProtocolMessage [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 11 00 00 [08:44:19]Write to MH i2c: E2 08 00 CB 24 80 11 00 00 00 00 00 00 69 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 17 00 CB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [08:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:44:19]wFMCommunicate OK [08:44:19]CreateOFDProtocolMessage done [08:44:19]OFDSenderStorePacket 104305 [08:44:19]StoreOFDPacket docnum=104305 [08:44: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 A9 33 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AF 38 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 38 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 38 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E5 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 0D BF 54 9E 3A 77 76 29 5E 8A 8B 23 AA [08:44:19]CheckFolder [08:44:19]dirname=/storage/ofd_packets [08:44:19]CheckFolder done [08:44:19]ProducePacketName [08:44:19]name=ofd_packets/00104305 [08:44:19]NVStorageSaveData ofd_packets/00104305 [08:44:19]File name is /storage/ofd_packets/00104305 [08:44:19]Write 301 bytes [08:44:19]NVStorageSaveData done [08:44:19]OFDSenderStorePacket done [08:44:19]KKMCreateOFDPacket done [08:44:19]NVStorageSaveData kkm_last_timestamp [08:44:19]File name is /storage/kkm_last_timestamp [08:44:19]Write 4 bytes [08:44:19]NVStorageSaveData done [08:44:19]ExternCall_PrintAddStr [08:44:19]wPrintStart [08:44:19]Write to MH i2c: 01 00 00 CC 24 F0 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: 01 07 00 CC 24 00 00 00 00 00 FF 0F 05 [08:44:19]RasterBufferAndPrint [08:44:19]line Счет N : (1)673796 [08:44:19]line ИНН: 02508201610067 [08:44:19]line Контрольно-Кассовый Чек [08:44:19]line ПРОДАЖА [08:44:19]line ТРК (МРК, ГНК) : 31 [08:44:19]line Товар: 2710124500 [08:44:19]line Аи-95-К-5 [08:44:19]line 19.700 * 73.90 [08:44:19]line = 1455.83 [08:44:19]line НДС 12% НСП 1% [08:44:19]line > о реализуемом товаре [08:44:19]line ИТОГО: 1455.83 [08:44:19]line НСП 1% : 12.88 [08:44:19]line НДС 12% : 154.60 [08:44:19]line Наличными: 0.00 [08:44:19]line Безнал.: 1455.83 [08:44:19]line Место: АЗС № 120 "Партнер Нефть" [08:44:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:44:19]line СНО: Общий режим [08:44:19]line Чек 38 22.06.2024 08:44 [08:44:19]line Смена: 356 ФФД: 1.0 [08:44:19]line ЗНМ: 0300000164 [08:44:19]line РНМ: 0000000000092785 [08:44:19]line Версия ККМ: 001 [08:44:19]line Платежная система: Бакай Банк [08:44:19]line ФМ: 0000000000875093 [08:44:19]line ФД: 104305 [08:44:19]line ФПД: 146294091062842 [08:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084421&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104305&fm=146294091062842&tin=02508201610067®Number=0000000000092785&sum=145583 [08:44:19]OFD Sender: Processing packet 104305 [packets to send 17, broken 16] [08:44:19]ProducePacketName [08:44:19]name=ofd_packets/00104305 [08:44:19]OFD Sender: To server: pG, [08:44:19]CommunicateWithHost lk.salyk.kg:30040 [08:44:19]ConnectInit lk.salyk.kg [08:44:19]written 0, free lines is 4095 [08:44:20]Connected sock=10 [08:44: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 A9 33 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AF 38 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 38 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 38 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E5 8E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 0D BF 54 9E 3A 77 76 29 5E 8A 8B 23 AA [08:44: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 E5 5E 47 00 AC 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 71 97 01 00 F4 03 04 00 65 35 76 66 B6 04 01 00 00 39 F0 36 F2 5A 3F 33 7B [08:44:20]CommunicateWithHost err = 0 [08:44:20]CheckOFDResponse [08:44:20]1017 (14) - 77093643461234 [08:44:20]1041 (16) - 0000000000875093 [08:44:20]1040 (4) - 104305 [08:44:20]1012 (4) - 22.06.2024 02:22 [08:44:20]1206 (1) - 0 [08:44:20]OFD Sender: Remove packet 104305 [08:44:20]ProducePacketName [08:44:20]name=ofd_packets/00104305 [08:44:20]NVStorageDeleteData [08:44:20]Write to MH i2c: 01 00 00 F6 24 1A [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 07 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 E4 0C 11 [08:44:20]RasterBufferAndPrint [08:44:20]line [08:44:20]line [08:44:20]line [08:44:20]line [08:44:20]line [08:44:20]written 0, free lines is 3307 [08:44:20]MH_Cut [08:44:20]Write to MH i2c: D1 01 00 FD 24 01 F3 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: D1 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: D1 01 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: D1 01 00 FD 24 00 F2 [08:44:20]Write to MH i2c: 01 00 00 FE 24 22 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]OFD Sender: No OFD packet to send [08:44:21]*** Cut start [08:44:21]*** Partial cut [08:44:21]*** CUTSNS_PIN = 1 [08:44:21]*** CUTSNS_PIN = 0 [08:44:21]*** Brake cut motor [08:44:21]Read from MH i2c: 01 [08:44:21]MH_I2C_Read... [08:44:21]*** Stop cut motor [08:44:21]*** Cut end [08:44:21]Read from MH i2c: 01 07 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 FF 0F 37 [08:44:21]process_action close_receipt done [08:44:21]requested_data is exist [08:44:21]produce_requested_data [08:44:21]requested_item fm.sn is exist - process it [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 11 00 00 [08:44:21]Write to MH i2c: E2 08 00 FF 24 80 11 00 00 00 00 00 00 9D [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 FF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [08:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:44:21]wFMCommunicate OK [08:44:21]requested_item fd.num is exist - process it [08:44:21]SAM_PROTO_GetFieldsCounters [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 13 00 00 [08:44:21]Write to MH i2c: E2 08 00 00 25 80 13 00 00 00 00 00 00 A1 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 62 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 62 00 00 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A8 [08:44: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 71 97 01 00 0E 04 04 00 64 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 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_GetFieldsCounters done [08:44:21]requested_item shift.num is exist - process it [08:44:21]requested_item shift.opened is exist - process it [08:44:21]req_shift_opened [08:44:21]FM_GetShiftState [08:44:21]SAM_PROTO_GetShiftState [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 13 01 00 [08:44:21]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:21]Read from MH i2c: E2 0E 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 95 [08:44:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_GetShiftState done [08:44:21]FM_GetShiftState done [08:44:21]req_shift_opened done [08:44:21]requested_item shift.open_date is exist - process it [08:44:21]req_shift_open_date [08:44:21]req_shift_open_date done [08:44:21]produce_requested_data done [08:44:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104305,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:44:21]process_action_free close_receipt [08:44:21]json_value_free [08:44:21]json_value_free done [08:44:21]process_json_proto returns [08:44:21]Send response to host [08:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104305,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:44:21]free response buf [08:44:21]execute_script done [08:44:21]execute_script returns [08:44:21]free content buf [08:44:21]Sock 9.Close socket [08:44:21]Sock 9.Thread stoped [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:08]accept exits with 7 [08:53:08]New connection [08:53:08]New thread 3067616612 created [08:53:08]Thread 3067473252 joined [08:53:08]Waiting for new connection... [08:53:08] Sock 7.Parse request [08:53:08]Sock 7.Check first char [08:53:08]Sock 7.First char is OK [08:53:08]request: POST /json_proto HTTP/1.0 [08:53:08]Method: POST [08:53:08]URL: /json_proto [08:53:08]Method is POST - this is cgi request [08:53:08]url: /json_proto [08:53:08]query_string will be loaded in cgi processing [08:53:08]execute_cgi json_proto POST (null) [08:53:08]execute_cgi path=json_proto method=POST [08:53:08]POST find Content-Length [08:53:08]Host: 172.17.38.133:8080 [08:53:08]Content-Length: 1206 [08:53:08]Content-Type: application/json [08:53:08] [08:53:08]POST finish read [08:53:08]Found Content-Length = 1206 [08:53: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673798\u000A22.06.2024 08: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 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:08]execute_script... [08:53: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673798\u000A22.06.2024 08: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 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:08]POST & json_proto [08:53:08]process_json_proto [08:53:08]json parsed OK: [08:53:08]protocol is kg_v1.0 [08:53:08]action value=print_text [08:53:08]process_action print_text [08:53:08]cmd_print_text [08:53:08]ExternCall_PrintAddStr [08:53:08]wPrintStart [08:53:08]Write to MH i2c: 01 00 00 02 25 27 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 02 25 00 00 00 00 00 FF 0F 3C [08:53:08]RasterBufferAndPrint [08:53:08]line *****ТОВАРНЫЙ ЧЕК***** [08:53:08]line АЗС 120 [08:53:08]line Партнер нефть [08:53:08]line 02508201610067 [08:53:08]line Кассир : Байбугуева Г. [08:53:08]line Счет N : (1)673798 [08:53:08]line 22.06.2024 08:30 [08:53:08]line ПРОДАЖА [08:53:08]line ТРК (МРК, ГНК): 32 [08:53:08]line Вид ГСМ : 2710124130 [08:53:08]line Аи-92-К-5 [08:53:08]line 15.000 x 66.40 [08:53:08]line ИТОГ: 996.00 [08:53:08]line Тип оплаты: Талоны: Топливная Карта [08:53:08]line 00562 [08:53:08]line ______________________ [08:53:08]line (подпись) [08:53:08]written 0, free lines is 4095 [08:53:08]Write to MH i2c: 01 00 00 16 25 3B [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 12 0E 62 [08:53:08]RasterBufferAndPrint [08:53:08]line [08:53:08]line [08:53:08]line [08:53:08]line [08:53:08]line [08:53:08]written 0, free lines is 3604 [08:53:08]MH_Cut [08:53:08]Write to MH i2c: D1 01 00 1D 25 01 14 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: D1 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: D1 01 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: D1 01 00 1D 25 00 13 [08:53:08]Write to MH i2c: 01 00 00 1E 25 43 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:09]*** Cut start [08:53:09]*** Partial cut [08:53:09]*** CUTSNS_PIN = 1 [08:53:09]*** CUTSNS_PIN = 0 [08:53:09]*** Brake cut motor [08:53:10]Read from MH i2c: 01 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: 01 07 00 [08:53:10]MH_I2C_Read... [08:53:10]*** Stop cut motor [08:53:10]*** Cut end [08:53:10]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 FF 0F 58 [08:53:10]process_action print_text done [08:53:10]requested_data is exist [08:53:10]produce_requested_data [08:53:10]requested_item fm.sn is exist - process it [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 11 00 00 [08:53:10]Write to MH i2c: E2 08 00 1F 25 80 11 00 00 00 00 00 00 BE [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 1F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [08:53:10]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:10]wFMCommunicate OK [08:53:10]requested_item fd.num is exist - process it [08:53:10]SAM_PROTO_GetFieldsCounters [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 00 00 [08:53:10]Write to MH i2c: E2 08 00 20 25 80 13 00 00 00 00 00 00 C1 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 20 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C8 [08:53: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 71 97 01 00 0E 04 04 00 64 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 [08:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetFieldsCounters done [08:53:10]requested_item shift.num is exist - process it [08:53:10]requested_item shift.opened is exist - process it [08:53:10]req_shift_opened [08:53:10]FM_GetShiftState [08:53:10]SAM_PROTO_GetShiftState [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 01 00 [08:53:10]Write to MH i2c: E2 08 00 21 25 80 13 01 00 00 00 00 00 C3 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 21 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B5 [08:53:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetShiftState done [08:53:10]FM_GetShiftState done [08:53:10]req_shift_opened done [08:53:10]requested_item shift.open_date is exist - process it [08:53:10]req_shift_open_date [08:53:10]req_shift_open_date done [08:53:10]produce_requested_data done [08:53:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104305,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:53:10]process_action_free print_text [08:53:10]json_value_free [08:53:10]json_value_free done [08:53:10]process_json_proto returns [08:53:10]Send response to host [08:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104305,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:53:10]free response buf [08:53:10]execute_script done [08:53:10]execute_script returns [08:53:10]free content buf [08:53:10]Sock 7.Close socket [08:53:10]Sock 7.Thread stoped [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:19]accept exits with 9 [08:53:19]New connection [08:53:19]New thread 3067473252 created [08:53:19]Thread 3067616612 joined [08:53:19]Waiting for new connection... [08:53:19] Sock 9.Parse request [08:53:19]Sock 9.Check first char [08:53:19]Sock 9.First char is OK [08:53:19]request: POST /json_proto HTTP/1.0 [08:53:19]Method: POST [08:53:19]URL: /json_proto [08:53:19]Method is POST - this is cgi request [08:53:19]url: /json_proto [08:53:19]query_string will be loaded in cgi processing [08:53:19]execute_cgi json_proto POST (null) [08:53:19]execute_cgi path=json_proto method=POST [08:53:19]POST find Content-Length [08:53:19]Host: 172.17.38.133:8080 [08:53:19]Content-Length: 821 [08:53:19]Content-Type: application/json [08:53:19] [08:53:19]POST finish read [08:53:19]Found Content-Length = 821 [08:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673797", "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.320, "sum" : 679.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" : 679.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]execute_script... [08:53: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)673797", "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.320, "sum" : 679.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" : 679.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]POST & json_proto [08:53:19]process_json_proto [08:53:19]json parsed OK: [08:53:19]protocol is kg_v1.0 [08:53:19]action value=close_receipt [08:53:19]process_action close_receipt [08:53:19]cmd_close_receipt [08:53:19]MH_GetDate [08:53:19]Write to MH i2c: F0 00 00 22 25 36 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 22 25 00 03 91 76 66 BD 8F 7C 64 DB [08:53:19]GetLastDocTimeStamp 1719045861 [08:53:19]current date 1719046403 [08:53:19]FM_GetShiftState [08:53:19]SAM_PROTO_GetShiftState [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 01 00 [08:53:19]Write to MH i2c: E2 08 00 23 25 80 13 01 00 00 00 00 00 C5 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 23 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B7 [08:53:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetShiftState done [08:53:19]FM_GetShiftState done [08:53:19]opened in 1719016176 [08:53:19]opened+sec_in_day 1719102576 [08:53:19]quantity*price = 67942 [08:53:19]sum+1 = 67944 [08:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 679.43 НСП 1% : 6.01 НДС 12% : 72.15 Наличными: 0.00 Безнал.: 679.43 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 22.06.2024 08:53 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104306 ФПД: 104880382623914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085323&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104306&fm=104880382623914&tin=02508201610067®Number=0000000000092785&sum=67943 [08:53:20]StoreToDocumentArchive [08:53:20]shift 356 fd 104306 [08:53:20]save to /storage/0356/doc_00104306 [08:53:20]save last doc name /storage/0356/doc_00104306 to /storage/kkm_last_doc_name [08:53:20]save OK [08:53:20]Clear old archive folders... [08:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:53:20]tlvbuf is B6F638D0 [08:53:20]SAM_PROTO_ClearQueue [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 09 00 00 [08:53:20]Write to MH i2c: E2 08 00 30 25 80 09 00 00 00 00 00 00 C7 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]SAM_PROTO_ClearQueue done [08:53:20]KKMCreateOFDPacket [08:53:20]OFDProtocolAddRootSTLVToBuf [08:53:20]FM_MakeSignedData [08:53:20]FM_MakeSignedData [08:53:20]SAM_PROTO_SignData [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 01 02 [08:53:20]Write to MH i2c: E2 08 00 31 25 80 0D 01 02 00 00 00 00 CF [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 31 25 00 90 00 CA [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]wFMCommunicate request_size=255 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 68 24 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 67 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 03 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [08:53:20]Write to MH i2c: E2 02 01 32 25 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 68 24 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 67 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 03 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 3B [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]wFMCommunicate request_size=11 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 02 02 06 5F 63 5D F3 40 AA [08:53:20]Write to MH i2c: E2 0E 00 33 25 80 0D 02 02 06 00 5F 63 5D F3 40 AA 00 00 DA [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 03 02 [08:53:20]Write to MH i2c: E2 08 00 34 25 80 0D 03 02 00 00 00 00 D4 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 0B 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 0B 00 34 25 00 FC FA CF BC 4D 4D 2E 1A 90 00 38 [08:53:20]RAPDU: FC FA CF BC 4D 4D 2E 1A 90 00 [08:53:20]wFMCommunicate OK [08:53:20]SAM_PROTO_SignData done [08:53:20]FM_MakeSignedData done [08:53:20]CreateOFDProtocolMessage [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 11 00 00 [08:53:20]Write to MH i2c: E2 08 00 35 25 80 11 00 00 00 00 00 00 D4 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 17 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 17 00 35 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [08:53:20]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:20]wFMCommunicate OK [08:53:20]CreateOFDProtocolMessage done [08:53:20]OFDSenderStorePacket 104306 [08:53:20]StoreOFDPacket docnum=104306 [08:53: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 71 46 08 01 0D 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 68 24 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 67 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 03 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F 63 5D F3 40 AA FC FA CF BC 4D 4D 2E 1A [08:53:20]CheckFolder [08:53:20]dirname=/storage/ofd_packets [08:53:20]CheckFolder done [08:53:20]ProducePacketName [08:53:20]name=ofd_packets/00104306 [08:53:20]NVStorageSaveData ofd_packets/00104306 [08:53:20]File name is /storage/ofd_packets/00104306 [08:53:20]Write 302 bytes [08:53:20]NVStorageSaveData done [08:53:20]OFDSenderStorePacket done [08:53:20]KKMCreateOFDPacket done [08:53:20]NVStorageSaveData kkm_last_timestamp [08:53:20]File name is /storage/kkm_last_timestamp [08:53:20]Write 4 bytes [08:53:20]NVStorageSaveData done [08:53:20]ExternCall_PrintAddStr [08:53:20]wPrintStart [08:53:20]Write to MH i2c: 01 00 00 36 25 5B [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 07 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 07 00 36 25 00 00 00 00 00 FF 0F 70 [08:53:20]RasterBufferAndPrint [08:53:20]line Счет N : (1)673797 [08:53:20]line ИНН: 02508201610067 [08:53:20]line Контрольно-Кассовый Чек [08:53:20]line ПРОДАЖА [08:53:20]line ТРК (МРК, ГНК) : 21 [08:53:20]line Товар: 2710194210 [08:53:20]line ДТ(л)-К-5 [08:53:20]line 9.320 * 72.90 [08:53:20]line = 679.43 [08:53:20]line НДС 12% НСП 1% [08:53:20]line > о реализуемом товаре [08:53:20]line ИТОГО: 679.43 [08:53:20]line НСП 1% : 6.01 [08:53:20]line НДС 12% : 72.15 [08:53:20]line Наличными: 0.00 [08:53:20]line Безнал.: 679.43 [08:53:20]line Место: АЗС № 120 "Партнер Нефть" [08:53:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:53:20]line СНО: Общий режим [08:53:20]line Чек 39 22.06.2024 08:53 [08:53:20]line Смена: 356 ФФД: 1.0 [08:53:20]line ЗНМ: 0300000164 [08:53:20]line РНМ: 0000000000092785 [08:53:20]line Версия ККМ: 001 [08:53:20]line Платежная система: Бакай Банк [08:53:20]line ФМ: 0000000000875093 [08:53:20]line ФД: 104306 [08:53:20]line ФПД: 104880382623914 [08:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085323&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104306&fm=104880382623914&tin=02508201610067®Number=0000000000092785&sum=67943 [08:53:21]written 0, free lines is 4095 [08:53:21]OFD Sender: Processing packet 104306 [packets to send 17, broken 16] [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00104306 [08:53:21]OFD Sender: To server: pG, [08:53:21]CommunicateWithHost lk.salyk.kg:30040 [08:53:21]ConnectInit lk.salyk.kg [08:53:21]Connected sock=10 [08:53: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 10 01 00 00 71 46 08 01 0D 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 68 24 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 67 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 03 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F 63 5D F3 40 AA FC FA CF BC 4D 4D 2E 1A [08:53: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 B9 6B 47 00 CB 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 72 97 01 00 F4 03 04 00 83 37 76 66 B6 04 01 00 00 D4 11 55 D2 01 FB 6D D1 [08:53:21]CommunicateWithHost err = 0 [08:53:21]CheckOFDResponse [08:53:21]1017 (14) - 77093643461234 [08:53:21]1041 (16) - 0000000000875093 [08:53:21]1040 (4) - 104306 [08:53:21]1012 (4) - 22.06.2024 02:31 [08:53:21]1206 (1) - 0 [08:53:21]OFD Sender: Remove packet 104306 [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00104306 [08:53:21]NVStorageDeleteData [08:53:21]Write to MH i2c: 01 00 00 60 25 85 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 E2 0C 7A [08:53:21]RasterBufferAndPrint [08:53:21]line [08:53:21]line [08:53:21]line [08:53:21]line [08:53:21]line [08:53:21]written 0, free lines is 3304 [08:53:21]MH_Cut [08:53:21]Write to MH i2c: D1 01 00 67 25 01 5E [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: D1 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: D1 01 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: D1 01 00 67 25 00 5D [08:53:21]Write to MH i2c: 01 00 00 68 25 8D [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:22]OFD Sender: No OFD packet to send [08:53:22]*** Cut start [08:53:22]*** Partial cut [08:53:22]*** CUTSNS_PIN = 1 [08:53:22]*** CUTSNS_PIN = 0 [08:53:22]*** Brake cut motor [08:53:23]Read from MH i2c: 01 [08:53:23]MH_I2C_Read... [08:53:23]*** Stop cut motor [08:53:23]*** Cut end [08:53:23]Read from MH i2c: 01 07 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [08:53:23]process_action close_receipt done [08:53:23]requested_data is exist [08:53:23]produce_requested_data [08:53:23]requested_item fm.sn is exist - process it [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 11 00 00 [08:53:23]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [08:53:23]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:23]wFMCommunicate OK [08:53:23]requested_item fd.num is exist - process it [08:53:23]SAM_PROTO_GetFieldsCounters [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 00 00 [08:53:23]Write to MH i2c: E2 08 00 6A 25 80 13 00 00 00 00 00 00 0B [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 6A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 16 [08:53: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 72 97 01 00 0E 04 04 00 64 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 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetFieldsCounters done [08:53:23]requested_item shift.num is exist - process it [08:53:23]requested_item shift.opened is exist - process it [08:53:23]req_shift_opened [08:53:23]FM_GetShiftState [08:53:23]SAM_PROTO_GetShiftState [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 01 00 [08:53:23]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:23]Read from MH i2c: E2 0E 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FF [08:53:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetShiftState done [08:53:23]FM_GetShiftState done [08:53:23]req_shift_opened done [08:53:23]requested_item shift.open_date is exist - process it [08:53:23]req_shift_open_date [08:53:23]req_shift_open_date done [08:53:23]produce_requested_data done [08:53:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104306,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:53:23]process_action_free close_receipt [08:53:23]json_value_free [08:53:23]json_value_free done [08:53:23]process_json_proto returns [08:53:23]Send response to host [08:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104306,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:53:23]free response buf [08:53:23]execute_script done [08:53:23]execute_script returns [08:53:23]free content buf [08:53:23]Sock 9.Close socket [08:53:23]Sock 9.Thread stoped [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:33]accept exits with 7 [08:54:33]New connection [08:54:33]New thread 3067616612 created [08:54:33]Thread 3067473252 joined [08:54:33]Waiting for new connection... [08:54:33] Sock 7.Parse request [08:54:33]Sock 7.Check first char [08:54:33]Sock 7.First char is OK [08:54:33]request: POST /json_proto HTTP/1.0 [08:54:33]Method: POST [08:54:33]URL: /json_proto [08:54:33]Method is POST - this is cgi request [08:54:33]url: /json_proto [08:54:33]query_string will be loaded in cgi processing [08:54:33]execute_cgi json_proto POST (null) [08:54:33]execute_cgi path=json_proto method=POST [08:54:33]POST find Content-Length [08:54:33]Host: 172.17.38.133:8080 [08:54:33]Content-Length: 677 [08:54:33]Content-Type: application/json [08:54:33] [08:54:33]POST finish read [08:54:33]Found Content-Length = 677 [08:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673799", "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" ] } } [08:54:33]execute_script... [08: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)673799", "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" ] } } [08:54:33]POST & json_proto [08:54:33]process_json_proto [08:54:33]json parsed OK: [08:54:33]protocol is kg_v1.0 [08:54:33]action value=close_receipt [08:54:33]process_action close_receipt [08:54:33]cmd_close_receipt [08:54:33]MH_GetDate [08:54:33]Write to MH i2c: F0 00 00 6C 25 80 [08:54:33]Write i2c OK [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 09 00 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 09 00 6C 25 00 4E 91 76 66 BD 8F 7C 64 70 [08:54:33]GetLastDocTimeStamp 1719046403 [08:54:33]current date 1719046478 [08:54:33]FM_GetShiftState [08:54:33]SAM_PROTO_GetShiftState [08:54:33]wFMCommunicate request_size=4 [08:54:33]MH_SAM_APDU [08:54:33]CAPDU: 80 13 01 00 [08:54:33]Write to MH i2c: E2 08 00 6D 25 80 13 01 00 00 00 00 00 0F [08:54:33]Write i2c OK [08:54:33]MH_I2C_Read... [08:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:33]Read from MH i2c: E2 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: E2 0E 00 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: E2 0E 00 6D 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 01 [08:54:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:54:33]wFMCommunicate OK [08:54:33]SAM_PROTO_GetShiftState done [08:54:33]FM_GetShiftState done [08:54:33]opened in 1719016176 [08:54:33]opened+sec_in_day 1719102576 [08:54:33]quantity*price = 40039 [08:54:33]sum+1 = 40040 [08:54:33]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 СНО: Общий режим Чек 40 22.06.2024 08:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104307 ФПД: 165279325571241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085438&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104307&fm=165279325571241&tin=02508201610067®Number=0000000000092785&sum=40000 [08:54:35]StoreToDocumentArchive [08:54:35]shift 356 fd 104307 [08:54:35]save to /storage/0356/doc_00104307 [08:54:35]save last doc name /storage/0356/doc_00104307 to /storage/kkm_last_doc_name [08:54:35]save OK [08:54:35]Clear old archive folders... [08:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:35]tlvbuf is 006DAA70 [08:54:35]SAM_PROTO_ClearQueue [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 09 00 00 [08:54:35]Write to MH i2c: E2 08 00 7A 25 80 09 00 00 00 00 00 00 11 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]SAM_PROTO_ClearQueue done [08:54:35]KKMCreateOFDPacket [08:54:35]OFDProtocolAddRootSTLVToBuf [08:54:35]FM_MakeSignedData [08:54:35]FM_MakeSignedData [08:54:35]SAM_PROTO_SignData [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 0D 01 02 [08:54:35]Write to MH i2c: E2 08 00 7B 25 80 0D 01 02 00 00 00 00 19 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]wFMCommunicate request_size=255 [08:54:35]MH_SAM_APDU [08:54: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 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 28 00 00 00 F4 03 04 00 4E 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 [08:54:35]Write to MH i2c: E2 02 01 7C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 4E 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 00 00 8A [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 7C 25 00 90 00 15 [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]wFMCommunicate request_size=10 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 0D 02 02 05 52 17 7D 48 A9 [08:54:35]Write to MH i2c: E2 0D 00 7D 25 80 0D 02 02 05 00 52 17 7D 48 A9 00 00 FD [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 0D 03 02 [08:54:35]Write to MH i2c: E2 08 00 7E 25 80 0D 03 02 00 00 00 00 1E [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0B 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0B 00 7E 25 00 48 EA 60 C2 E0 3D BA 9D 90 00 E7 [08:54:35]RAPDU: 48 EA 60 C2 E0 3D BA 9D 90 00 [08:54:35]wFMCommunicate OK [08:54:35]SAM_PROTO_SignData done [08:54:35]FM_MakeSignedData done [08:54:35]CreateOFDProtocolMessage [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 11 00 00 [08:54:35]Write to MH i2c: E2 08 00 7F 25 80 11 00 00 00 00 00 00 1E [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 17 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 17 00 7F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [08:54: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:54:35]wFMCommunicate OK [08:54:35]CreateOFDProtocolMessage done [08:54:35]OFDSenderStorePacket 104307 [08:54:35]StoreOFDPacket docnum=104307 [08:54: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 48 E1 07 01 BD D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 4E 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 52 17 7D 48 A9 48 EA 60 C2 E0 3D BA 9D [08:54:35]CheckFolder [08:54:35]dirname=/storage/ofd_packets [08:54:35]CheckFolder done [08:54:35]ProducePacketName [08:54:35]name=ofd_packets/00104307 [08:54:35]NVStorageSaveData ofd_packets/00104307 [08:54:35]File name is /storage/ofd_packets/00104307 [08:54:35]Write 301 bytes [08:54:35]NVStorageSaveData done [08:54:35]OFDSenderStorePacket done [08:54:35]KKMCreateOFDPacket done [08:54:35]NVStorageSaveData kkm_last_timestamp [08:54:35]File name is /storage/kkm_last_timestamp [08:54:35]Write 4 bytes [08:54:35]NVStorageSaveData done [08:54:35]ExternCall_PrintAddStr [08:54:35]wPrintStart [08:54:35]Write to MH i2c: 01 00 00 80 25 A5 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 80 25 00 00 00 00 00 FF 0F BA [08:54:35]RasterBufferAndPrint [08:54:35]line Счет N : (1)673799 [08:54:35]line ИНН: 02508201610067 [08:54:35]line Контрольно-Кассовый Чек [08:54:35]line ПРОДАЖА [08:54:35]line ТРК (МРК, ГНК) : 32 [08:54:35]line Товар: 2710124130 [08:54:35]line Аи-92-К-5 [08:54:35]line 6.030 * 66.40 [08:54:35]line = 400.39 [08:54:35]line НДС 12% НСП 1% [08:54:35]line > о реализуемом товаре [08:54:35]line ОКРУГЛЕНИЕ: -0.39 [08:54:35]line ИТОГО: 400.00 [08:54:35]line Внесено: 400.00 [08:54:35]line СДАЧА: 0.00 [08:54:35]line НСП 1% : 3.54 [08:54:35]line НДС 12% : 42.52 [08:54:35]line Наличными: 400.00 [08:54:35]line Безнал.: 0.00 [08:54:35]line Место: АЗС № 120 "Партнер Нефть" [08:54:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:54:35]line СНО: Общий режим [08:54:35]line Чек 40 22.06.2024 08:54 [08:54:35]line Смена: 356 ФФД: 1.0 [08:54:35]line ЗНМ: 0300000164 [08:54:35]line РНМ: 0000000000092785 [08:54:35]line Версия ККМ: 001 [08:54:35]line ФМ: 0000000000875093 [08:54:35]line ФД: 104307 [08:54:35]line ФПД: 165279325571241 [08:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085438&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104307&fm=165279325571241&tin=02508201610067®Number=0000000000092785&sum=40000 [08:54:35]written 0, free lines is 4095 [08:54:35]OFD Sender: Processing packet 104307 [packets to send 17, broken 16] [08:54:35]ProducePacketName [08:54:35]name=ofd_packets/00104307 [08:54:35]OFD Sender: To server: pG, [08:54:35]CommunicateWithHost lk.salyk.kg:30040 [08:54:35]ConnectInit lk.salyk.kg [08:54:36]Connected sock=10 [08:54: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 48 E1 07 01 BD D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 4E 91 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 52 17 7D 48 A9 48 EA 60 C2 E0 3D BA 9D [08:54: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 B1 22 47 00 04 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 73 97 01 00 F4 03 04 00 CD 37 76 66 B6 04 01 00 00 66 B1 4A 48 A2 BF 76 AC [08:54:36]CommunicateWithHost err = 0 [08:54:36]CheckOFDResponse [08:54:36]1017 (14) - 77093643461234 [08:54:36]1041 (16) - 0000000000875093 [08:54:36]1040 (4) - 104307 [08:54:36]1012 (4) - 22.06.2024 02:32 [08:54:36]1206 (1) - 0 [08:54:36]OFD Sender: Remove packet 104307 [08:54:36]ProducePacketName [08:54:36]name=ofd_packets/00104307 [08:54:36]NVStorageDeleteData [08:54:36]Write to MH i2c: 01 00 00 AB 25 D0 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 07 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 07 00 AB 25 00 00 00 00 00 CD 0C B0 [08:54:36]RasterBufferAndPrint [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]written 0, free lines is 3283 [08:54:36]MH_Cut [08:54:36]Write to MH i2c: D1 01 00 B2 25 01 A9 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 01 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 01 00 B2 25 00 A8 [08:54:36]Write to MH i2c: 01 00 00 B3 25 D8 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]OFD Sender: No OFD packet to send [08:54:37]*** Cut start [08:54:37]*** Partial cut [08:54:37]*** CUTSNS_PIN = 1 [08:54:37]*** CUTSNS_PIN = 0 [08:54:37]*** Brake cut motor [08:54:37]Read from MH i2c: 01 [08:54:37]MH_I2C_Read... [08:54:37]*** Stop cut motor [08:54:37]*** Cut end [08:54:37]Read from MH i2c: 01 07 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 B3 25 00 00 00 00 00 FF 0F ED [08:54:37]process_action close_receipt done [08:54:37]requested_data is exist [08:54:37]produce_requested_data [08:54:37]requested_item fm.sn is exist - process it [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 11 00 00 [08:54:37]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [08: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 [08:54:37]wFMCommunicate OK [08:54:37]requested_item fd.num is exist - process it [08:54:37]SAM_PROTO_GetFieldsCounters [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 13 00 00 [08:54:37]Write to MH i2c: E2 08 00 B5 25 80 13 00 00 00 00 00 00 56 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 62 00 [08:54:37]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 62 00 B5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 65 [08:54: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 73 97 01 00 0E 04 04 00 64 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 [08:54:38]wFMCommunicate OK [08:54:38]SAM_PROTO_GetFieldsCounters done [08:54:38]requested_item shift.num is exist - process it [08:54:38]requested_item shift.opened is exist - process it [08:54:38]req_shift_opened [08:54:38]FM_GetShiftState [08:54:38]SAM_PROTO_GetShiftState [08:54:38]wFMCommunicate request_size=4 [08:54:38]MH_SAM_APDU [08:54:38]CAPDU: 80 13 01 00 [08:54:38]Write to MH i2c: E2 08 00 B6 25 80 13 01 00 00 00 00 00 58 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:38]Read from MH i2c: E2 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 0E 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 0E 00 B6 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4A [08:54:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:54:38]wFMCommunicate OK [08:54:38]SAM_PROTO_GetShiftState done [08:54:38]FM_GetShiftState done [08:54:38]req_shift_opened done [08:54:38]requested_item shift.open_date is exist - process it [08:54:38]req_shift_open_date [08:54:38]req_shift_open_date done [08:54:38]produce_requested_data done [08:54:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:54:38]process_action_free close_receipt [08:54:38]json_value_free [08:54:38]json_value_free done [08:54:38]process_json_proto returns [08:54:38]Send response to host [08:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:54:38]free response buf [08:54:38]execute_script done [08:54:38]execute_script returns [08:54:38]free content buf [08:54:38]Sock 7.Close socket [08:54:38]Sock 7.Thread stoped [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:28]accept exits with 9 [08:55:28]New connection [08:55:28]New thread 3067473252 created [08:55:28]Thread 3067616612 joined [08:55:28]Waiting for new connection... [08:55:28] Sock 9.Parse request [08:55:28]Sock 9.Check first char [08:55:28]Sock 9.First char is OK [08:55:28]request: POST /json_proto HTTP/1.0 [08:55:28]Method: POST [08:55:28]URL: /json_proto [08:55:28]Method is POST - this is cgi request [08:55:28]url: /json_proto [08:55:28]query_string will be loaded in cgi processing [08:55:28]execute_cgi json_proto POST (null) [08:55:28]execute_cgi path=json_proto method=POST [08:55:28]POST find Content-Length [08:55:28]Host: 172.17.38.133:8080 [08:55:28]Content-Length: 1206 [08:55:28]Content-Type: application/json [08:55:28] [08:55:28]POST finish read [08:55:28]Found Content-Length = 1206 [08:55: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673800\u000A22.06.2024 08:32\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.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:28]execute_script... [08:55: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673800\u000A22.06.2024 08:32\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.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:28]POST & json_proto [08:55:28]process_json_proto [08:55:28]json parsed OK: [08:55:28]protocol is kg_v1.0 [08:55:28]action value=print_text [08:55:28]process_action print_text [08:55:28]cmd_print_text [08:55:28]ExternCall_PrintAddStr [08:55:28]wPrintStart [08:55:28]Write to MH i2c: 01 00 00 B7 25 DC [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 FF 0F F1 [08:55:28]RasterBufferAndPrint [08:55:28]line *****ТОВАРНЫЙ ЧЕК***** [08:55:28]line АЗС 120 [08:55:28]line Партнер нефть [08:55:28]line 02508201610067 [08:55:28]line Кассир : Байбугуева Г. [08:55:28]line Счет N : (1)673800 [08:55:28]line 22.06.2024 08:32 [08:55:28]line ПРОДАЖА [08:55:28]line ТРК (МРК, ГНК): 42 [08:55:28]line Вид ГСМ : 2710124130 [08:55:28]line Аи-92-К-5 [08:55:28]line 15.000 x 66.40 [08:55:28]line ИТОГ: 996.00 [08:55:28]line Тип оплаты: Талоны: Топливная Карта [08:55:28]line 00562 [08:55:28]line ______________________ [08:55:28]line (подпись) [08:55:28]written 0, free lines is 4095 [08:55:28]Write to MH i2c: 01 00 00 CB 25 F0 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 11 0E 16 [08:55:28]RasterBufferAndPrint [08:55:28]line [08:55:28]line [08:55:28]line [08:55:28]line [08:55:28]line [08:55:28]written 0, free lines is 3603 [08:55:28]MH_Cut [08:55:28]Write to MH i2c: D1 01 00 D2 25 01 C9 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: D1 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: D1 01 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: D1 01 00 D2 25 00 C8 [08:55:28]Write to MH i2c: 01 00 00 D3 25 F8 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:29]*** Cut start [08:55:29]*** Partial cut [08:55:29]*** CUTSNS_PIN = 1 [08:55:29]*** CUTSNS_PIN = 0 [08:55:29]*** Brake cut motor [08:55:30]Read from MH i2c: 01 [08:55:30]MH_I2C_Read... [08:55:30]*** Stop cut motor [08:55:30]*** Cut end [08:55:30]Read from MH i2c: 01 07 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: 01 07 00 D3 25 00 00 00 00 00 FF 0F 0D [08:55:30]process_action print_text done [08:55:30]requested_data is exist [08:55:30]produce_requested_data [08:55:30]requested_item fm.sn is exist - process it [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 11 00 00 [08:55:30]Write to MH i2c: E2 08 00 D4 25 80 11 00 00 00 00 00 00 73 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 17 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 17 00 D4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [08:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:55:30]wFMCommunicate OK [08:55:30]requested_item fd.num is exist - process it [08:55:30]SAM_PROTO_GetFieldsCounters [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 13 00 00 [08:55:30]Write to MH i2c: E2 08 00 D5 25 80 13 00 00 00 00 00 00 76 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 62 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 62 00 D5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 85 [08:55: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 73 97 01 00 0E 04 04 00 64 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 [08:55:30]wFMCommunicate OK [08:55:30]SAM_PROTO_GetFieldsCounters done [08:55:30]requested_item shift.num is exist - process it [08:55:30]requested_item shift.opened is exist - process it [08:55:30]req_shift_opened [08:55:30]FM_GetShiftState [08:55:30]SAM_PROTO_GetShiftState [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 13 01 00 [08:55:30]Write to MH i2c: E2 08 00 D6 25 80 13 01 00 00 00 00 00 78 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 0E 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 0E 00 D6 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6A [08:55:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:55:30]wFMCommunicate OK [08:55:30]SAM_PROTO_GetShiftState done [08:55:30]FM_GetShiftState done [08:55:30]req_shift_opened done [08:55:30]requested_item shift.open_date is exist - process it [08:55:30]req_shift_open_date [08:55:30]req_shift_open_date done [08:55:30]produce_requested_data done [08:55:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:55:30]process_action_free print_text [08:55:30]json_value_free [08:55:30]json_value_free done [08:55:30]process_json_proto returns [08:55:30]Send response to host [08:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:55:30]free response buf [08:55:30]execute_script done [08:55:30]execute_script returns [08:55:30]free content buf [08:55:30]Sock 9.Close socket [08:55:30]Sock 9.Thread stoped [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:19]accept exits with 7 [08:56:19]New connection [08:56:19]New thread 3067616612 created [08:56:19]Thread 3067473252 joined [08:56:19]Waiting for new connection... [08:56:19] Sock 7.Parse request [08:56:19]Sock 7.Check first char [08:56:19]Sock 7.First char is OK [08:56:19]request: POST /json_proto HTTP/1.0 [08:56:19]Method: POST [08:56:19]URL: /json_proto [08:56:19]Method is POST - this is cgi request [08:56:19]url: /json_proto [08:56:19]query_string will be loaded in cgi processing [08:56:19]execute_cgi json_proto POST (null) [08:56:19]execute_cgi path=json_proto method=POST [08:56:19]POST find Content-Length [08:56:19]Host: 172.17.38.133:8080 [08:56:19]Content-Length: 1206 [08:56:19]Content-Type: application/json [08:56:19] [08:56:19]POST finish read [08:56:19]Found Content-Length = 1206 [08:56: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673801\u000A22.06.2024 08:33\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.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:19]execute_script... [08:56: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673801\u000A22.06.2024 08:33\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.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:19]POST & json_proto [08:56:19]process_json_proto [08:56:19]json parsed OK: [08:56:19]protocol is kg_v1.0 [08:56:19]action value=print_text [08:56:19]process_action print_text [08:56:19]cmd_print_text [08:56:19]ExternCall_PrintAddStr [08:56:19]wPrintStart [08:56:19]Write to MH i2c: 01 00 00 D7 25 FC [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 FF 0F 11 [08:56:19]RasterBufferAndPrint [08:56:19]line *****ТОВАРНЫЙ ЧЕК***** [08:56:19]line АЗС 120 [08:56:19]line Партнер нефть [08:56:19]line 02508201610067 [08:56:19]line Кассир : Байбугуева Г. [08:56:19]line Счет N : (1)673801 [08:56:19]line 22.06.2024 08:33 [08:56:19]line ПРОДАЖА [08:56:19]line ТРК (МРК, ГНК): 32 [08:56:19]line Вид ГСМ : 2710124130 [08:56:19]line Аи-92-К-5 [08:56:19]line 15.000 x 66.40 [08:56:19]line ИТОГ: 996.00 [08:56:19]line Тип оплаты: Талоны: Топливная Карта [08:56:19]line 00562 [08:56:19]line ______________________ [08:56:19]line (подпись) [08:56:19]written 0, free lines is 4095 [08:56:19]Write to MH i2c: 01 00 00 EB 25 10 [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 11 0E 36 [08:56:19]RasterBufferAndPrint [08:56:19]line [08:56:19]line [08:56:19]line [08:56:19]line [08:56:19]line [08:56:19]written 0, free lines is 3603 [08:56:19]MH_Cut [08:56:19]Write to MH i2c: D1 01 00 F2 25 01 E9 [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: D1 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: D1 01 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: D1 01 00 F2 25 00 E8 [08:56:19]Write to MH i2c: 01 00 00 F3 25 18 [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:20]*** Cut start [08:56:20]*** Partial cut [08:56:20]*** CUTSNS_PIN = 1 [08:56:20]*** CUTSNS_PIN = 0 [08:56:20]*** Brake cut motor [08:56:21]Read from MH i2c: 01 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: 01 07 00 [08:56:21]MH_I2C_Read... [08:56:21]*** Stop cut motor [08:56:21]*** Cut end [08:56:21]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 FF 0F 2D [08:56:21]process_action print_text done [08:56:21]requested_data is exist [08:56:21]produce_requested_data [08:56:21]requested_item fm.sn is exist - process it [08:56:21]wFMCommunicate request_size=4 [08:56:21]MH_SAM_APDU [08:56:21]CAPDU: 80 11 00 00 [08:56:21]Write to MH i2c: E2 08 00 F4 25 80 11 00 00 00 00 00 00 93 [08:56:21]Write i2c OK [08:56:21]MH_I2C_Read... [08:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:21]Read from MH i2c: E2 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 17 00 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 17 00 F4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [08:56:21]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:21]wFMCommunicate OK [08:56:21]requested_item fd.num is exist - process it [08:56:21]SAM_PROTO_GetFieldsCounters [08:56:21]wFMCommunicate request_size=4 [08:56:21]MH_SAM_APDU [08:56:21]CAPDU: 80 13 00 00 [08:56:21]Write to MH i2c: E2 08 00 F5 25 80 13 00 00 00 00 00 00 96 [08:56:21]Write i2c OK [08:56:21]MH_I2C_Read... [08:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:21]Read from MH i2c: E2 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 62 00 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 62 00 F5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A5 [08:56: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 73 97 01 00 0E 04 04 00 64 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 [08:56:21]wFMCommunicate OK [08:56:21]SAM_PROTO_GetFieldsCounters done [08:56:21]requested_item shift.num is exist - process it [08:56:21]requested_item shift.opened is exist - process it [08:56:21]req_shift_opened [08:56:21]FM_GetShiftState [08:56:21]SAM_PROTO_GetShiftState [08:56:21]wFMCommunicate request_size=4 [08:56:21]MH_SAM_APDU [08:56:21]CAPDU: 80 13 01 00 [08:56:21]Write to MH i2c: E2 08 00 F6 25 80 13 01 00 00 00 00 00 98 [08:56:21]Write i2c OK [08:56:21]MH_I2C_Read... [08:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:21]Read from MH i2c: E2 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 0E 00 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 0E 00 F6 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8A [08:56:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [08:56:21]wFMCommunicate OK [08:56:21]SAM_PROTO_GetShiftState done [08:56:21]FM_GetShiftState done [08:56:21]req_shift_opened done [08:56:21]requested_item shift.open_date is exist - process it [08:56:21]req_shift_open_date [08:56:21]req_shift_open_date done [08:56:21]produce_requested_data done [08:56:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [08:56:21]process_action_free print_text [08:56:21]json_value_free [08:56:21]json_value_free done [08:56:21]process_json_proto returns [08:56:21]Send response to host [08:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104307,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [08:56:21]free response buf [08:56:21]execute_script done [08:56:21]execute_script returns [08:56:21]free content buf [08:56:21]Sock 7.Close socket [08:56:21]Sock 7.Thread stoped [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57: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:11]accept exits with 9 [09:00:11]New connection [09:00:11]New thread 3067473252 created [09:00:11]Thread 3067616612 joined [09:00:11]Waiting for new connection... [09:00:11] Sock 9.Parse request [09:00:11]Sock 9.Check first char [09:00:11]Sock 9.First char is OK [09:00:11]request: POST /json_proto HTTP/1.0 [09:00:11]Method: POST [09:00:11]URL: /json_proto [09:00:11]Method is POST - this is cgi request [09:00:11]url: /json_proto [09:00:11]query_string will be loaded in cgi processing [09:00:11]execute_cgi json_proto POST (null) [09:00:11]execute_cgi path=json_proto method=POST [09:00:11]POST find Content-Length [09:00:11]Host: 172.17.38.133:8080 [09:00:11]Content-Length: 824 [09:00:11]Content-Type: application/json [09:00:11] [09:00:11]POST finish read [09:00:11]Found Content-Length = 824 [09:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673802", "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" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:11]execute_script... [09:00:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673802", "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" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:11]POST & json_proto [09:00:11]process_json_proto [09:00:11]json parsed OK: [09:00:11]protocol is kg_v1.0 [09:00:11]action value=close_receipt [09:00:11]process_action close_receipt [09:00:11]cmd_close_receipt [09:00:11]MH_GetDate [09:00:11]Write to MH i2c: F0 00 00 F7 25 0B [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: F0 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: F0 09 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: F0 09 00 F7 25 00 9F 92 76 66 BD 8F 7C 64 4D [09:00:11]GetLastDocTimeStamp 1719046478 [09:00:11]current date 1719046815 [09:00:11]FM_GetShiftState [09:00:11]SAM_PROTO_GetShiftState [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 13 01 00 [09:00:11]Write to MH i2c: E2 08 00 F8 25 80 13 01 00 00 00 00 00 9A [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0E 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0E 00 F8 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [09:00:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:00:11]wFMCommunicate OK [09:00:11]SAM_PROTO_GetShiftState done [09:00:11]FM_GetShiftState done [09:00:11]opened in 1719016176 [09:00:11]opened+sec_in_day 1719102576 [09:00:11]quantity*price = 218700 [09:00:11]sum+1 = 218701 [09:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 0.00 Безнал.: 2187.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 22.06.2024 09:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104308 ФПД: 214588031843422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090015&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104308&fm=214588031843422&tin=02508201610067®Number=0000000000092785&sum=218700 [09:00:12]StoreToDocumentArchive [09:00:12]shift 356 fd 104308 [09:00:12]save to /storage/0356/doc_00104308 [09:00:12]save last doc name /storage/0356/doc_00104308 to /storage/kkm_last_doc_name [09:00:12]save OK [09:00:12]Clear old archive folders... [09:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:00:12]tlvbuf is 00690A60 [09:00:12]SAM_PROTO_ClearQueue [09:00:12]wFMCommunicate request_size=4 [09:00:12]MH_SAM_APDU [09:00:12]CAPDU: 80 09 00 00 [09:00:12]Write to MH i2c: E2 08 00 05 26 80 09 00 00 00 00 00 00 9D [09:00:12]Write i2c OK [09:00:12]MH_I2C_Read... [09:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:12]Read from MH i2c: E2 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [09:00:12]RAPDU: 90 00 [09:00:12]wFMCommunicate OK [09:00:12]SAM_PROTO_ClearQueue done [09:00:12]KKMCreateOFDPacket [09:00:12]OFDProtocolAddRootSTLVToBuf [09:00:12]FM_MakeSignedData [09:00:12]FM_MakeSignedData [09:00:12]SAM_PROTO_SignData [09:00:12]wFMCommunicate request_size=4 [09:00:12]MH_SAM_APDU [09:00:12]CAPDU: 80 0D 01 02 [09:00:12]Write to MH i2c: E2 08 00 06 26 80 0D 01 02 00 00 00 00 A5 [09:00:12]Write i2c OK [09:00:12]MH_I2C_Read... [09:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:12]Read from MH i2c: E2 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [09:00:12]RAPDU: 90 00 [09:00:12]wFMCommunicate OK [09:00:12]wFMCommunicate request_size=255 [09:00:12]MH_SAM_APDU [09:00: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 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9F 92 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [09:00:12]Write to MH i2c: E2 02 01 07 26 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9F 92 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 6A [09:00:12]Write i2c OK [09:00:12]MH_I2C_Read... [09:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:12]Read from MH i2c: E2 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [09:00:12]RAPDU: 90 00 [09:00:12]wFMCommunicate OK [09:00:12]wFMCommunicate request_size=11 [09:00:12]MH_SAM_APDU [09:00:12]CAPDU: 80 0D 02 02 06 C3 2A AB 69 3C 5E [09:00:12]Write to MH i2c: E2 0E 00 08 26 80 0D 02 02 06 00 C3 2A AB 69 3C 5E 00 00 4F [09:00:12]Write i2c OK [09:00:12]MH_I2C_Read... [09:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:12]Read from MH i2c: E2 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [09:00:12]RAPDU: 90 00 [09:00:12]wFMCommunicate OK [09:00:12]wFMCommunicate request_size=4 [09:00:12]MH_SAM_APDU [09:00:12]CAPDU: 80 0D 03 02 [09:00:12]Write to MH i2c: E2 08 00 09 26 80 0D 03 02 00 00 00 00 AA [09:00:12]Write i2c OK [09:00:12]MH_I2C_Read... [09:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:12]Read from MH i2c: E2 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 0B 00 [09:00:12]MH_I2C_Read... [09:00:12]Read from MH i2c: E2 0B 00 09 26 00 EB 08 B8 D4 72 7B 82 D5 90 00 6E [09:00:12]RAPDU: EB 08 B8 D4 72 7B 82 D5 90 00 [09:00:12]wFMCommunicate OK [09:00:12]SAM_PROTO_SignData done [09:00:12]FM_MakeSignedData done [09:00:12]CreateOFDProtocolMessage [09:00:12]wFMCommunicate request_size=4 [09:00:12]MH_SAM_APDU [09:00:13]CAPDU: 80 11 00 00 [09:00:13]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [09:00: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:00:13]wFMCommunicate OK [09:00:13]CreateOFDProtocolMessage done [09:00:13]OFDSenderStorePacket 104308 [09:00:13]StoreOFDPacket docnum=104308 [09:00: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 20 C0 08 01 10 7D 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9F 92 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 2A AB 69 3C 5E EB 08 B8 D4 72 7B 82 D5 [09:00:13]CheckFolder [09:00:13]dirname=/storage/ofd_packets [09:00:13]CheckFolder done [09:00:13]ProducePacketName [09:00:13]name=ofd_packets/00104308 [09:00:13]NVStorageSaveData ofd_packets/00104308 [09:00:13]File name is /storage/ofd_packets/00104308 [09:00:13]Write 302 bytes [09:00:13]NVStorageSaveData done [09:00:13]OFDSenderStorePacket done [09:00:13]KKMCreateOFDPacket done [09:00:13]NVStorageSaveData kkm_last_timestamp [09:00:13]File name is /storage/kkm_last_timestamp [09:00:13]Write 4 bytes [09:00:13]NVStorageSaveData done [09:00:13]ExternCall_PrintAddStr [09:00:13]wPrintStart [09:00:13]Write to MH i2c: 01 00 00 0B 26 31 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 0B 26 00 00 00 00 00 FF 0F 46 [09:00:13]RasterBufferAndPrint [09:00:13]line Счет N : (1)673802 [09:00:13]line ИНН: 02508201610067 [09:00:13]line Контрольно-Кассовый Чек [09:00:13]line ПРОДАЖА [09:00:13]line ТРК (МРК, ГНК) : 11 [09:00:13]line Товар: 2710194210 [09:00:13]line ДТ(л)-К-5 [09:00:13]line 30.000 * 72.90 [09:00:13]line = 2187.00 [09:00:13]line НДС 12% НСП 1% [09:00:13]line > о реализуемом товаре [09:00:13]line ИТОГО: 2187.00 [09:00:13]line НСП 1% : 19.35 [09:00:13]line НДС 12% : 232.25 [09:00:13]line Наличными: 0.00 [09:00:13]line Безнал.: 2187.00 [09:00:13]line Место: АЗС № 120 "Партнер Нефть" [09:00:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:00:13]line СНО: Общий режим [09:00:13]line Чек 41 22.06.2024 09:00 [09:00:13]line Смена: 356 ФФД: 1.0 [09:00:13]line ЗНМ: 0300000164 [09:00:13]line РНМ: 0000000000092785 [09:00:13]line Версия ККМ: 001 [09:00:13]line Платежная система: Бакай Банк [09:00:13]line ФМ: 0000000000875093 [09:00:13]line ФД: 104308 [09:00:13]line ФПД: 214588031843422 [09:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090015&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104308&fm=214588031843422&tin=02508201610067®Number=0000000000092785&sum=218700 [09:00:13]OFD Sender: Processing packet 104308 [packets to send 17, broken 16] [09:00:13]ProducePacketName [09:00:13]name=ofd_packets/00104308 [09:00:13]OFD Sender: To server: pG, [09:00:13]CommunicateWithHost lk.salyk.kg:30040 [09:00:13]ConnectInit lk.salyk.kg [09:00:13]written 0, free lines is 4095 [09:00:13]Connected sock=10 [09:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 20 C0 08 01 10 7D 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9F 92 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 2A AB 69 3C 5E EB 08 B8 D4 72 7B 82 D5 [09:00: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 DA 8F 47 00 65 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 97 01 00 F4 03 04 00 1F 39 76 66 B6 04 01 00 00 29 1C F4 C7 E3 57 94 04 [09:00:13]CommunicateWithHost err = 0 [09:00:13]CheckOFDResponse [09:00:13]1017 (14) - 77093643461234 [09:00:13]1041 (16) - 0000000000875093 [09:00:13]1040 (4) - 104308 [09:00:13]1012 (4) - 22.06.2024 02:38 [09:00:13]1206 (1) - 0 [09:00:13]OFD Sender: Remove packet 104308 [09:00:13]ProducePacketName [09:00:13]name=ofd_packets/00104308 [09:00:13]NVStorageDeleteData [09:00:13]Write to MH i2c: 01 00 00 35 26 5B [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 35 26 00 00 00 00 00 E5 0C 53 [09:00:13]RasterBufferAndPrint [09:00:13]line [09:00:13]line [09:00:13]line [09:00:13]line [09:00:13]line [09:00:13]written 0, free lines is 3306 [09:00:13]MH_Cut [09:00:13]Write to MH i2c: D1 01 00 3C 26 01 34 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: D1 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: D1 01 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: D1 01 00 3C 26 00 33 [09:00:13]Write to MH i2c: 01 00 00 3D 26 63 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:14]OFD Sender: No OFD packet to send [09:00:14]*** Cut start [09:00:14]*** Partial cut [09:00:14]*** CUTSNS_PIN = 1 [09:00:14]*** CUTSNS_PIN = 0 [09:00:14]*** Brake cut motor [09:00:15]Read from MH i2c: 01 [09:00:15]MH_I2C_Read... [09:00:15]*** Stop cut motor [09:00:15]*** Cut end [09:00:15]Read from MH i2c: 01 07 00 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: 01 07 00 3D 26 00 00 00 00 00 FF 0F 78 [09:00:15]process_action close_receipt done [09:00:15]requested_data is exist [09:00:15]produce_requested_data [09:00:15]requested_item fm.sn is exist - process it [09:00:15]wFMCommunicate request_size=4 [09:00:15]MH_SAM_APDU [09:00:15]CAPDU: 80 11 00 00 [09:00:15]Write to MH i2c: E2 08 00 3E 26 80 11 00 00 00 00 00 00 DE [09:00:15]Write i2c OK [09:00:15]MH_I2C_Read... [09:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:15]Read from MH i2c: E2 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 17 00 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 17 00 3E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [09:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:00:15]wFMCommunicate OK [09:00:15]requested_item fd.num is exist - process it [09:00:15]SAM_PROTO_GetFieldsCounters [09:00:15]wFMCommunicate request_size=4 [09:00:15]MH_SAM_APDU [09:00:15]CAPDU: 80 13 00 00 [09:00:15]Write to MH i2c: E2 08 00 3F 26 80 13 00 00 00 00 00 00 E1 [09:00:15]Write i2c OK [09:00:15]MH_I2C_Read... [09:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:15]Read from MH i2c: E2 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 62 00 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 62 00 3F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F4 [09:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:15]wFMCommunicate OK [09:00:15]SAM_PROTO_GetFieldsCounters done [09:00:15]requested_item shift.num is exist - process it [09:00:15]requested_item shift.opened is exist - process it [09:00:15]req_shift_opened [09:00:15]FM_GetShiftState [09:00:15]SAM_PROTO_GetShiftState [09:00:15]wFMCommunicate request_size=4 [09:00:15]MH_SAM_APDU [09:00:15]CAPDU: 80 13 01 00 [09:00:15]Write to MH i2c: E2 08 00 40 26 80 13 01 00 00 00 00 00 E3 [09:00:15]Write i2c OK [09:00:15]MH_I2C_Read... [09:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:15]Read from MH i2c: E2 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 0E 00 [09:00:15]MH_I2C_Read... [09:00:15]Read from MH i2c: E2 0E 00 40 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D5 [09:00:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:00:15]wFMCommunicate OK [09:00:15]SAM_PROTO_GetShiftState done [09:00:15]FM_GetShiftState done [09:00:15]req_shift_opened done [09:00:15]requested_item shift.open_date is exist - process it [09:00:15]req_shift_open_date [09:00:15]req_shift_open_date done [09:00:15]produce_requested_data done [09:00:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104308,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:00:15]process_action_free close_receipt [09:00:15]json_value_free [09:00:15]json_value_free done [09:00:15]process_json_proto returns [09:00:15]Send response to host [09:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104308,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:00:15]free response buf [09:00:15]execute_script done [09:00:15]execute_script returns [09:00:15]free content buf [09:00:15]Sock 9.Close socket [09:00:15]Sock 9.Thread stoped [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:11]accept exits with 7 [09:02:11]New connection [09:02:11]New thread 3067616612 created [09:02:11]Thread 3067473252 joined [09:02:11]Waiting for new connection... [09:02:11] Sock 7.Parse request [09:02:11]Sock 7.Check first char [09:02:11]Sock 7.First char is OK [09:02:11]request: POST /json_proto HTTP/1.0 [09:02:11]Method: POST [09:02:11]URL: /json_proto [09:02:11]Method is POST - this is cgi request [09:02:11]url: /json_proto [09:02:11]query_string will be loaded in cgi processing [09:02:11]execute_cgi json_proto POST (null) [09:02:11]execute_cgi path=json_proto method=POST [09:02:11]POST find Content-Length [09:02:11]Host: 172.17.38.133:8080 [09:02:11]Content-Length: 800 [09:02:11]Content-Type: application/json [09:02:11] [09:02:11]POST finish read [09:02:11]Found Content-Length = 800 [09:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673803", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]execute_script... [09:02: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)673803", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]POST & json_proto [09:02:11]process_json_proto [09:02:11]json parsed OK: [09:02:11]protocol is kg_v1.0 [09:02:11]action value=close_receipt [09:02:11]process_action close_receipt [09:02:11]cmd_close_receipt [09:02:11]MH_GetDate [09:02:11]Write to MH i2c: F0 00 00 41 26 56 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 09 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 09 00 41 26 00 17 93 76 66 BD 8F 7C 64 11 [09:02:11]GetLastDocTimeStamp 1719046815 [09:02:11]current date 1719046935 [09:02:11]FM_GetShiftState [09:02:11]SAM_PROTO_GetShiftState [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 01 00 [09:02:11]Write to MH i2c: E2 08 00 42 26 80 13 01 00 00 00 00 00 E5 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 42 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D7 [09:02:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetShiftState done [09:02:11]FM_GetShiftState done [09:02:11]opened in 1719016176 [09:02:11]opened+sec_in_day 1719102576 [09:02:11]quantity*price = 50030 [09:02:11]sum+1 = 50031 [09:02:11]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 СНО: Общий режим Чек 42 22.06.2024 09:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104309 ФПД: 188685337948547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104309&fm=188685337948547&tin=02508201610067®Number=0000000000092785&sum=50030 [09:02:12]StoreToDocumentArchive [09:02:12]shift 356 fd 104309 [09:02:12]save to /storage/0356/doc_00104309 [09:02:12]save last doc name /storage/0356/doc_00104309 to /storage/kkm_last_doc_name [09:02:12]save OK [09:02:12]Clear old archive folders... [09:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:12]tlvbuf is 0067C230 [09:02:12]SAM_PROTO_ClearQueue [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 09 00 00 [09:02:12]Write to MH i2c: E2 08 00 4F 26 80 09 00 00 00 00 00 00 E7 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 4F 26 00 90 00 E9 [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_ClearQueue done [09:02:12]KKMCreateOFDPacket [09:02:12]OFDProtocolAddRootSTLVToBuf [09:02:12]FM_MakeSignedData [09:02:12]FM_MakeSignedData [09:02:12]SAM_PROTO_SignData [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 0D 01 02 [09:02:12]Write to MH i2c: E2 08 00 50 26 80 0D 01 02 00 00 00 00 EF [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 50 26 00 90 00 EA [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=255 [09:02:12]MH_SAM_APDU [09:02: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 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 2A 00 00 00 F4 03 04 00 17 93 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AB [09:02:12]Write to MH i2c: E2 02 01 51 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 17 93 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AB 00 00 7A [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 51 26 00 90 00 EB [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=10 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 0D 02 02 05 9B BA 8A F1 83 [09:02:12]Write to MH i2c: E2 0D 00 52 26 80 0D 02 02 05 00 9B BA 8A F1 83 00 00 4F [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 0D 03 02 [09:02:12]Write to MH i2c: E2 08 00 53 26 80 0D 03 02 00 00 00 00 F4 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0B 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0B 00 53 26 00 0F 1A EA 09 40 27 56 34 90 00 02 [09:02:12]RAPDU: 0F 1A EA 09 40 27 56 34 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_SignData done [09:02:12]FM_MakeSignedData done [09:02:12]CreateOFDProtocolMessage [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 11 00 00 [09:02:12]Write to MH i2c: E2 08 00 54 26 80 11 00 00 00 00 00 00 F4 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 54 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [09:02:12]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:12]wFMCommunicate OK [09:02:12]CreateOFDProtocolMessage done [09:02:12]OFDSenderStorePacket 104309 [09:02:12]StoreOFDPacket docnum=104309 [09:02: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 DF F8 07 01 ED 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 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 2A 00 00 00 F4 03 04 00 17 93 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AB 9B BA 8A F1 83 0F 1A EA 09 40 27 56 34 [09:02:12]CheckFolder [09:02:12]dirname=/storage/ofd_packets [09:02:12]CheckFolder done [09:02:12]ProducePacketName [09:02:12]name=ofd_packets/00104309 [09:02:12]NVStorageSaveData ofd_packets/00104309 [09:02:12]File name is /storage/ofd_packets/00104309 [09:02:12]Write 301 bytes [09:02:12]NVStorageSaveData done [09:02:12]OFDSenderStorePacket done [09:02:12]KKMCreateOFDPacket done [09:02:12]NVStorageSaveData kkm_last_timestamp [09:02:12]File name is /storage/kkm_last_timestamp [09:02:12]Write 4 bytes [09:02:12]NVStorageSaveData done [09:02:12]ExternCall_PrintAddStr [09:02:12]wPrintStart [09:02:12]Write to MH i2c: 01 00 00 55 26 7B [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 55 26 00 00 00 00 00 FF 0F 90 [09:02:12]RasterBufferAndPrint [09:02:12]line Счет N : (1)673803 [09:02:12]line ИНН: 02508201610067 [09:02:12]line Контрольно-Кассовый Чек [09:02:12]line ПРОДАЖА [09:02:12]line ТРК (МРК, ГНК) : 41 [09:02:12]line Товар: 2710124500 [09:02:12]line Аи-95-К-5 [09:02:12]line 6.770 * 73.90 [09:02:12]line = 500.30 [09:02:12]line НДС 12% НСП 1% [09:02:12]line > о реализуемом товаре [09:02:12]line ИТОГО: 500.30 [09:02:12]line НСП 1% : 4.43 [09:02:12]line НДС 12% : 53.13 [09:02:12]line Наличными: 0.00 [09:02:12]line Безнал.: 500.30 [09:02:12]line Место: АЗС № 120 "Партнер Нефть" [09:02:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:02:12]line СНО: Общий режим [09:02:12]line Чек 42 22.06.2024 09:02 [09:02:12]line Смена: 356 ФФД: 1.0 [09:02:12]line ЗНМ: 0300000164 [09:02:12]line РНМ: 0000000000092785 [09:02:12]line Версия ККМ: 001 [09:02:12]line Платежная система: O! деньги [09:02:12]line ФМ: 0000000000875093 [09:02:12]line ФД: 104309 [09:02:12]line ФПД: 188685337948547 [09:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104309&fm=188685337948547&tin=02508201610067®Number=0000000000092785&sum=50030 [09:02:13]written 0, free lines is 4095 [09:02:13]OFD Sender: Processing packet 104309 [packets to send 17, broken 16] [09:02:13]ProducePacketName [09:02:13]name=ofd_packets/00104309 [09:02:13]OFD Sender: To server: pG, [09:02:13]CommunicateWithHost lk.salyk.kg:30040 [09:02:13]ConnectInit lk.salyk.kg [09:02:13]Connected sock=9 [09:02: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 DF F8 07 01 ED 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 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 2A 00 00 00 F4 03 04 00 17 93 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 AB 9B BA 8A F1 83 0F 1A EA 09 40 27 56 34 [09:02: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 1F FE 47 00 5D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 96 39 76 66 B6 04 01 00 00 79 8B B4 4C 7B 0A D7 56 [09:02:13]CommunicateWithHost err = 0 [09:02:13]CheckOFDResponse [09:02:13]1017 (14) - 77093643461234 [09:02:13]1041 (16) - 0000000000875093 [09:02:13]1040 (4) - 104309 [09:02:13]1012 (4) - 22.06.2024 02:40 [09:02:13]1206 (1) - 0 [09:02:13]OFD Sender: Remove packet 104309 [09:02:13]ProducePacketName [09:02:13]name=ofd_packets/00104309 [09:02:13]NVStorageDeleteData [09:02:13]Write to MH i2c: 01 00 00 7F 26 A5 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 7F 26 00 00 00 00 00 E6 0C 9E [09:02:13]RasterBufferAndPrint [09:02:13]line [09:02:13]line [09:02:13]line [09:02:13]line [09:02:13]line [09:02:13]written 0, free lines is 3309 [09:02:13]MH_Cut [09:02:13]Write to MH i2c: D1 01 00 86 26 01 7E [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: D1 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: D1 01 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: D1 01 00 86 26 00 7D [09:02:13]Write to MH i2c: 01 00 00 87 26 AD [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]OFD Sender: No OFD packet to send [09:02:14]*** Cut start [09:02:14]*** Partial cut [09:02:14]*** CUTSNS_PIN = 1 [09:02:14]*** CUTSNS_PIN = 0 [09:02:14]*** Brake cut motor [09:02:14]Read from MH i2c: 01 [09:02:14]MH_I2C_Read... [09:02:14]*** Stop cut motor [09:02:14]*** Cut end [09:02:14]Read from MH i2c: 01 07 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 07 00 87 26 00 00 00 00 00 FF 0F C2 [09:02:14]process_action close_receipt done [09:02:14]requested_data is exist [09:02:14]produce_requested_data [09:02:14]requested_item fm.sn is exist - process it [09:02:14]wFMCommunicate request_size=4 [09:02:14]MH_SAM_APDU [09:02:14]CAPDU: 80 11 00 00 [09:02:14]Write to MH i2c: E2 08 00 88 26 80 11 00 00 00 00 00 00 28 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:14]Read from MH i2c: E2 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 17 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 17 00 88 26 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:02:14]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:14]wFMCommunicate OK [09:02:14]requested_item fd.num is exist - process it [09:02:14]SAM_PROTO_GetFieldsCounters [09:02:14]wFMCommunicate request_size=4 [09:02:14]MH_SAM_APDU [09:02:14]CAPDU: 80 13 00 00 [09:02:14]Write to MH i2c: E2 08 00 89 26 80 13 00 00 00 00 00 00 2B [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 62 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 62 00 89 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 42 [09:02: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 75 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_GetFieldsCounters done [09:02:15]requested_item shift.num is exist - process it [09:02:15]requested_item shift.opened is exist - process it [09:02:15]req_shift_opened [09:02:15]FM_GetShiftState [09:02:15]SAM_PROTO_GetShiftState [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 13 01 00 [09:02:15]Write to MH i2c: E2 08 00 8A 26 80 13 01 00 00 00 00 00 2D [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0E 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0E 00 8A 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 1F [09:02:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_GetShiftState done [09:02:15]FM_GetShiftState done [09:02:15]req_shift_opened done [09:02:15]requested_item shift.open_date is exist - process it [09:02:15]req_shift_open_date [09:02:15]req_shift_open_date done [09:02:15]produce_requested_data done [09:02:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104309,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:02:15]process_action_free close_receipt [09:02:15]json_value_free [09:02:15]json_value_free done [09:02:15]process_json_proto returns [09:02:15]Send response to host [09:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104309,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:02:15]free response buf [09:02:15]execute_script done [09:02:15]execute_script returns [09:02:15]free content buf [09:02:15]Sock 7.Close socket [09:02:15]Sock 7.Thread stoped [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:53]accept exits with 10 [09:08:53]New connection [09:08:53]New thread 3067473252 created [09:08:53]Thread 3067616612 joined [09:08:53]Waiting for new connection... [09:08:53] Sock 10.Parse request [09:08:53]Sock 10.Check first char [09:08:53]Sock 10.First char is OK [09:08:53]request: POST /json_proto HTTP/1.0 [09:08:53]Method: POST [09:08:53]URL: /json_proto [09:08:53]Method is POST - this is cgi request [09:08:53]url: /json_proto [09:08:53]query_string will be loaded in cgi processing [09:08:53]execute_cgi json_proto POST (null) [09:08:53]execute_cgi path=json_proto method=POST [09:08:53]POST find Content-Length [09:08:53]Host: 172.17.38.133:8080 [09:08:53]Content-Length: 819 [09:08:53]Content-Type: application/json [09:08:53] [09:08:53]POST finish read [09:08:53]Found Content-Length = 819 [09:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673804", "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" ] } } [09:08:53]execute_script... [09:08: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)673804", "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" ] } } [09:08:53]POST & json_proto [09:08:53]process_json_proto [09:08:53]json parsed OK: [09:08:53]protocol is kg_v1.0 [09:08:53]action value=close_receipt [09:08:53]process_action close_receipt [09:08:53]cmd_close_receipt [09:08:53]MH_GetDate [09:08:53]Write to MH i2c: F0 00 00 8B 26 A0 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 09 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 09 00 8B 26 00 A9 94 76 66 BD 8F 7C 64 EE [09:08:53]GetLastDocTimeStamp 1719046935 [09:08:53]current date 1719047337 [09:08:53]FM_GetShiftState [09:08:53]SAM_PROTO_GetShiftState [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 13 01 00 [09:08:53]Write to MH i2c: E2 08 00 8C 26 80 13 01 00 00 00 00 00 2F [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0E 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0E 00 8C 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 21 [09:08:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_GetShiftState done [09:08:53]FM_GetShiftState done [09:08:53]opened in 1719016176 [09:08:53]opened+sec_in_day 1719102576 [09:08:53]quantity*price = 100064 [09:08:53]sum+1 = 100066 [09:08:53]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 СНО: Общий режим Чек 43 22.06.2024 09:08 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104310 ФПД: 67655536189615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090857&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104310&fm=67655536189615&tin=02508201610067®Number=0000000000092785&sum=100065 [09:08:54]StoreToDocumentArchive [09:08:54]shift 356 fd 104310 [09:08:54]save to /storage/0356/doc_00104310 [09:08:54]save last doc name /storage/0356/doc_00104310 to /storage/kkm_last_doc_name [09:08:54]save OK [09:08:54]Clear old archive folders... [09:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:54]tlvbuf is 0069D100 [09:08:54]SAM_PROTO_ClearQueue [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 09 00 00 [09:08:54]Write to MH i2c: E2 08 00 99 26 80 09 00 00 00 00 00 00 31 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [09:08:54]RAPDU: 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_ClearQueue done [09:08:54]KKMCreateOFDPacket [09:08:54]OFDProtocolAddRootSTLVToBuf [09:08:54]FM_MakeSignedData [09:08:54]FM_MakeSignedData [09:08:54]SAM_PROTO_SignData [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 0D 01 02 [09:08:54]Write to MH i2c: E2 08 00 9A 26 80 0D 01 02 00 00 00 00 39 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [09:08:54]RAPDU: 90 00 [09:08:54]wFMCommunicate OK [09:08:54]wFMCommunicate request_size=255 [09:08:54]MH_SAM_APDU [09:08: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 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 2B 00 00 00 F4 03 04 00 A9 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3D [09:08:54]Write to MH i2c: E2 02 01 9B 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2B 00 00 00 F4 03 04 00 A9 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3D 00 00 B9 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 9B 26 00 90 00 35 [09:08:54]RAPDU: 90 00 [09:08:54]wFMCommunicate OK [09:08:54]wFMCommunicate request_size=10 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 0D 02 02 05 88 48 33 A0 AF [09:08:54]Write to MH i2c: E2 0D 00 9C 26 80 0D 02 02 05 00 88 48 33 A0 AF 00 00 98 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [09:08:54]RAPDU: 90 00 [09:08:54]wFMCommunicate OK [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 0D 03 02 [09:08:54]Write to MH i2c: E2 08 00 9D 26 80 0D 03 02 00 00 00 00 3E [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0B 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0B 00 9D 26 00 F7 40 F2 95 6F 52 50 33 90 00 41 [09:08:54]RAPDU: F7 40 F2 95 6F 52 50 33 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_SignData done [09:08:54]FM_MakeSignedData done [09:08:54]CreateOFDProtocolMessage [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 11 00 00 [09:08:54]Write to MH i2c: E2 08 00 9E 26 80 11 00 00 00 00 00 00 3E [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 17 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 17 00 9E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [09:08:54]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:54]wFMCommunicate OK [09:08:54]CreateOFDProtocolMessage done [09:08:54]OFDSenderStorePacket 104310 [09:08:54]StoreOFDPacket docnum=104310 [09:08: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 11 88 07 01 11 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 A9 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3D 88 48 33 A0 AF F7 40 F2 95 6F 52 50 33 [09:08:54]CheckFolder [09:08:54]dirname=/storage/ofd_packets [09:08:54]CheckFolder done [09:08:54]ProducePacketName [09:08:54]name=ofd_packets/00104310 [09:08:54]NVStorageSaveData ofd_packets/00104310 [09:08:54]File name is /storage/ofd_packets/00104310 [09:08:54]Write 301 bytes [09:08:54]NVStorageSaveData done [09:08:54]OFDSenderStorePacket done [09:08:54]KKMCreateOFDPacket done [09:08:54]NVStorageSaveData kkm_last_timestamp [09:08:54]File name is /storage/kkm_last_timestamp [09:08:54]Write 4 bytes [09:08:54]NVStorageSaveData done [09:08:54]ExternCall_PrintAddStr [09:08:54]wPrintStart [09:08:54]Write to MH i2c: 01 00 00 9F 26 C5 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 9F 26 00 00 00 00 00 FF 0F DA [09:08:54]RasterBufferAndPrint [09:08:54]line Счет N : (1)673804 [09:08:54]line ИНН: 02508201610067 [09:08:54]line Контрольно-Кассовый Чек [09:08:54]line ПРОДАЖА [09:08:54]line ТРК (МРК, ГНК) : 42 [09:08:54]line Товар: 2710124130 [09:08:54]line Аи-92-К-5 [09:08:54]line 15.070 * 66.40 [09:08:54]line = 1000.65 [09:08:54]line НДС 12% НСП 1% [09:08:54]line > о реализуемом товаре [09:08:54]line ИТОГО: 1000.65 [09:08:54]line НСП 1% : 8.85 [09:08:54]line НДС 12% : 106.26 [09:08:54]line Наличными: 0.00 [09:08:54]line Безнал.: 1000.65 [09:08:54]line Место: АЗС № 120 "Партнер Нефть" [09:08:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:08:54]line СНО: Общий режим [09:08:54]line Чек 43 22.06.2024 09:08 [09:08:54]line Смена: 356 ФФД: 1.0 [09:08:54]line ЗНМ: 0300000164 [09:08:54]line РНМ: 0000000000092785 [09:08:54]line Версия ККМ: 001 [09:08:54]line Платежная система: Бакай Банк [09:08:54]line ФМ: 0000000000875093 [09:08:54]line ФД: 104310 [09:08:54]line ФПД: 67655536189615 [09:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090857&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104310&fm=67655536189615&tin=02508201610067®Number=0000000000092785&sum=100065 [09:08:55]OFD Sender: Processing packet 104310 [packets to send 17, broken 16] [09:08:55]ProducePacketName [09:08:55]name=ofd_packets/00104310 [09:08:55]OFD Sender: To server: pG, [09:08:55]CommunicateWithHost lk.salyk.kg:30040 [09:08:55]ConnectInit lk.salyk.kg [09:08:55]written 0, free lines is 4095 [09:08:55]Connected sock=7 [09:08: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 11 88 07 01 11 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 A9 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3D 88 48 33 A0 AF F7 40 F2 95 6F 52 50 33 [09:08: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 AB BA 47 00 59 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 76 97 01 00 F4 03 04 00 29 3B 76 66 B6 04 01 00 00 FD B8 EE D6 0E 05 89 34 [09:08:55]CommunicateWithHost err = 0 [09:08:55]CheckOFDResponse [09:08:55]1017 (14) - 77093643461234 [09:08:55]1041 (16) - 0000000000875093 [09:08:55]1040 (4) - 104310 [09:08:55]1012 (4) - 22.06.2024 02:47 [09:08:55]1206 (1) - 0 [09:08:55]OFD Sender: Remove packet 104310 [09:08:55]ProducePacketName [09:08:55]name=ofd_packets/00104310 [09:08:55]NVStorageDeleteData [09:08:55]Write to MH i2c: 01 00 00 C9 26 EF [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 C9 26 00 00 00 00 00 E4 0C E6 [09:08:55]RasterBufferAndPrint [09:08:55]line [09:08:55]line [09:08:55]line [09:08:55]line [09:08:55]line [09:08:55]written 0, free lines is 3307 [09:08:55]MH_Cut [09:08:55]Write to MH i2c: D1 01 00 D0 26 01 C8 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D1 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D1 01 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D1 01 00 D0 26 00 C7 [09:08:55]Write to MH i2c: 01 00 00 D1 26 F7 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:56]OFD Sender: No OFD packet to send [09:08:56]*** Cut start [09:08:56]*** Partial cut [09:08:56]*** CUTSNS_PIN = 1 [09:08:56]*** CUTSNS_PIN = 0 [09:08:56]*** Brake cut motor [09:08:57]Read from MH i2c: 01 [09:08:57]MH_I2C_Read... [09:08:57]*** Stop cut motor [09:08:57]*** Cut end [09:08:57]Read from MH i2c: 01 07 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: 01 07 00 D1 26 00 00 00 00 00 FF 0F 0C [09:08:57]process_action close_receipt done [09:08:57]requested_data is exist [09:08:57]produce_requested_data [09:08:57]requested_item fm.sn is exist - process it [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 11 00 00 [09:08:57]Write to MH i2c: E2 08 00 D2 26 80 11 00 00 00 00 00 00 72 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 D2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [09:08:57]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:57]wFMCommunicate OK [09:08:57]requested_item fd.num is exist - process it [09:08:57]SAM_PROTO_GetFieldsCounters [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 13 00 00 [09:08:57]Write to MH i2c: E2 08 00 D3 26 80 13 00 00 00 00 00 00 75 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 62 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 62 00 D3 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 90 [09:08: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 76 97 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_GetFieldsCounters done [09:08:57]requested_item shift.num is exist - process it [09:08:57]requested_item shift.opened is exist - process it [09:08:57]req_shift_opened [09:08:57]FM_GetShiftState [09:08:57]SAM_PROTO_GetShiftState [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 13 01 00 [09:08:57]Write to MH i2c: E2 08 00 D4 26 80 13 01 00 00 00 00 00 77 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 D4 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 69 [09:08:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_GetShiftState done [09:08:57]FM_GetShiftState done [09:08:57]req_shift_opened done [09:08:57]requested_item shift.open_date is exist - process it [09:08:57]req_shift_open_date [09:08:57]req_shift_open_date done [09:08:57]produce_requested_data done [09:08:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104310,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:08:57]process_action_free close_receipt [09:08:57]json_value_free [09:08:57]json_value_free done [09:08:57]process_json_proto returns [09:08:57]Send response to host [09:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104310,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:08:57]free response buf [09:08:57]execute_script done [09:08:57]execute_script returns [09:08:57]free content buf [09:08:57]Sock 10.Close socket [09:08:57]Sock 10.Thread stoped [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:38]accept exits with 9 [09:09:38]New connection [09:09:38]New thread 3067616612 created [09:09:38]Thread 3067473252 joined [09:09:38]Waiting for new connection... [09:09:38] Sock 9.Parse request [09:09:38]Sock 9.Check first char [09:09:38]Sock 9.First char is OK [09:09:38]request: POST /json_proto HTTP/1.0 [09:09:38]Method: POST [09:09:38]URL: /json_proto [09:09:38]Method is POST - this is cgi request [09:09:38]url: /json_proto [09:09:38]query_string will be loaded in cgi processing [09:09:38]execute_cgi json_proto POST (null) [09:09:38]execute_cgi path=json_proto method=POST [09:09:38]POST find Content-Length [09:09:38]Host: 172.17.38.133:8080 [09:09:38]Content-Length: 678 [09:09:38]Content-Type: application/json [09:09:38] [09:09:38]POST finish read [09:09:38]Found Content-Length = 678 [09:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673805", "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:09:38]execute_script... [09:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673805", "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:09:38]POST & json_proto [09:09:38]process_json_proto [09:09:38]json parsed OK: [09:09:38]protocol is kg_v1.0 [09:09:38]action value=close_receipt [09:09:38]process_action close_receipt [09:09:38]cmd_close_receipt [09:09:38]MH_GetDate [09:09:38]Write to MH i2c: F0 00 00 D5 26 EA [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 09 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 09 00 D5 26 00 D7 94 76 66 BD 8F 7C 64 66 [09:09:38]GetLastDocTimeStamp 1719047337 [09:09:38]current date 1719047383 [09:09:38]FM_GetShiftState [09:09:38]SAM_PROTO_GetShiftState [09:09:38]wFMCommunicate request_size=4 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 13 01 00 [09:09:38]Write to MH i2c: E2 08 00 D6 26 80 13 01 00 00 00 00 00 79 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 0E 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 0E 00 D6 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6B [09:09:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:09:38]wFMCommunicate OK [09:09:38]SAM_PROTO_GetShiftState done [09:09:38]FM_GetShiftState done [09:09:38]opened in 1719016176 [09:09:38]opened+sec_in_day 1719102576 [09:09:38]quantity*price = 70052 [09:09:38]sum+1 = 70053 [09:09:38]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 СНО: Общий режим Чек 44 22.06.2024 09:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104311 ФПД: 237432688897246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090943&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104311&fm=237432688897246&tin=02508201610067®Number=0000000000092785&sum=70000 [09:09:40]StoreToDocumentArchive [09:09:40]shift 356 fd 104311 [09:09:40]save to /storage/0356/doc_00104311 [09:09:40]save last doc name /storage/0356/doc_00104311 to /storage/kkm_last_doc_name [09:09:40]save OK [09:09:40]Clear old archive folders... [09:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:40]tlvbuf is 00690C30 [09:09:40]SAM_PROTO_ClearQueue [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 09 00 00 [09:09:40]Write to MH i2c: E2 08 00 E3 26 80 09 00 00 00 00 00 00 7B [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]SAM_PROTO_ClearQueue done [09:09:40]KKMCreateOFDPacket [09:09:40]OFDProtocolAddRootSTLVToBuf [09:09:40]FM_MakeSignedData [09:09:40]FM_MakeSignedData [09:09:40]SAM_PROTO_SignData [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 0D 01 02 [09:09:40]Write to MH i2c: E2 08 00 E4 26 80 0D 01 02 00 00 00 00 83 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]wFMCommunicate request_size=255 [09:09:40]MH_SAM_APDU [09:09: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 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 2C 00 00 00 F4 03 04 00 D7 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D7 [09:09:40]Write to MH i2c: E2 02 01 E5 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 D7 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D7 00 00 0D [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]wFMCommunicate request_size=10 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 0D 02 02 05 F1 9B 14 6C DE [09:09:40]Write to MH i2c: E2 0D 00 E6 26 80 0D 02 02 05 00 F1 9B 14 6C DE 00 00 7A [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 0D 03 02 [09:09:40]Write to MH i2c: E2 08 00 E7 26 80 0D 03 02 00 00 00 00 88 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 0B 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 0B 00 E7 26 00 A0 96 27 56 61 B6 64 7B 90 00 32 [09:09:40]RAPDU: A0 96 27 56 61 B6 64 7B 90 00 [09:09:40]wFMCommunicate OK [09:09:40]SAM_PROTO_SignData done [09:09:40]FM_MakeSignedData done [09:09:40]CreateOFDProtocolMessage [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 11 00 00 [09:09:40]Write to MH i2c: E2 08 00 E8 26 80 11 00 00 00 00 00 00 88 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 17 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 17 00 E8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [09:09: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:09:40]wFMCommunicate OK [09:09:40]CreateOFDProtocolMessage done [09:09:40]OFDSenderStorePacket 104311 [09:09:40]StoreOFDPacket docnum=104311 [09:09: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 20 AD 07 01 63 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 D7 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D7 F1 9B 14 6C DE A0 96 27 56 61 B6 64 7B [09:09:40]CheckFolder [09:09:40]dirname=/storage/ofd_packets [09:09:40]CheckFolder done [09:09:40]ProducePacketName [09:09:40]name=ofd_packets/00104311 [09:09:40]NVStorageSaveData ofd_packets/00104311 [09:09:40]File name is /storage/ofd_packets/00104311 [09:09:40]Write 301 bytes [09:09:40]NVStorageSaveData done [09:09:40]OFDSenderStorePacket done [09:09:40]KKMCreateOFDPacket done [09:09:40]NVStorageSaveData kkm_last_timestamp [09:09:40]File name is /storage/kkm_last_timestamp [09:09:40]Write 4 bytes [09:09:40]NVStorageSaveData done [09:09:40]ExternCall_PrintAddStr [09:09:40]wPrintStart [09:09:40]Write to MH i2c: 01 00 00 E9 26 0F [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 07 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 07 00 E9 26 00 00 00 00 00 FF 0F 24 [09:09:40]RasterBufferAndPrint [09:09:40]line Счет N : (1)673805 [09:09:40]line ИНН: 02508201610067 [09:09:40]line Контрольно-Кассовый Чек [09:09:40]line ПРОДАЖА [09:09:40]line ТРК (МРК, ГНК) : 42 [09:09:40]line Товар: 2710124130 [09:09:40]line Аи-92-К-5 [09:09:40]line 10.550 * 66.40 [09:09:40]line = 700.52 [09:09:40]line НДС 12% НСП 1% [09:09:40]line > о реализуемом товаре [09:09:40]line ОКРУГЛЕНИЕ: -0.52 [09:09:40]line ИТОГО: 700.00 [09:09:40]line Внесено: 700.00 [09:09:40]line СДАЧА: 0.00 [09:09:40]line НСП 1% : 6.20 [09:09:40]line НДС 12% : 74.39 [09:09:40]line Наличными: 700.00 [09:09:40]line Безнал.: 0.00 [09:09:40]line Место: АЗС № 120 "Партнер Нефть" [09:09:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:09:40]line СНО: Общий режим [09:09:40]line Чек 44 22.06.2024 09:09 [09:09:40]line Смена: 356 ФФД: 1.0 [09:09:40]line ЗНМ: 0300000164 [09:09:40]line РНМ: 0000000000092785 [09:09:40]line Версия ККМ: 001 [09:09:40]line ФМ: 0000000000875093 [09:09:40]line ФД: 104311 [09:09:40]line ФПД: 237432688897246 [09:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090943&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104311&fm=237432688897246&tin=02508201610067®Number=0000000000092785&sum=70000 [09:09:40]OFD Sender: Processing packet 104311 [packets to send 17, broken 16] [09:09:40]ProducePacketName [09:09:40]name=ofd_packets/00104311 [09:09:40]OFD Sender: To server: pG, [09:09:40]CommunicateWithHost lk.salyk.kg:30040 [09:09:40]ConnectInit lk.salyk.kg [09:09:40]written 0, free lines is 4095 [09:09:41]Connected sock=10 [09:09: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 20 AD 07 01 63 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 D7 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D7 F1 9B 14 6C DE A0 96 27 56 61 B6 64 7B [09:09: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 A3 39 47 00 F6 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 97 01 00 F4 03 04 00 56 3B 76 66 B6 04 01 00 00 57 19 0D 12 09 CE 77 A7 [09:09:41]CommunicateWithHost err = 0 [09:09:41]CheckOFDResponse [09:09:41]1017 (14) - 77093643461234 [09:09:41]1041 (16) - 0000000000875093 [09:09:41]1040 (4) - 104311 [09:09:41]1012 (4) - 22.06.2024 02:47 [09:09:41]1206 (1) - 0 [09:09:41]OFD Sender: Remove packet 104311 [09:09:41]ProducePacketName [09:09:41]name=ofd_packets/00104311 [09:09:41]NVStorageDeleteData [09:09:41]Write to MH i2c: 01 00 00 14 27 3B [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 14 27 00 00 00 00 00 D6 0C 24 [09:09:41]RasterBufferAndPrint [09:09:41]line [09:09:41]line [09:09:41]line [09:09:41]line [09:09:41]line [09:09:41]written 0, free lines is 3293 [09:09:41]MH_Cut [09:09:41]Write to MH i2c: D1 01 00 1B 27 01 14 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D1 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D1 01 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D1 01 00 1B 27 00 13 [09:09:41]Write to MH i2c: 01 00 00 1C 27 43 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]OFD Sender: No OFD packet to send [09:09:42]*** Cut start [09:09:42]*** Partial cut [09:09:42]*** CUTSNS_PIN = 1 [09:09:42]*** CUTSNS_PIN = 0 [09:09:42]*** Brake cut motor [09:09:42]Read from MH i2c: 01 [09:09:42]MH_I2C_Read... [09:09:42]*** Stop cut motor [09:09:42]*** Cut end [09:09:42]Read from MH i2c: 01 07 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 1C 27 00 00 00 00 00 FF 0F 58 [09:09:42]process_action close_receipt done [09:09:42]requested_data is exist [09:09:42]produce_requested_data [09:09:42]requested_item fm.sn is exist - process it [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 11 00 00 [09:09:42]Write to MH i2c: E2 08 00 1D 27 80 11 00 00 00 00 00 00 BE [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:42]Read from MH i2c: E2 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 17 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 17 00 1D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [09:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:09:42]wFMCommunicate OK [09:09:42]requested_item fd.num is exist - process it [09:09:42]SAM_PROTO_GetFieldsCounters [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 13 00 00 [09:09:42]Write to MH i2c: E2 08 00 1E 27 80 13 00 00 00 00 00 00 C1 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:42]Read from MH i2c: E2 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 62 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 62 00 1E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E0 [09:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [09:09:42]wFMCommunicate OK [09:09:42]SAM_PROTO_GetFieldsCounters done [09:09:42]requested_item shift.num is exist - process it [09:09:42]requested_item shift.opened is exist - process it [09:09:42]req_shift_opened [09:09:42]FM_GetShiftState [09:09:42]SAM_PROTO_GetShiftState [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 13 01 00 [09:09:42]Write to MH i2c: E2 08 00 1F 27 80 13 01 00 00 00 00 00 C3 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 1F 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B5 [09:09:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_GetShiftState done [09:09:43]FM_GetShiftState done [09:09:43]req_shift_opened done [09:09:43]requested_item shift.open_date is exist - process it [09:09:43]req_shift_open_date [09:09:43]req_shift_open_date done [09:09:43]produce_requested_data done [09:09:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104311,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:09:43]process_action_free close_receipt [09:09:43]json_value_free [09:09:43]json_value_free done [09:09:43]process_json_proto returns [09:09:43]Send response to host [09:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104311,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:09:43]free response buf [09:09:43]execute_script done [09:09:43]execute_script returns [09:09:43]free content buf [09:09:43]Sock 9.Close socket [09:09:43]Sock 9.Thread stoped [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:05]accept exits with 7 [09:10:05]New connection [09:10:05]New thread 3067473252 created [09:10:05]Thread 3067616612 joined [09:10:05]Waiting for new connection... [09:10:05] Sock 7.Parse request [09:10:05]Sock 7.Check first char [09:10:05]Sock 7.First char is OK [09:10:05]request: POST /json_proto HTTP/1.0 [09:10:05]Method: POST [09:10:05]URL: /json_proto [09:10:05]Method is POST - this is cgi request [09:10:05]url: /json_proto [09:10:05]query_string will be loaded in cgi processing [09:10:05]execute_cgi json_proto POST (null) [09:10:05]execute_cgi path=json_proto method=POST [09:10:05]POST find Content-Length [09:10:05]Host: 172.17.38.133:8080 [09:10:05]Content-Length: 682 [09:10:05]Content-Type: application/json [09:10:05] [09:10:05]POST finish read [09:10:05]Found Content-Length = 682 [09:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673806", "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" ] } } [09:10:05]execute_script... [09:10: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)673806", "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" ] } } [09:10:05]POST & json_proto [09:10:05]process_json_proto [09:10:05]json parsed OK: [09:10:05]protocol is kg_v1.0 [09:10:05]action value=close_receipt [09:10:05]process_action close_receipt [09:10:05]cmd_close_receipt [09:10:05]MH_GetDate [09:10:05]Write to MH i2c: F0 00 00 20 27 36 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 20 27 00 F1 94 76 66 BD 8F 7C 64 CC [09:10:05]GetLastDocTimeStamp 1719047383 [09:10:05]current date 1719047409 [09:10:05]FM_GetShiftState [09:10:05]SAM_PROTO_GetShiftState [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 01 00 [09:10:05]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B7 [09:10:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetShiftState done [09:10:05]FM_GetShiftState done [09:10:05]opened in 1719016176 [09:10:05]opened+sec_in_day 1719102576 [09:10:05]quantity*price = 100064 [09:10:05]sum+1 = 100066 [09:10:05]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 СНО: Общий режим Чек 45 22.06.2024 09:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104312 ФПД: 55991973091557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104312&fm=55991973091557&tin=02508201610067®Number=0000000000092785&sum=100000 [09:10:06]StoreToDocumentArchive [09:10:06]shift 356 fd 104312 [09:10:06]save to /storage/0356/doc_00104312 [09:10:06]save last doc name /storage/0356/doc_00104312 to /storage/kkm_last_doc_name [09:10:06]save OK [09:10:06]Clear old archive folders... [09:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:06]tlvbuf is 0069D100 [09:10:06]SAM_PROTO_ClearQueue [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 09 00 00 [09:10:06]Write to MH i2c: E2 08 00 2E 27 80 09 00 00 00 00 00 00 C7 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_ClearQueue done [09:10:06]KKMCreateOFDPacket [09:10:06]OFDProtocolAddRootSTLVToBuf [09:10:06]FM_MakeSignedData [09:10:06]FM_MakeSignedData [09:10:06]SAM_PROTO_SignData [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 01 02 [09:10:06]Write to MH i2c: E2 08 00 2F 27 80 0D 01 02 00 00 00 00 CF [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=255 [09:10:06]MH_SAM_APDU [09:10: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 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 2D 00 00 00 F4 03 04 00 F1 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 32 [09:10:06]Write to MH i2c: E2 02 01 30 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 F1 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 32 00 00 0E [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=10 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 05 EC A5 AA 98 E5 [09:10:06]Write to MH i2c: E2 0D 00 31 27 80 0D 02 02 05 00 EC A5 AA 98 E5 00 00 94 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 03 02 [09:10:06]Write to MH i2c: E2 08 00 32 27 80 0D 03 02 00 00 00 00 D4 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 32 27 00 11 6D 23 C0 F5 86 3F 02 90 00 F2 [09:10:06]RAPDU: 11 6D 23 C0 F5 86 3F 02 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_SignData done [09:10:06]FM_MakeSignedData done [09:10:06]CreateOFDProtocolMessage [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 11 00 00 [09:10:06]Write to MH i2c: E2 08 00 33 27 80 11 00 00 00 00 00 00 D4 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 33 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [09:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:10:06]wFMCommunicate OK [09:10:06]CreateOFDProtocolMessage done [09:10:06]OFDSenderStorePacket 104312 [09:10:06]StoreOFDPacket docnum=104312 [09:10: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 B2 90 07 01 39 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 2D 00 00 00 F4 03 04 00 F1 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 32 EC A5 AA 98 E5 11 6D 23 C0 F5 86 3F 02 [09:10:06]CheckFolder [09:10:06]dirname=/storage/ofd_packets [09:10:06]CheckFolder done [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00104312 [09:10:06]NVStorageSaveData ofd_packets/00104312 [09:10:06]File name is /storage/ofd_packets/00104312 [09:10:06]Write 301 bytes [09:10:06]NVStorageSaveData done [09:10:06]OFDSenderStorePacket done [09:10:06]KKMCreateOFDPacket done [09:10:06]NVStorageSaveData kkm_last_timestamp [09:10:06]File name is /storage/kkm_last_timestamp [09:10:06]Write 4 bytes [09:10:06]NVStorageSaveData done [09:10:06]ExternCall_PrintAddStr [09:10:06]wPrintStart [09:10:06]Write to MH i2c: 01 00 00 34 27 5B [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 34 27 00 00 00 00 00 FF 0F 70 [09:10:06]RasterBufferAndPrint [09:10:06]line Счет N : (1)673806 [09:10:06]line ИНН: 02508201610067 [09:10:06]line Контрольно-Кассовый Чек [09:10:06]line ПРОДАЖА [09:10:06]line ТРК (МРК, ГНК) : 32 [09:10:06]line Товар: 2710124130 [09:10:06]line Аи-92-К-5 [09:10:06]line 15.070 * 66.40 [09:10:06]line = 1000.65 [09:10:06]line НДС 12% НСП 1% [09:10:06]line > о реализуемом товаре [09:10:06]line ОКРУГЛЕНИЕ: -0.65 [09:10:06]line ИТОГО: 1000.00 [09:10:06]line Внесено: 1000.00 [09:10:06]line СДАЧА: 0.00 [09:10:06]line НСП 1% : 8.85 [09:10:06]line НДС 12% : 106.26 [09:10:06]line Наличными: 1000.00 [09:10:06]line Безнал.: 0.00 [09:10:06]line Место: АЗС № 120 "Партнер Нефть" [09:10:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:10:06]line СНО: Общий режим [09:10:06]line Чек 45 22.06.2024 09:10 [09:10:06]line Смена: 356 ФФД: 1.0 [09:10:06]line ЗНМ: 0300000164 [09:10:06]line РНМ: 0000000000092785 [09:10:06]line Версия ККМ: 001 [09:10:06]line ФМ: 0000000000875093 [09:10:06]line ФД: 104312 [09:10:06]line ФПД: 55991973091557 [09:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104312&fm=55991973091557&tin=02508201610067®Number=0000000000092785&sum=100000 [09:10:07]OFD Sender: Processing packet 104312 [packets to send 17, broken 16] [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00104312 [09:10:07]OFD Sender: To server: pG, [09:10:07]CommunicateWithHost lk.salyk.kg:30040 [09:10:07]ConnectInit lk.salyk.kg [09:10:07]written 0, free lines is 4095 [09:10:07]Connected sock=10 [09:10: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 B2 90 07 01 39 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 2D 00 00 00 F4 03 04 00 F1 94 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 32 EC A5 AA 98 E5 11 6D 23 C0 F5 86 3F 02 [09:10: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 A4 A8 47 00 8A 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 78 97 01 00 F4 03 04 00 71 3B 76 66 B6 04 01 00 00 FD 5A 95 FC B5 45 DC 8F [09:10:07]CommunicateWithHost err = 0 [09:10:07]CheckOFDResponse [09:10:07]1017 (14) - 77093643461234 [09:10:07]1041 (16) - 0000000000875093 [09:10:07]1040 (4) - 104312 [09:10:07]1012 (4) - 22.06.2024 02:48 [09:10:07]1206 (1) - 0 [09:10:07]OFD Sender: Remove packet 104312 [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00104312 [09:10:07]NVStorageDeleteData [09:10:07]Write to MH i2c: 01 00 00 5F 27 86 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 5F 27 00 00 00 00 00 D9 0C 72 [09:10:07]RasterBufferAndPrint [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]written 0, free lines is 3297 [09:10:07]MH_Cut [09:10:07]Write to MH i2c: D1 01 00 66 27 01 5F [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 66 27 00 5E [09:10:07]Write to MH i2c: 01 00 00 67 27 8E [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:08]OFD Sender: No OFD packet to send [09:10:08]*** Cut start [09:10:08]*** Partial cut [09:10:08]*** CUTSNS_PIN = 1 [09:10:08]*** CUTSNS_PIN = 0 [09:10:08]*** Brake cut motor [09:10:09]Read from MH i2c: 01 [09:10:09]MH_I2C_Read... [09:10:09]*** Stop cut motor [09:10:09]*** Cut end [09:10:09]Read from MH i2c: 01 07 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 67 27 00 00 00 00 00 FF 0F A3 [09:10:09]process_action close_receipt done [09:10:09]requested_data is exist [09:10:09]produce_requested_data [09:10:09]requested_item fm.sn is exist - process it [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 11 00 00 [09:10:09]Write to MH i2c: E2 08 00 68 27 80 11 00 00 00 00 00 00 09 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 17 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 17 00 68 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [09: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 [09:10:09]wFMCommunicate OK [09:10:09]requested_item fd.num is exist - process it [09:10:09]SAM_PROTO_GetFieldsCounters [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 00 00 [09:10:09]Write to MH i2c: E2 08 00 69 27 80 13 00 00 00 00 00 00 0C [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 69 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2F [09:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetFieldsCounters done [09:10:09]requested_item shift.num is exist - process it [09:10:09]requested_item shift.opened is exist - process it [09:10:09]req_shift_opened [09:10:09]FM_GetShiftState [09:10:09]SAM_PROTO_GetShiftState [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 01 00 [09:10:09]Write to MH i2c: E2 08 00 6A 27 80 13 01 00 00 00 00 00 0E [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 6A 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 00 [09:10:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetShiftState done [09:10:09]FM_GetShiftState done [09:10:09]req_shift_opened done [09:10:09]requested_item shift.open_date is exist - process it [09:10:09]req_shift_open_date [09:10:09]req_shift_open_date done [09:10:09]produce_requested_data done [09:10:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104312,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:10:09]process_action_free close_receipt [09:10:09]json_value_free [09:10:09]json_value_free done [09:10:09]process_json_proto returns [09:10:09]Send response to host [09:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104312,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:10:09]free response buf [09:10:09]execute_script done [09:10:09]execute_script returns [09:10:09]free content buf [09:10:09]Sock 7.Close socket [09:10:09]Sock 7.Thread stoped [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:31]accept exits with 9 [09:13:31]New connection [09:13:31]New thread 3067616612 created [09:13:31]Thread 3067473252 joined [09:13:31]Waiting for new connection... [09:13:31] Sock 9.Parse request [09:13:31]Sock 9.Check first char [09:13:31]Sock 9.First char is OK [09:13:31]request: POST /json_proto HTTP/1.0 [09:13:31]Method: POST [09:13:31]URL: /json_proto [09:13:31]Method is POST - this is cgi request [09:13:31]url: /json_proto [09:13:31]query_string will be loaded in cgi processing [09:13:31]execute_cgi json_proto POST (null) [09:13:31]execute_cgi path=json_proto method=POST [09:13:31]POST find Content-Length [09:13:31]Host: 172.17.38.133:8080 [09:13:31]Content-Length: 678 [09:13:31]Content-Type: application/json [09:13:31] [09:13:31]POST finish read [09:13:31]Found Content-Length = 678 [09:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673807", "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.710, "sum" : 711.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 711.00, "total" : 711.00, "payments": [ { "type": 0, "sum" : 711.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:31]execute_script... [09:13: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)673807", "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.710, "sum" : 711.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 711.00, "total" : 711.00, "payments": [ { "type": 0, "sum" : 711.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:31]POST & json_proto [09:13:31]process_json_proto [09:13:31]json parsed OK: [09:13:31]protocol is kg_v1.0 [09:13:31]action value=close_receipt [09:13:31]process_action close_receipt [09:13:31]cmd_close_receipt [09:13:31]MH_GetDate [09:13:31]Write to MH i2c: F0 00 00 6B 27 81 [09:13:31]Write i2c OK [09:13:31]MH_I2C_Read... [09:13:31]Read from MH i2c: F0 [09:13:31]MH_I2C_Read... [09:13:31]Read from MH i2c: F0 09 00 [09:13:31]MH_I2C_Read... [09:13:31]Read from MH i2c: F0 09 00 6B 27 00 BF 95 76 66 BD 8F 7C 64 E6 [09:13:31]GetLastDocTimeStamp 1719047409 [09:13:31]current date 1719047615 [09:13:31]FM_GetShiftState [09:13:31]SAM_PROTO_GetShiftState [09:13:31]wFMCommunicate request_size=4 [09:13:31]MH_SAM_APDU [09:13:31]CAPDU: 80 13 01 00 [09:13:31]Write to MH i2c: E2 08 00 6C 27 80 13 01 00 00 00 00 00 10 [09:13:31]Write i2c OK [09:13:31]MH_I2C_Read... [09:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:31]Read from MH i2c: E2 [09:13:31]MH_I2C_Read... [09:13:31]Read from MH i2c: E2 0E 00 [09:13:31]MH_I2C_Read... [09:13:31]Read from MH i2c: E2 0E 00 6C 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 02 [09:13:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:13:31]wFMCommunicate OK [09:13:31]SAM_PROTO_GetShiftState done [09:13:31]FM_GetShiftState done [09:13:31]opened in 1719016176 [09:13:31]opened+sec_in_day 1719102576 [09:13:31]quantity*price = 71114 [09:13:31]sum+1 = 71115 [09:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 711.00 Внесено: 711.00 СДАЧА: 0.00 НСП 1% : 6.29 НДС 12% : 75.52 Наличными: 711.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 22.06.2024 09:13 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104313 ФПД: 18901685447213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091335&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104313&fm=18901685447213&tin=02508201610067®Number=0000000000092785&sum=71100 [09:13:32]StoreToDocumentArchive [09:13:32]shift 356 fd 104313 [09:13:32]save to /storage/0356/doc_00104313 [09:13:32]save last doc name /storage/0356/doc_00104313 to /storage/kkm_last_doc_name [09:13:32]save OK [09:13:32]Clear old archive folders... [09:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:32]tlvbuf is 006C7EF0 [09:13:32]SAM_PROTO_ClearQueue [09:13:32]wFMCommunicate request_size=4 [09:13:32]MH_SAM_APDU [09:13:32]CAPDU: 80 09 00 00 [09:13:32]Write to MH i2c: E2 08 00 79 27 80 09 00 00 00 00 00 00 12 [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:32]Read from MH i2c: E2 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [09:13:32]RAPDU: 90 00 [09:13:32]wFMCommunicate OK [09:13:32]SAM_PROTO_ClearQueue done [09:13:32]KKMCreateOFDPacket [09:13:32]OFDProtocolAddRootSTLVToBuf [09:13:32]FM_MakeSignedData [09:13:32]FM_MakeSignedData [09:13:32]SAM_PROTO_SignData [09:13:32]wFMCommunicate request_size=4 [09:13:32]MH_SAM_APDU [09:13:32]CAPDU: 80 0D 01 02 [09:13:32]Write to MH i2c: E2 08 00 7A 27 80 0D 01 02 00 00 00 00 1A [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:32]Read from MH i2c: E2 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [09:13:32]RAPDU: 90 00 [09:13:32]wFMCommunicate OK [09:13:32]wFMCommunicate request_size=255 [09:13:32]MH_SAM_APDU [09:13: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 D6 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1D 00 00 00 00 07 04 06 00 BC 15 01 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 BF 95 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 11 [09:13:32]Write to MH i2c: E2 02 01 7B 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1D 00 00 00 00 07 04 06 00 BC 15 01 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 BF 95 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 11 00 00 AF [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:32]Read from MH i2c: E2 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [09:13:32]RAPDU: 90 00 [09:13:32]wFMCommunicate OK [09:13:32]wFMCommunicate request_size=10 [09:13:32]MH_SAM_APDU [09:13:32]CAPDU: 80 0D 02 02 05 30 E4 3F 2A 2D [09:13:32]Write to MH i2c: E2 0D 00 7C 27 80 0D 02 02 05 00 30 E4 3F 2A 2D 00 00 D1 [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:32]Read from MH i2c: E2 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [09:13:32]RAPDU: 90 00 [09:13:32]wFMCommunicate OK [09:13:32]wFMCommunicate request_size=4 [09:13:32]MH_SAM_APDU [09:13:32]CAPDU: 80 0D 03 02 [09:13:32]Write to MH i2c: E2 08 00 7D 27 80 0D 03 02 00 00 00 00 1F [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0B 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0B 00 7D 27 00 78 EF 76 7E 9F 2D 10 61 90 00 B8 [09:13:33]RAPDU: 78 EF 76 7E 9F 2D 10 61 90 00 [09:13:33]wFMCommunicate OK [09:13:33]SAM_PROTO_SignData done [09:13:33]FM_MakeSignedData done [09:13:33]CreateOFDProtocolMessage [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 11 00 00 [09:13:33]Write to MH i2c: E2 08 00 7E 27 80 11 00 00 00 00 00 00 1F [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 17 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 17 00 7E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [09:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:13:33]wFMCommunicate OK [09:13:33]CreateOFDProtocolMessage done [09:13:33]OFDSenderStorePacket 104313 [09:13:33]StoreOFDPacket docnum=104313 [09:13: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 00 4B 07 01 35 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1D 00 00 00 00 07 04 06 00 BC 15 01 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 BF 95 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 11 30 E4 3F 2A 2D 78 EF 76 7E 9F 2D 10 61 [09:13:33]CheckFolder [09:13:33]dirname=/storage/ofd_packets [09:13:33]CheckFolder done [09:13:33]ProducePacketName [09:13:33]name=ofd_packets/00104313 [09:13:33]NVStorageSaveData ofd_packets/00104313 [09:13:33]File name is /storage/ofd_packets/00104313 [09:13:33]Write 301 bytes [09:13:33]NVStorageSaveData done [09:13:33]OFDSenderStorePacket done [09:13:33]KKMCreateOFDPacket done [09:13:33]NVStorageSaveData kkm_last_timestamp [09:13:33]File name is /storage/kkm_last_timestamp [09:13:33]Write 4 bytes [09:13:33]NVStorageSaveData done [09:13:33]ExternCall_PrintAddStr [09:13:33]wPrintStart [09:13:33]Write to MH i2c: 01 00 00 7F 27 A6 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 7F 27 00 00 00 00 00 FF 0F BB [09:13:33]RasterBufferAndPrint [09:13:33]line Счет N : (1)673807 [09:13:33]line ИНН: 02508201610067 [09:13:33]line Контрольно-Кассовый Чек [09:13:33]line ПРОДАЖА [09:13:33]line ТРК (МРК, ГНК) : 42 [09:13:33]line Товар: 2710124130 [09:13:33]line Аи-92-К-5 [09:13:33]line 10.710 * 66.40 [09:13:33]line = 711.14 [09:13:33]line НДС 12% НСП 1% [09:13:33]line > о реализуемом товаре [09:13:33]line ОКРУГЛЕНИЕ: -0.14 [09:13:33]line ИТОГО: 711.00 [09:13:33]line Внесено: 711.00 [09:13:33]line СДАЧА: 0.00 [09:13:33]line НСП 1% : 6.29 [09:13:33]line НДС 12% : 75.52 [09:13:33]line Наличными: 711.00 [09:13:33]line Безнал.: 0.00 [09:13:33]line Место: АЗС № 120 "Партнер Нефть" [09:13:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:13:33]line СНО: Общий режим [09:13:33]line Чек 46 22.06.2024 09:13 [09:13:33]line Смена: 356 ФФД: 1.0 [09:13:33]line ЗНМ: 0300000164 [09:13:33]line РНМ: 0000000000092785 [09:13:33]line Версия ККМ: 001 [09:13:33]line ФМ: 0000000000875093 [09:13:33]line ФД: 104313 [09:13:33]line ФПД: 18901685447213 [09:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091335&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104313&fm=18901685447213&tin=02508201610067®Number=0000000000092785&sum=71100 [09:13:33]OFD Sender: Processing packet 104313 [packets to send 17, broken 16] [09:13:33]ProducePacketName [09:13:33]name=ofd_packets/00104313 [09:13:33]OFD Sender: To server: pG, [09:13:33]CommunicateWithHost lk.salyk.kg:30040 [09:13:33]ConnectInit lk.salyk.kg [09:13:33]written 0, free lines is 4095 [09:13:33]Connected sock=10 [09:13: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 00 4B 07 01 35 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1D 00 00 00 00 07 04 06 00 BC 15 01 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 BF 95 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 11 30 E4 3F 2A 2D 78 EF 76 7E 9F 2D 10 61 [09:13: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 37 8C 47 00 F7 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 79 97 01 00 F4 03 04 00 3F 3C 76 66 B6 04 01 00 00 8A 98 5B B9 10 F0 74 48 [09:13:33]CommunicateWithHost err = 0 [09:13:33]CheckOFDResponse [09:13:33]1017 (14) - 77093643461234 [09:13:33]1041 (16) - 0000000000875093 [09:13:33]1040 (4) - 104313 [09:13:33]1012 (4) - 22.06.2024 02:51 [09:13:33]1206 (1) - 0 [09:13:33]OFD Sender: Remove packet 104313 [09:13:33]ProducePacketName [09:13:33]name=ofd_packets/00104313 [09:13:33]NVStorageDeleteData [09:13:33]Write to MH i2c: 01 00 00 AA 27 D1 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 AA 27 00 00 00 00 00 C6 0C AA [09:13:33]RasterBufferAndPrint [09:13:33]line [09:13:33]line [09:13:33]line [09:13:33]line [09:13:33]line [09:13:33]written 0, free lines is 3276 [09:13:33]MH_Cut [09:13:33]Write to MH i2c: D1 01 00 B1 27 01 AA [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: D1 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: D1 01 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: D1 01 00 B1 27 00 A9 [09:13:33]Write to MH i2c: 01 00 00 B2 27 D9 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:34]OFD Sender: No OFD packet to send [09:13:34]*** Cut start [09:13:34]*** Partial cut [09:13:34]*** CUTSNS_PIN = 1 [09:13:34]*** CUTSNS_PIN = 0 [09:13:34]*** Brake cut motor [09:13:35]Read from MH i2c: 01 [09:13:35]MH_I2C_Read... [09:13:35]*** Stop cut motor [09:13:35]*** Cut end [09:13:35]Read from MH i2c: 01 07 00 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: 01 07 00 B2 27 00 00 00 00 00 FF 0F EE [09:13:35]process_action close_receipt done [09:13:35]requested_data is exist [09:13:35]produce_requested_data [09:13:35]requested_item fm.sn is exist - process it [09:13:35]wFMCommunicate request_size=4 [09:13:35]MH_SAM_APDU [09:13:35]CAPDU: 80 11 00 00 [09:13:35]Write to MH i2c: E2 08 00 B3 27 80 11 00 00 00 00 00 00 54 [09:13:35]Write i2c OK [09:13:35]MH_I2C_Read... [09:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:35]Read from MH i2c: E2 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 17 00 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 17 00 B3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [09:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:13:35]wFMCommunicate OK [09:13:35]requested_item fd.num is exist - process it [09:13:35]SAM_PROTO_GetFieldsCounters [09:13:35]wFMCommunicate request_size=4 [09:13:35]MH_SAM_APDU [09:13:35]CAPDU: 80 13 00 00 [09:13:35]Write to MH i2c: E2 08 00 B4 27 80 13 00 00 00 00 00 00 57 [09:13:35]Write i2c OK [09:13:35]MH_I2C_Read... [09:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:35]Read from MH i2c: E2 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 62 00 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 62 00 B4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7E [09:13: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 79 97 01 00 0E 04 04 00 64 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 [09:13:35]wFMCommunicate OK [09:13:35]SAM_PROTO_GetFieldsCounters done [09:13:35]requested_item shift.num is exist - process it [09:13:35]requested_item shift.opened is exist - process it [09:13:35]req_shift_opened [09:13:35]FM_GetShiftState [09:13:35]SAM_PROTO_GetShiftState [09:13:35]wFMCommunicate request_size=4 [09:13:35]MH_SAM_APDU [09:13:35]CAPDU: 80 13 01 00 [09:13:35]Write to MH i2c: E2 08 00 B5 27 80 13 01 00 00 00 00 00 59 [09:13:35]Write i2c OK [09:13:35]MH_I2C_Read... [09:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:35]Read from MH i2c: E2 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 0E 00 [09:13:35]MH_I2C_Read... [09:13:35]Read from MH i2c: E2 0E 00 B5 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4B [09:13:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:13:35]wFMCommunicate OK [09:13:35]SAM_PROTO_GetShiftState done [09:13:35]FM_GetShiftState done [09:13:35]req_shift_opened done [09:13:35]requested_item shift.open_date is exist - process it [09:13:35]req_shift_open_date [09:13:35]req_shift_open_date done [09:13:35]produce_requested_data done [09:13:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104313,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:13:35]process_action_free close_receipt [09:13:35]json_value_free [09:13:35]json_value_free done [09:13:35]process_json_proto returns [09:13:35]Send response to host [09:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104313,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:13:35]free response buf [09:13:35]execute_script done [09:13:35]execute_script returns [09:13:35]free content buf [09:13:35]Sock 9.Close socket [09:13:35]Sock 9.Thread stoped [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:14]accept exits with 7 [09:16:14]New connection [09:16:14]New thread 3067473252 created [09:16:14]Thread 3067616612 joined [09:16:14]Waiting for new connection... [09:16:14] Sock 7.Parse request [09:16:14]Sock 7.Check first char [09:16:14]Sock 7.First char is OK [09:16:14]request: POST /json_proto HTTP/1.0 [09:16:14]Method: POST [09:16:14]URL: /json_proto [09:16:14]Method is POST - this is cgi request [09:16:14]url: /json_proto [09:16:14]query_string will be loaded in cgi processing [09:16:14]execute_cgi json_proto POST (null) [09:16:14]execute_cgi path=json_proto method=POST [09:16:14]POST find Content-Length [09:16:14]Host: 172.17.38.133:8080 [09:16:14]Content-Length: 819 [09:16:14]Content-Type: application/json [09:16:14] [09:16:14]POST finish read [09:16:14]Found Content-Length = 819 [09:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673808", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:14]execute_script... [09:16: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)673808", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:14]POST & json_proto [09:16:14]process_json_proto [09:16:14]json parsed OK: [09:16:14]protocol is kg_v1.0 [09:16:14]action value=close_receipt [09:16:14]process_action close_receipt [09:16:14]cmd_close_receipt [09:16:14]MH_GetDate [09:16:14]Write to MH i2c: F0 00 00 B6 27 CC [09:16:14]Write i2c OK [09:16:14]MH_I2C_Read... [09:16:14]Read from MH i2c: F0 [09:16:14]MH_I2C_Read... [09:16:14]Read from MH i2c: F0 09 00 [09:16:14]MH_I2C_Read... [09:16:14]Read from MH i2c: F0 09 00 B6 27 00 62 96 76 66 BD 8F 7C 64 D5 [09:16:14]GetLastDocTimeStamp 1719047615 [09:16:14]current date 1719047778 [09:16:14]FM_GetShiftState [09:16:14]SAM_PROTO_GetShiftState [09:16:14]wFMCommunicate request_size=4 [09:16:14]MH_SAM_APDU [09:16:14]CAPDU: 80 13 01 00 [09:16:14]Write to MH i2c: E2 08 00 B7 27 80 13 01 00 00 00 00 00 5B [09:16:14]Write i2c OK [09:16:14]MH_I2C_Read... [09:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:14]Read from MH i2c: E2 [09:16:14]MH_I2C_Read... [09:16:14]Read from MH i2c: E2 0E 00 [09:16:14]MH_I2C_Read... [09:16:14]Read from MH i2c: E2 0E 00 B7 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4D [09:16:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:16:14]wFMCommunicate OK [09:16:14]SAM_PROTO_GetShiftState done [09:16:14]FM_GetShiftState done [09:16:14]opened in 1719016176 [09:16:14]opened+sec_in_day 1719102576 [09:16:14]quantity*price = 150064 [09:16:14]sum+1 = 150065 [09:16:14]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 СНО: Общий режим Чек 47 22.06.2024 09:16 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104314 ФПД: 450068288724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104314&fm=450068288724&tin=02508201610067®Number=0000000000092785&sum=150064 [09:16:15]StoreToDocumentArchive [09:16:15]shift 356 fd 104314 [09:16:15]save to /storage/0356/doc_00104314 [09:16:15]save last doc name /storage/0356/doc_00104314 to /storage/kkm_last_doc_name [09:16:15]save OK [09:16:15]Clear old archive folders... [09:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:15]tlvbuf is 006E5530 [09:16:15]SAM_PROTO_ClearQueue [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 09 00 00 [09:16:15]Write to MH i2c: E2 08 00 C4 27 80 09 00 00 00 00 00 00 5D [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 C4 27 00 90 00 5F [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]SAM_PROTO_ClearQueue done [09:16:15]KKMCreateOFDPacket [09:16:15]OFDProtocolAddRootSTLVToBuf [09:16:15]FM_MakeSignedData [09:16:15]FM_MakeSignedData [09:16:15]SAM_PROTO_SignData [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 0D 01 02 [09:16:15]Write to MH i2c: E2 08 00 C5 27 80 0D 01 02 00 00 00 00 65 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 C5 27 00 90 00 60 [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]wFMCommunicate request_size=255 [09:16:15]MH_SAM_APDU [09:16: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 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 2F 00 00 00 F4 03 04 00 62 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 [09:16:15]Write to MH i2c: E2 02 01 C6 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 62 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 00 BF [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 C6 27 00 90 00 61 [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]wFMCommunicate request_size=10 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 02 02 05 68 CA 29 14 D4 [09:16:16]Write to MH i2c: E2 0D 00 C7 27 80 0D 02 02 05 00 68 CA 29 14 D4 00 00 B5 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [09:16:16]RAPDU: 90 00 [09:16:16]wFMCommunicate OK [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 0D 03 02 [09:16:16]Write to MH i2c: E2 08 00 C8 27 80 0D 03 02 00 00 00 00 6A [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0B 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0B 00 C8 27 00 B7 F4 E1 8C 77 62 BE 3A 90 00 54 [09:16:16]RAPDU: B7 F4 E1 8C 77 62 BE 3A 90 00 [09:16:16]wFMCommunicate OK [09:16:16]SAM_PROTO_SignData done [09:16:16]FM_MakeSignedData done [09:16:16]CreateOFDProtocolMessage [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 11 00 00 [09:16:16]Write to MH i2c: E2 08 00 C9 27 80 11 00 00 00 00 00 00 6A [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 C9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [09:16: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:16:16]wFMCommunicate OK [09:16:16]CreateOFDProtocolMessage done [09:16:16]OFDSenderStorePacket 104314 [09:16:16]StoreOFDPacket docnum=104314 [09:16: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 AE 9E 07 01 3F 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 62 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 68 CA 29 14 D4 B7 F4 E1 8C 77 62 BE 3A [09:16:16]CheckFolder [09:16:16]dirname=/storage/ofd_packets [09:16:16]CheckFolder done [09:16:16]ProducePacketName [09:16:16]name=ofd_packets/00104314 [09:16:16]NVStorageSaveData ofd_packets/00104314 [09:16:16]File name is /storage/ofd_packets/00104314 [09:16:16]Write 301 bytes [09:16:16]NVStorageSaveData done [09:16:16]OFDSenderStorePacket done [09:16:16]KKMCreateOFDPacket done [09:16:16]NVStorageSaveData kkm_last_timestamp [09:16:16]File name is /storage/kkm_last_timestamp [09:16:16]Write 4 bytes [09:16:16]NVStorageSaveData done [09:16:16]ExternCall_PrintAddStr [09:16:16]wPrintStart [09:16:16]Write to MH i2c: 01 00 00 CA 27 F1 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 FF 0F 06 [09:16:16]RasterBufferAndPrint [09:16:16]line Счет N : (1)673808 [09:16:16]line ИНН: 02508201610067 [09:16:16]line Контрольно-Кассовый Чек [09:16:16]line ПРОДАЖА [09:16:16]line ТРК (МРК, ГНК) : 42 [09:16:16]line Товар: 2710124130 [09:16:16]line Аи-92-К-5 [09:16:16]line 22.600 * 66.40 [09:16:16]line = 1500.64 [09:16:16]line НДС 12% НСП 1% [09:16:16]line > о реализуемом товаре [09:16:16]line ИТОГО: 1500.64 [09:16:16]line НСП 1% : 13.28 [09:16:16]line НДС 12% : 159.36 [09:16:16]line Наличными: 0.00 [09:16:16]line Безнал.: 1500.64 [09:16:16]line Место: АЗС № 120 "Партнер Нефть" [09:16:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:16:16]line СНО: Общий режим [09:16:16]line Чек 47 22.06.2024 09:16 [09:16:16]line Смена: 356 ФФД: 1.0 [09:16:16]line ЗНМ: 0300000164 [09:16:16]line РНМ: 0000000000092785 [09:16:16]line Версия ККМ: 001 [09:16:16]line Платежная система: Бакай Банк [09:16:16]line ФМ: 0000000000875093 [09:16:16]line ФД: 104314 [09:16:16]line ФПД: 450068288724 [09:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104314&fm=450068288724&tin=02508201610067®Number=0000000000092785&sum=150064 [09:16:16]OFD Sender: Processing packet 104314 [packets to send 17, broken 16] [09:16:16]ProducePacketName [09:16:16]name=ofd_packets/00104314 [09:16:16]OFD Sender: To server: pG, [09:16:16]CommunicateWithHost lk.salyk.kg:30040 [09:16:16]ConnectInit lk.salyk.kg [09:16:16]written 0, free lines is 4095 [09:16:16]Connected sock=10 [09:16: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 AE 9E 07 01 3F 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 62 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 68 CA 29 14 D4 B7 F4 E1 8C 77 62 BE 3A [09:16: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 44 CF 47 00 3B 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 E2 3C 76 66 B6 04 01 00 00 37 1A CC EE FC 51 F6 AF [09:16:16]CommunicateWithHost err = 0 [09:16:16]CheckOFDResponse [09:16:16]1017 (14) - 77093643461234 [09:16:16]1041 (16) - 0000000000875093 [09:16:16]1040 (4) - 104314 [09:16:16]1012 (4) - 22.06.2024 02:54 [09:16:16]1206 (1) - 0 [09:16:16]OFD Sender: Remove packet 104314 [09:16:16]ProducePacketName [09:16:16]name=ofd_packets/00104314 [09:16:16]NVStorageDeleteData [09:16:17]Write to MH i2c: 01 00 00 F4 27 1B [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 07 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 07 00 F4 27 00 00 00 00 00 E7 0C 15 [09:16:17]RasterBufferAndPrint [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]line [09:16:17]written 0, free lines is 3310 [09:16:17]MH_Cut [09:16:17]Write to MH i2c: D1 01 00 FB 27 01 F4 [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: D1 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: D1 01 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: D1 01 00 FB 27 00 F3 [09:16:17]Write to MH i2c: 01 00 00 FC 27 23 [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]OFD Sender: No OFD packet to send [09:16:17]*** Cut start [09:16:17]*** Partial cut [09:16:17]*** CUTSNS_PIN = 1 [09:16:17]*** CUTSNS_PIN = 0 [09:16:18]*** Brake cut motor [09:16:18]Read from MH i2c: 01 [09:16:18]MH_I2C_Read... [09:16:18]*** Stop cut motor [09:16:18]*** Cut end [09:16:18]Read from MH i2c: 01 07 00 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 FF 0F 38 [09:16:18]process_action close_receipt done [09:16:18]requested_data is exist [09:16:18]produce_requested_data [09:16:18]requested_item fm.sn is exist - process it [09:16:18]wFMCommunicate request_size=4 [09:16:18]MH_SAM_APDU [09:16:18]CAPDU: 80 11 00 00 [09:16:18]Write to MH i2c: E2 08 00 FD 27 80 11 00 00 00 00 00 00 9E [09:16:18]Write i2c OK [09:16:18]MH_I2C_Read... [09:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:18]Read from MH i2c: E2 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 17 00 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 17 00 FD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [09:16: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:16:18]wFMCommunicate OK [09:16:18]requested_item fd.num is exist - process it [09:16:18]SAM_PROTO_GetFieldsCounters [09:16:18]wFMCommunicate request_size=4 [09:16:18]MH_SAM_APDU [09:16:18]CAPDU: 80 13 00 00 [09:16:18]Write to MH i2c: E2 08 00 FE 27 80 13 00 00 00 00 00 00 A1 [09:16:18]Write i2c OK [09:16:18]MH_I2C_Read... [09:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:18]Read from MH i2c: E2 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 62 00 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 62 00 FE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 CC [09:16: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 7A 97 01 00 0E 04 04 00 64 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 [09:16:18]wFMCommunicate OK [09:16:18]SAM_PROTO_GetFieldsCounters done [09:16:18]requested_item shift.num is exist - process it [09:16:18]requested_item shift.opened is exist - process it [09:16:18]req_shift_opened [09:16:18]FM_GetShiftState [09:16:18]SAM_PROTO_GetShiftState [09:16:18]wFMCommunicate request_size=4 [09:16:18]MH_SAM_APDU [09:16:18]CAPDU: 80 13 01 00 [09:16:18]Write to MH i2c: E2 08 00 FF 27 80 13 01 00 00 00 00 00 A3 [09:16:18]Write i2c OK [09:16:18]MH_I2C_Read... [09:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:18]Read from MH i2c: E2 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 0E 00 [09:16:18]MH_I2C_Read... [09:16:18]Read from MH i2c: E2 0E 00 FF 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 95 [09:16:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:16:18]wFMCommunicate OK [09:16:18]SAM_PROTO_GetShiftState done [09:16:18]FM_GetShiftState done [09:16:18]req_shift_opened done [09:16:18]requested_item shift.open_date is exist - process it [09:16:18]req_shift_open_date [09:16:18]req_shift_open_date done [09:16:18]produce_requested_data done [09:16:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104314,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:16:18]process_action_free close_receipt [09:16:18]json_value_free [09:16:18]json_value_free done [09:16:18]process_json_proto returns [09:16:18]Send response to host [09:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104314,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:16:18]free response buf [09:16:18]execute_script done [09:16:18]execute_script returns [09:16:18]free content buf [09:16:18]Sock 7.Close socket [09:16:18]Sock 7.Thread stoped [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:23]accept exits with 9 [09:17:23]New connection [09:17:23]New thread 3067616612 created [09:17:23]Thread 3067473252 joined [09:17:23]Waiting for new connection... [09:17:23] Sock 9.Parse request [09:17:23]Sock 9.Check first char [09:17:23]Sock 9.First char is OK [09:17:23]request: POST /json_proto HTTP/1.0 [09:17:23]Method: POST [09:17:23]URL: /json_proto [09:17:23]Method is POST - this is cgi request [09:17:23]url: /json_proto [09:17:23]query_string will be loaded in cgi processing [09:17:23]execute_cgi json_proto POST (null) [09:17:23]execute_cgi path=json_proto method=POST [09:17:23]POST find Content-Length [09:17:23]Host: 172.17.38.133:8080 [09:17:23]Content-Length: 1205 [09:17:23]Content-Type: application/json [09:17:23] [09:17:23]POST finish read [09:17:23]Found Content-Length = 1205 [09:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673809\u000A22.06.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 9.910 x 73.90\u000A\u0418\u0422\u041E\u0413: 732.35\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" ] } } [09:17:23]execute_script... [09:17:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673809\u000A22.06.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 9.910 x 73.90\u000A\u0418\u0422\u041E\u0413: 732.35\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" ] } } [09:17:23]POST & json_proto [09:17:23]process_json_proto [09:17:23]json parsed OK: [09:17:23]protocol is kg_v1.0 [09:17:23]action value=print_text [09:17:23]process_action print_text [09:17:23]cmd_print_text [09:17:23]ExternCall_PrintAddStr [09:17:23]wPrintStart [09:17:23]Write to MH i2c: 01 00 00 00 28 28 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 FF 0F 3D [09:17:23]RasterBufferAndPrint [09:17:23]line *****ТОВАРНЫЙ ЧЕК***** [09:17:23]line АЗС 120 [09:17:23]line Партнер нефть [09:17:23]line 02508201610067 [09:17:23]line Кассир : Байбугуева Г. [09:17:23]line Счет N : (1)673809 [09:17:23]line 22.06.2024 08:54 [09:17:23]line ПРОДАЖА [09:17:23]line ТРК (МРК, ГНК): 31 [09:17:23]line Вид ГСМ : 2710124500 [09:17:23]line Аи-95-К-5 [09:17:23]line 9.910 x 73.90 [09:17:23]line ИТОГ: 732.35 [09:17:23]line Тип оплаты: Талоны: Топливная Карта [09:17:23]line 32170 [09:17:23]line ______________________ [09:17:23]line (подпись) [09:17:23]written 0, free lines is 4095 [09:17:23]Write to MH i2c: 01 00 00 14 28 3C [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 11 0E 62 [09:17:23]RasterBufferAndPrint [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]written 0, free lines is 3603 [09:17:23]MH_Cut [09:17:23]Write to MH i2c: D1 01 00 1B 28 01 15 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 01 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 01 00 1B 28 00 14 [09:17:23]Write to MH i2c: 01 00 00 1C 28 44 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:24]*** Cut start [09:17:24]*** Partial cut [09:17:24]*** CUTSNS_PIN = 1 [09:17:24]*** CUTSNS_PIN = 0 [09:17:24]*** Brake cut motor [09:17:24]Read from MH i2c: 01 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: 01 07 00 [09:17:24]MH_I2C_Read... [09:17:24]*** Stop cut motor [09:17:24]*** Cut end [09:17:24]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 FF 0F 59 [09:17:24]process_action print_text done [09:17:24]requested_data is exist [09:17:24]produce_requested_data [09:17:24]requested_item fm.sn is exist - process it [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 11 00 00 [09:17:24]Write to MH i2c: E2 08 00 1D 28 80 11 00 00 00 00 00 00 BF [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:25]Read from MH i2c: E2 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 17 00 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 17 00 1D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [09:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:17:25]wFMCommunicate OK [09:17:25]requested_item fd.num is exist - process it [09:17:25]SAM_PROTO_GetFieldsCounters [09:17:25]wFMCommunicate request_size=4 [09:17:25]MH_SAM_APDU [09:17:25]CAPDU: 80 13 00 00 [09:17:25]Write to MH i2c: E2 08 00 1E 28 80 13 00 00 00 00 00 00 C2 [09:17:25]Write i2c OK [09:17:25]MH_I2C_Read... [09:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:25]Read from MH i2c: E2 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 62 00 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 62 00 1E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 ED [09:17: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 7A 97 01 00 0E 04 04 00 64 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 [09:17:25]wFMCommunicate OK [09:17:25]SAM_PROTO_GetFieldsCounters done [09:17:25]requested_item shift.num is exist - process it [09:17:25]requested_item shift.opened is exist - process it [09:17:25]req_shift_opened [09:17:25]FM_GetShiftState [09:17:25]SAM_PROTO_GetShiftState [09:17:25]wFMCommunicate request_size=4 [09:17:25]MH_SAM_APDU [09:17:25]CAPDU: 80 13 01 00 [09:17:25]Write to MH i2c: E2 08 00 1F 28 80 13 01 00 00 00 00 00 C4 [09:17:25]Write i2c OK [09:17:25]MH_I2C_Read... [09:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:25]Read from MH i2c: E2 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 0E 00 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: E2 0E 00 1F 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B6 [09:17:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:17:25]wFMCommunicate OK [09:17:25]SAM_PROTO_GetShiftState done [09:17:25]FM_GetShiftState done [09:17:25]req_shift_opened done [09:17:25]requested_item shift.open_date is exist - process it [09:17:25]req_shift_open_date [09:17:25]req_shift_open_date done [09:17:25]produce_requested_data done [09:17:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104314,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:17:25]process_action_free print_text [09:17:25]json_value_free [09:17:25]json_value_free done [09:17:25]process_json_proto returns [09:17:25]Send response to host [09:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104314,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:17:25]free response buf [09:17:25]execute_script done [09:17:25]execute_script returns [09:17:25]free content buf [09:17:25]Sock 9.Close socket [09:17:25]Sock 9.Thread stoped [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:49]accept exits with 7 [09:18:49]New connection [09:18:49]New thread 3067473252 created [09:18:49]Thread 3067616612 joined [09:18:49]Waiting for new connection... [09:18:49] Sock 7.Parse request [09:18:49]Sock 7.Check first char [09:18:49]Sock 7.First char is OK [09:18:49]request: POST /json_proto HTTP/1.0 [09:18:49]Method: POST [09:18:49]URL: /json_proto [09:18:49]Method is POST - this is cgi request [09:18:49]url: /json_proto [09:18:49]query_string will be loaded in cgi processing [09:18:49]execute_cgi json_proto POST (null) [09:18:49]execute_cgi path=json_proto method=POST [09:18:49]POST find Content-Length [09:18:49]Host: 172.17.38.133:8080 [09:18:49]Content-Length: 682 [09:18:49]Content-Type: application/json [09:18:49] [09:18:49]POST finish read [09:18:49]Found Content-Length = 682 [09:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673810", "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" ] } } [09:18:49]execute_script... [09:18: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)673810", "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" ] } } [09:18:49]POST & json_proto [09:18:49]process_json_proto [09:18:49]json parsed OK: [09:18:49]protocol is kg_v1.0 [09:18:49]action value=close_receipt [09:18:49]process_action close_receipt [09:18:49]cmd_close_receipt [09:18:49]MH_GetDate [09:18:49]Write to MH i2c: F0 00 00 20 28 37 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: F0 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: F0 09 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: F0 09 00 20 28 00 FD 96 76 66 BD 8F 7C 64 DB [09:18:49]GetLastDocTimeStamp 1719047778 [09:18:49]current date 1719047933 [09:18:49]FM_GetShiftState [09:18:49]SAM_PROTO_GetShiftState [09:18:49]wFMCommunicate request_size=4 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 13 01 00 [09:18:49]Write to MH i2c: E2 08 00 21 28 80 13 01 00 00 00 00 00 C6 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 0E 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 0E 00 21 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B8 [09:18:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:18:49]wFMCommunicate OK [09:18:49]SAM_PROTO_GetShiftState done [09:18:49]FM_GetShiftState done [09:18:49]opened in 1719016176 [09:18:49]opened+sec_in_day 1719102576 [09:18:49]quantity*price = 100064 [09:18:49]sum+1 = 100066 [09:18: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 СНО: Общий режим Чек 48 22.06.2024 09:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104315 ФПД: 175250537882313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104315&fm=175250537882313&tin=02508201610067®Number=0000000000092785&sum=100000 [09:18:50]StoreToDocumentArchive [09:18:50]shift 356 fd 104315 [09:18:50]save to /storage/0356/doc_00104315 [09:18:50]save last doc name /storage/0356/doc_00104315 to /storage/kkm_last_doc_name [09:18:50]save OK [09:18:50]Clear old archive folders... [09:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:50]tlvbuf is B6F4A4C0 [09:18:50]SAM_PROTO_ClearQueue [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 09 00 00 [09:18:50]Write to MH i2c: E2 08 00 2E 28 80 09 00 00 00 00 00 00 C8 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 2E 28 00 90 00 CA [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]SAM_PROTO_ClearQueue done [09:18:50]KKMCreateOFDPacket [09:18:50]OFDProtocolAddRootSTLVToBuf [09:18:50]FM_MakeSignedData [09:18:50]FM_MakeSignedData [09:18:50]SAM_PROTO_SignData [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 0D 01 02 [09:18:50]Write to MH i2c: E2 08 00 2F 28 80 0D 01 02 00 00 00 00 D0 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]wFMCommunicate request_size=255 [09:18:50]MH_SAM_APDU [09:18: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 30 00 00 00 F4 03 04 00 FD 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F [09:18:50]Write to MH i2c: E2 02 01 30 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 FD 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F 00 00 90 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 30 28 00 90 00 CC [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]wFMCommunicate request_size=10 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 02 02 05 63 B2 0E A2 C9 [09:18:51]Write to MH i2c: E2 0D 00 31 28 80 0D 02 02 05 00 63 B2 0E A2 C9 00 00 6B [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 31 28 00 90 00 CD [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 03 02 [09:18:51]Write to MH i2c: E2 08 00 32 28 80 0D 03 02 00 00 00 00 D5 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0B 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0B 00 32 28 00 FA B8 C9 4C C7 69 F4 FE 90 00 BF [09:18:51]RAPDU: FA B8 C9 4C C7 69 F4 FE 90 00 [09:18:51]wFMCommunicate OK [09:18:51]SAM_PROTO_SignData done [09:18:51]FM_MakeSignedData done [09:18:51]CreateOFDProtocolMessage [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 11 00 00 [09:18:51]Write to MH i2c: E2 08 00 33 28 80 11 00 00 00 00 00 00 D5 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 33 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [09:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:51]wFMCommunicate OK [09:18:51]CreateOFDProtocolMessage done [09:18:51]OFDSenderStorePacket 104315 [09:18:51]StoreOFDPacket docnum=104315 [09:18: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 25 A4 07 01 16 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 FD 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F 63 B2 0E A2 C9 FA B8 C9 4C C7 69 F4 FE [09:18:51]CheckFolder [09:18:51]dirname=/storage/ofd_packets [09:18:51]CheckFolder done [09:18:51]ProducePacketName [09:18:51]name=ofd_packets/00104315 [09:18:51]NVStorageSaveData ofd_packets/00104315 [09:18:51]File name is /storage/ofd_packets/00104315 [09:18:51]Write 301 bytes [09:18:51]NVStorageSaveData done [09:18:51]OFDSenderStorePacket done [09:18:51]KKMCreateOFDPacket done [09:18:51]NVStorageSaveData kkm_last_timestamp [09:18:51]File name is /storage/kkm_last_timestamp [09:18:51]Write 4 bytes [09:18:51]NVStorageSaveData done [09:18:51]ExternCall_PrintAddStr [09:18:51]wPrintStart [09:18:51]Write to MH i2c: 01 00 00 34 28 5C [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 34 28 00 00 00 00 00 FF 0F 71 [09:18:51]RasterBufferAndPrint [09:18:51]line Счет N : (1)673810 [09:18:51]line ИНН: 02508201610067 [09:18:51]line Контрольно-Кассовый Чек [09:18:51]line ПРОДАЖА [09:18:51]line ТРК (МРК, ГНК) : 32 [09:18:51]line Товар: 2710124130 [09:18:51]line Аи-92-К-5 [09:18:51]line 15.070 * 66.40 [09:18:51]line = 1000.65 [09:18:51]line НДС 12% НСП 1% [09:18:51]line > о реализуемом товаре [09:18:51]line ОКРУГЛЕНИЕ: -0.65 [09:18:51]line ИТОГО: 1000.00 [09:18:51]line Внесено: 1000.00 [09:18:51]line СДАЧА: 0.00 [09:18:51]line НСП 1% : 8.85 [09:18:51]line НДС 12% : 106.26 [09:18:51]line Наличными: 1000.00 [09:18:51]line Безнал.: 0.00 [09:18:51]line Место: АЗС № 120 "Партнер Нефть" [09:18:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:18:51]line СНО: Общий режим [09:18:51]line Чек 48 22.06.2024 09:18 [09:18:51]line Смена: 356 ФФД: 1.0 [09:18:51]line ЗНМ: 0300000164 [09:18:51]line РНМ: 0000000000092785 [09:18:51]line Версия ККМ: 001 [09:18:51]line ФМ: 0000000000875093 [09:18:51]line ФД: 104315 [09:18:51]line ФПД: 175250537882313 [09:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104315&fm=175250537882313&tin=02508201610067®Number=0000000000092785&sum=100000 [09:18:51]OFD Sender: Processing packet 104315 [packets to send 17, broken 16] [09:18:51]ProducePacketName [09:18:51]name=ofd_packets/00104315 [09:18:51]OFD Sender: To server: pG, [09:18:51]CommunicateWithHost lk.salyk.kg:30040 [09:18:51]ConnectInit lk.salyk.kg [09:18:51]written 0, free lines is 4095 [09:18:51]Connected sock=10 [09:18: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 25 A4 07 01 16 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 FD 96 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F 63 B2 0E A2 C9 FA B8 C9 4C C7 69 F4 FE [09:18: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 0A FA 47 00 4F 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 7B 97 01 00 F4 03 04 00 7D 3D 76 66 B6 04 01 00 00 69 6E 10 86 B6 41 D3 C9 [09:18:51]CommunicateWithHost err = 0 [09:18:51]CheckOFDResponse [09:18:51]1017 (14) - 77093643461234 [09:18:51]1041 (16) - 0000000000875093 [09:18:51]1040 (4) - 104315 [09:18:51]1012 (4) - 22.06.2024 02:57 [09:18:51]1206 (1) - 0 [09:18:51]OFD Sender: Remove packet 104315 [09:18:51]ProducePacketName [09:18:51]name=ofd_packets/00104315 [09:18:51]NVStorageDeleteData [09:18:51]Write to MH i2c: 01 00 00 5F 28 87 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 5F 28 00 00 00 00 00 D0 0C 6A [09:18:51]RasterBufferAndPrint [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]written 0, free lines is 3287 [09:18:52]MH_Cut [09:18:52]Write to MH i2c: D1 01 00 66 28 01 60 [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 01 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 01 00 66 28 00 5F [09:18:52]Write to MH i2c: 01 00 00 67 28 8F [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]OFD Sender: No OFD packet to send [09:18:52]*** Cut start [09:18:52]*** Partial cut [09:18:52]*** CUTSNS_PIN = 1 [09:18:52]*** CUTSNS_PIN = 0 [09:18:53]*** Brake cut motor [09:18:53]Read from MH i2c: 01 [09:18:53]MH_I2C_Read... [09:18:53]*** Stop cut motor [09:18:53]*** Cut end [09:18:53]Read from MH i2c: 01 07 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: 01 07 00 67 28 00 00 00 00 00 FF 0F A4 [09:18:53]process_action close_receipt done [09:18:53]requested_data is exist [09:18:53]produce_requested_data [09:18:53]requested_item fm.sn is exist - process it [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 11 00 00 [09:18:53]Write to MH i2c: E2 08 00 68 28 80 11 00 00 00 00 00 00 0A [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 17 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 17 00 68 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [09:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:53]wFMCommunicate OK [09:18:53]requested_item fd.num is exist - process it [09:18:53]SAM_PROTO_GetFieldsCounters [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 13 00 00 [09:18:53]Write to MH i2c: E2 08 00 69 28 80 13 00 00 00 00 00 00 0D [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 62 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 62 00 69 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3C [09:18: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 97 01 00 0E 04 04 00 64 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 [09:18:53]wFMCommunicate OK [09:18:53]SAM_PROTO_GetFieldsCounters done [09:18:53]requested_item shift.num is exist - process it [09:18:53]requested_item shift.opened is exist - process it [09:18:53]req_shift_opened [09:18:53]FM_GetShiftState [09:18:53]SAM_PROTO_GetShiftState [09:18:53]wFMCommunicate request_size=4 [09:18:53]MH_SAM_APDU [09:18:53]CAPDU: 80 13 01 00 [09:18:53]Write to MH i2c: E2 08 00 6A 28 80 13 01 00 00 00 00 00 0F [09:18:53]Write i2c OK [09:18:53]MH_I2C_Read... [09:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:53]Read from MH i2c: E2 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 0E 00 [09:18:53]MH_I2C_Read... [09:18:53]Read from MH i2c: E2 0E 00 6A 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 01 [09:18:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:18:53]wFMCommunicate OK [09:18:53]SAM_PROTO_GetShiftState done [09:18:53]FM_GetShiftState done [09:18:53]req_shift_opened done [09:18:53]requested_item shift.open_date is exist - process it [09:18:53]req_shift_open_date [09:18:53]req_shift_open_date done [09:18:53]produce_requested_data done [09:18:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:18:53]process_action_free close_receipt [09:18:53]json_value_free [09:18:53]json_value_free done [09:18:53]process_json_proto returns [09:18:53]Send response to host [09:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:18:53]free response buf [09:18:53]execute_script done [09:18:53]execute_script returns [09:18:53]free content buf [09:18:53]Sock 7.Close socket [09:18:53]Sock 7.Thread stoped [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:18]accept exits with 9 [09:19:18]New connection [09:19:18]New thread 3067616612 created [09:19:18]Thread 3067473252 joined [09:19:18]Waiting for new connection... [09:19:18] Sock 9.Parse request [09:19:18]Sock 9.Check first char [09:19:18]Sock 9.First char is OK [09:19:18]request: POST /json_proto HTTP/1.0 [09:19:18]Method: POST [09:19:18]URL: /json_proto [09:19:18]Method is POST - this is cgi request [09:19:18]url: /json_proto [09:19:18]query_string will be loaded in cgi processing [09:19:18]execute_cgi json_proto POST (null) [09:19:18]execute_cgi path=json_proto method=POST [09:19:18]POST find Content-Length [09:19:18]Host: 172.17.38.133:8080 [09:19:18]Content-Length: 1205 [09:19:18]Content-Type: application/json [09:19:18] [09:19:18]POST finish read [09:19:18]Found Content-Length = 1205 [09:19:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673811\u000A22.06.2024 08:56\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\u000A3543807;3543823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:18]execute_script... [09:19:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673811\u000A22.06.2024 08:56\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\u000A3543807;3543823\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:18]POST & json_proto [09:19:18]process_json_proto [09:19:18]json parsed OK: [09:19:18]protocol is kg_v1.0 [09:19:18]action value=print_text [09:19:18]process_action print_text [09:19:18]cmd_print_text [09:19:18]ExternCall_PrintAddStr [09:19:18]wPrintStart [09:19:18]Write to MH i2c: 01 00 00 6B 28 93 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 6B 28 00 00 00 00 00 FF 0F A8 [09:19:18]RasterBufferAndPrint [09:19:18]line *****ТОВАРНЫЙ ЧЕК***** [09:19:18]line АЗС 120 [09:19:18]line Партнер нефть [09:19:18]line 02508201610067 [09:19:18]line Кассир : Байбугуева Г. [09:19:18]line Счет N : (1)673811 [09:19:18]line 22.06.2024 08:56 [09:19:18]line ПРОДАЖА [09:19:18]line ТРК (МРК, ГНК): 42 [09:19:18]line Вид ГСМ : 2710124130 [09:19:18]line Аи-92-К-5 [09:19:18]line 20.000 x 66.40 [09:19:18]line ИТОГ: 1328.00 [09:19:18]line Тип оплаты: Талоны: Партнер нефть [09:19:18]line 3543807;3543823 [09:19:18]line ______________________ [09:19:18]line (подпись) [09:19:18]written 0, free lines is 4095 [09:19:18]Write to MH i2c: 01 00 00 7F 28 A7 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 7F 28 00 00 00 00 00 18 0E D4 [09:19:18]RasterBufferAndPrint [09:19:18]line [09:19:18]line [09:19:18]line [09:19:18]line [09:19:18]line [09:19:18]written 0, free lines is 3609 [09:19:18]MH_Cut [09:19:18]Write to MH i2c: D1 01 00 86 28 01 80 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: D1 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: D1 01 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: D1 01 00 86 28 00 7F [09:19:18]Write to MH i2c: 01 00 00 87 28 AF [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:19]*** Cut start [09:19:19]*** Partial cut [09:19:19]*** CUTSNS_PIN = 1 [09:19:19]*** CUTSNS_PIN = 0 [09:19:19]*** Brake cut motor [09:19:19]Read from MH i2c: 01 [09:19:19]MH_I2C_Read... [09:19:19]*** Stop cut motor [09:19:19]*** Cut end [09:19:19]Read from MH i2c: 01 07 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 FF 0F C4 [09:19:19]process_action print_text done [09:19:19]requested_data is exist [09:19:19]produce_requested_data [09:19:19]requested_item fm.sn is exist - process it [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 11 00 00 [09:19:19]Write to MH i2c: E2 08 00 88 28 80 11 00 00 00 00 00 00 2A [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 17 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 17 00 88 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [09: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 [09:19:19]wFMCommunicate OK [09:19:19]requested_item fd.num is exist - process it [09:19:19]SAM_PROTO_GetFieldsCounters [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 13 00 00 [09:19:19]Write to MH i2c: E2 08 00 89 28 80 13 00 00 00 00 00 00 2D [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 62 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 62 00 89 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5C [09: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 7B 97 01 00 0E 04 04 00 64 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 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_GetFieldsCounters done [09:19:19]requested_item shift.num is exist - process it [09:19:19]requested_item shift.opened is exist - process it [09:19:19]req_shift_opened [09:19:19]FM_GetShiftState [09:19:19]SAM_PROTO_GetShiftState [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 13 01 00 [09:19:19]Write to MH i2c: E2 08 00 8A 28 80 13 01 00 00 00 00 00 2F [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 8A 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 21 [09:19:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_GetShiftState done [09:19:19]FM_GetShiftState done [09:19:19]req_shift_opened done [09:19:19]requested_item shift.open_date is exist - process it [09:19:19]req_shift_open_date [09:19:19]req_shift_open_date done [09:19:19]produce_requested_data done [09:19:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:19:19]process_action_free print_text [09:19:19]json_value_free [09:19:19]json_value_free done [09:19:19]process_json_proto returns [09:19:19]Send response to host [09:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:19:19]free response buf [09:19:19]execute_script done [09:19:19]execute_script returns [09:19:19]free content buf [09:19:19]Sock 9.Close socket [09:19:19]Sock 9.Thread stoped [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:54]accept exits with 7 [09:20:54]New connection [09:20:54]New thread 3067473252 created [09:20:54]Thread 3067616612 joined [09:20:54]Waiting for new connection... [09:20:54] Sock 7.Parse request [09:20:54]Sock 7.Check first char [09:20:54]Sock 7.First char is OK [09:20:54]request: POST /json_proto HTTP/1.0 [09:20:54]Method: POST [09:20:54]URL: /json_proto [09:20:54]Method is POST - this is cgi request [09:20:54]url: /json_proto [09:20:54]query_string will be loaded in cgi processing [09:20:54]execute_cgi json_proto POST (null) [09:20:54]execute_cgi path=json_proto method=POST [09:20:54]POST find Content-Length [09:20:54]Host: 172.17.38.133:8080 [09:20:54]Content-Length: 1196 [09:20:54]Content-Type: application/json [09:20:54] [09:20:54]POST finish read [09:20:54]Found Content-Length = 1196 [09:20: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673812\u000A22.06.2024 08:57\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\u000A3888551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:54]execute_script... [09:20: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673812\u000A22.06.2024 08:57\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\u000A3888551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:54]POST & json_proto [09:20:54]process_json_proto [09:20:54]json parsed OK: [09:20:54]protocol is kg_v1.0 [09:20:54]action value=print_text [09:20:54]process_action print_text [09:20:54]cmd_print_text [09:20:54]ExternCall_PrintAddStr [09:20:54]wPrintStart [09:20:54]Write to MH i2c: 01 00 00 8B 28 B3 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 07 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 07 00 8B 28 00 00 00 00 00 FF 0F C8 [09:20:54]RasterBufferAndPrint [09:20:54]line *****ТОВАРНЫЙ ЧЕК***** [09:20:54]line АЗС 120 [09:20:54]line Партнер нефть [09:20:54]line 02508201610067 [09:20:54]line Кассир : Байбугуева Г. [09:20:54]line Счет N : (1)673812 [09:20:54]line 22.06.2024 08:57 [09:20:54]line ПРОДАЖА [09:20:54]line ТРК (МРК, ГНК): 32 [09:20:54]line Вид ГСМ : 2710124130 [09:20:54]line Аи-92-К-5 [09:20:54]line 10.000 x 66.40 [09:20:54]line ИТОГ: 664.00 [09:20:54]line Тип оплаты: Талоны: Партнер нефть [09:20:54]line 3888551 [09:20:54]line ______________________ [09:20:54]line (подпись) [09:20:54]written 0, free lines is 4095 [09:20:54]Write to MH i2c: 01 00 00 9F 28 C7 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 07 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 12 0E EE [09:20:54]RasterBufferAndPrint [09:20:54]line [09:20:54]line [09:20:54]line [09:20:54]line [09:20:54]line [09:20:54]written 0, free lines is 3604 [09:20:54]MH_Cut [09:20:54]Write to MH i2c: D1 01 00 A6 28 01 A0 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: D1 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: D1 01 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: D1 01 00 A6 28 00 9F [09:20:54]Write to MH i2c: 01 00 00 A7 28 CF [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]*** Cut start [09:20:54]*** Partial cut [09:20:54]*** CUTSNS_PIN = 1 [09:20:54]*** CUTSNS_PIN = 0 [09:20:55]*** Brake cut motor [09:20:55]Read from MH i2c: 01 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 07 00 [09:20:55]MH_I2C_Read... [09:20:55]*** Stop cut motor [09:20:55]*** Cut end [09:20:55]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 FF 0F E4 [09:20:55]process_action print_text done [09:20:55]requested_data is exist [09:20:55]produce_requested_data [09:20:55]requested_item fm.sn is exist - process it [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 11 00 00 [09:20:55]Write to MH i2c: E2 08 00 A8 28 80 11 00 00 00 00 00 00 4A [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 A8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [09:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:20:55]wFMCommunicate OK [09:20:55]requested_item fd.num is exist - process it [09:20:55]SAM_PROTO_GetFieldsCounters [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 13 00 00 [09:20:55]Write to MH i2c: E2 08 00 A9 28 80 13 00 00 00 00 00 00 4D [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 62 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 62 00 A9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7C [09:20: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 7B 97 01 00 0E 04 04 00 64 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 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_GetFieldsCounters done [09:20:55]requested_item shift.num is exist - process it [09:20:55]requested_item shift.opened is exist - process it [09:20:55]req_shift_opened [09:20:55]FM_GetShiftState [09:20:55]SAM_PROTO_GetShiftState [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 13 01 00 [09:20:55]Write to MH i2c: E2 08 00 AA 28 80 13 01 00 00 00 00 00 4F [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0E 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0E 00 AA 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 41 [09:20:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_GetShiftState done [09:20:55]FM_GetShiftState done [09:20:55]req_shift_opened done [09:20:55]requested_item shift.open_date is exist - process it [09:20:55]req_shift_open_date [09:20:55]req_shift_open_date done [09:20:55]produce_requested_data done [09:20:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:20:55]process_action_free print_text [09:20:55]json_value_free [09:20:55]json_value_free done [09:20:55]process_json_proto returns [09:20:55]Send response to host [09:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104315,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:20:55]free response buf [09:20:55]execute_script done [09:20:55]execute_script returns [09:20:55]free content buf [09:20:55]Sock 7.Close socket [09:20:55]Sock 7.Thread stoped [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:38]accept exits with 9 [09:21:38]New connection [09:21:38]New thread 3067616612 created [09:21:38]Thread 3067473252 joined [09:21:38]Waiting for new connection... [09:21:38] Sock 9.Parse request [09:21:38]Sock 9.Check first char [09:21:38]Sock 9.First char is OK [09:21:38]request: POST /json_proto HTTP/1.0 [09:21:38]Method: POST [09:21:38]URL: /json_proto [09:21:38]Method is POST - this is cgi request [09:21:38]url: /json_proto [09:21:38]query_string will be loaded in cgi processing [09:21:38]execute_cgi json_proto POST (null) [09:21:38]execute_cgi path=json_proto method=POST [09:21:38]POST find Content-Length [09:21:38]Host: 172.17.38.133:8080 [09:21:38]Content-Length: 800 [09:21:38]Content-Type: application/json [09:21:38] [09:21:38]POST finish read [09:21:38]Found Content-Length = 800 [09:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673813", "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" ] } } [09:21:38]execute_script... [09:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673813", "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" ] } } [09:21:38]POST & json_proto [09:21:38]process_json_proto [09:21:38]json parsed OK: [09:21:38]protocol is kg_v1.0 [09:21:38]action value=close_receipt [09:21:38]process_action close_receipt [09:21:38]cmd_close_receipt [09:21:38]MH_GetDate [09:21:38]Write to MH i2c: F0 00 00 AB 28 C2 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 AB 28 00 A7 97 76 66 BD 8F 7C 64 11 [09:21:38]GetLastDocTimeStamp 1719047933 [09:21:38]current date 1719048103 [09:21:38]FM_GetShiftState [09:21:38]SAM_PROTO_GetShiftState [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 13 01 00 [09:21:38]Write to MH i2c: E2 08 00 AC 28 80 13 01 00 00 00 00 00 51 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 AC 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 43 [09:21:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_GetShiftState done [09:21:38]FM_GetShiftState done [09:21:38]opened in 1719016176 [09:21:38]opened+sec_in_day 1719102576 [09:21:38]quantity*price = 66001 [09:21:38]sum+1 = 66003 [09:21:38]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 СНО: Общий режим Чек 49 22.06.2024 09:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104316 ФПД: 81111662228357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104316&fm=81111662228357&tin=02508201610067®Number=0000000000092785&sum=66002 [09:21:40]StoreToDocumentArchive [09:21:40]shift 356 fd 104316 [09:21:40]save to /storage/0356/doc_00104316 [09:21:40]save last doc name /storage/0356/doc_00104316 to /storage/kkm_last_doc_name [09:21:40]save OK [09:21:40]Clear old archive folders... [09:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:40]tlvbuf is 00714A10 [09:21:40]SAM_PROTO_ClearQueue [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 09 00 00 [09:21:40]Write to MH i2c: E2 08 00 B9 28 80 09 00 00 00 00 00 00 53 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 B9 28 00 90 00 55 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_ClearQueue done [09:21:40]KKMCreateOFDPacket [09:21:40]OFDProtocolAddRootSTLVToBuf [09:21:40]FM_MakeSignedData [09:21:40]FM_MakeSignedData [09:21:40]SAM_PROTO_SignData [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 01 02 [09:21:40]Write to MH i2c: E2 08 00 BA 28 80 0D 01 02 00 00 00 00 5B [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 BA 28 00 90 00 56 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=255 [09:21:40]MH_SAM_APDU [09:21: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 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 31 00 00 00 F4 03 04 00 A7 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 [09:21:40]Write to MH i2c: E2 02 01 BB 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 A7 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 00 00 BD [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 BB 28 00 90 00 57 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=10 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 02 02 05 C5 47 D0 73 85 [09:21:40]Write to MH i2c: E2 0D 00 BC 28 80 0D 02 02 05 00 C5 47 D0 73 85 00 00 3C [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 03 02 [09:21:40]Write to MH i2c: E2 08 00 BD 28 80 0D 03 02 00 00 00 00 60 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 BD 28 00 A8 CE E6 4B A7 EF 9A E1 90 00 19 [09:21:40]RAPDU: A8 CE E6 4B A7 EF 9A E1 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_SignData done [09:21:40]FM_MakeSignedData done [09:21:40]CreateOFDProtocolMessage [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 11 00 00 [09:21:40]Write to MH i2c: E2 08 00 BE 28 80 11 00 00 00 00 00 00 60 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 BE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [09:21: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:21:40]wFMCommunicate OK [09:21:40]CreateOFDProtocolMessage done [09:21:40]OFDSenderStorePacket 104316 [09:21:40]StoreOFDPacket docnum=104316 [09:21: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 23 75 07 01 05 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 A7 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 C5 47 D0 73 85 A8 CE E6 4B A7 EF 9A E1 [09:21:40]CheckFolder [09:21:40]dirname=/storage/ofd_packets [09:21:40]CheckFolder done [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00104316 [09:21:40]NVStorageSaveData ofd_packets/00104316 [09:21:40]File name is /storage/ofd_packets/00104316 [09:21:40]Write 301 bytes [09:21:40]NVStorageSaveData done [09:21:40]OFDSenderStorePacket done [09:21:40]KKMCreateOFDPacket done [09:21:40]NVStorageSaveData kkm_last_timestamp [09:21:40]File name is /storage/kkm_last_timestamp [09:21:40]Write 4 bytes [09:21:40]NVStorageSaveData done [09:21:40]ExternCall_PrintAddStr [09:21:40]wPrintStart [09:21:40]Write to MH i2c: 01 00 00 BF 28 E7 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 FF 0F FC [09:21:40]RasterBufferAndPrint [09:21:40]line Счет N : (1)673813 [09:21:40]line ИНН: 02508201610067 [09:21:40]line Контрольно-Кассовый Чек [09:21:40]line ПРОДАЖА [09:21:40]line ТРК (МРК, ГНК) : 42 [09:21:40]line Товар: 2710124130 [09:21:40]line Аи-92-К-5 [09:21:40]line 9.940 * 66.40 [09:21:40]line = 660.02 [09:21:40]line НДС 12% НСП 1% [09:21:40]line > о реализуемом товаре [09:21:40]line ИТОГО: 660.02 [09:21:40]line НСП 1% : 5.84 [09:21:40]line НДС 12% : 70.09 [09:21:40]line Наличными: 0.00 [09:21:40]line Безнал.: 660.02 [09:21:40]line Место: АЗС № 120 "Партнер Нефть" [09:21:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:21:40]line СНО: Общий режим [09:21:40]line Чек 49 22.06.2024 09:21 [09:21:40]line Смена: 356 ФФД: 1.0 [09:21:40]line ЗНМ: 0300000164 [09:21:40]line РНМ: 0000000000092785 [09:21:40]line Версия ККМ: 001 [09:21:40]line Платежная система: O! деньги [09:21:40]line ФМ: 0000000000875093 [09:21:40]line ФД: 104316 [09:21:40]line ФПД: 81111662228357 [09:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104316&fm=81111662228357&tin=02508201610067®Number=0000000000092785&sum=66002 [09:21:40]OFD Sender: Processing packet 104316 [packets to send 17, broken 16] [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00104316 [09:21:40]OFD Sender: To server: pG, [09:21:40]CommunicateWithHost lk.salyk.kg:30040 [09:21:40]ConnectInit lk.salyk.kg [09:21:40]written 0, free lines is 4095 [09:21:41]Connected sock=10 [09:21: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 23 75 07 01 05 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 A7 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 C5 47 D0 73 85 A8 CE E6 4B A7 EF 9A E1 [09:21:41]Write to MH i2c: 01 00 00 E9 28 11 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 E9 28 00 00 00 00 00 EB 0C 0F [09:21:41]RasterBufferAndPrint [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]written 0, free lines is 3314 [09:21: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 1D 6A 47 00 F2 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 7C 97 01 00 F4 03 04 00 26 3E 76 66 B6 04 01 00 00 A5 17 ED FC 7F F3 4E 6A [09:21:41]CommunicateWithHost err = 0 [09:21:41]CheckOFDResponse [09:21:41]1017 (14) - 77093643461234 [09:21:41]1041 (16) - 0000000000875093 [09:21:41]1040 (4) - 104316 [09:21:41]1012 (4) - 22.06.2024 02:59 [09:21:41]1206 (1) - 0 [09:21:41]OFD Sender: Remove packet 104316 [09:21:41]ProducePacketName [09:21:41]name=ofd_packets/00104316 [09:21:41]NVStorageDeleteData [09:21:41]MH_Cut [09:21:41]Write to MH i2c: D1 01 00 F0 28 01 EA [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 F0 28 00 E9 [09:21:41]Write to MH i2c: 01 00 00 F1 28 19 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]OFD Sender: No OFD packet to send [09:21:42]*** Cut start [09:21:42]*** Partial cut [09:21:42]*** CUTSNS_PIN = 1 [09:21:42]*** CUTSNS_PIN = 0 [09:21:42]*** Brake cut motor [09:21:42]Read from MH i2c: 01 [09:21:42]MH_I2C_Read... [09:21:42]*** Stop cut motor [09:21:42]*** Cut end [09:21:42]Read from MH i2c: 01 07 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 F1 28 00 00 00 00 00 FF 0F 2E [09:21:42]process_action close_receipt done [09:21:42]requested_data is exist [09:21:42]produce_requested_data [09:21:42]requested_item fm.sn is exist - process it [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 11 00 00 [09:21:42]Write to MH i2c: E2 08 00 F2 28 80 11 00 00 00 00 00 00 94 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 F2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [09:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:21:42]wFMCommunicate OK [09:21:42]requested_item fd.num is exist - process it [09:21:42]SAM_PROTO_GetFieldsCounters [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 00 00 [09:21:42]Write to MH i2c: E2 08 00 F3 28 80 13 00 00 00 00 00 00 97 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 F3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 CA [09:21: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 7C 97 01 00 0E 04 04 00 64 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 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_GetFieldsCounters done [09:21:43]requested_item shift.num is exist - process it [09:21:43]requested_item shift.opened is exist - process it [09:21:43]req_shift_opened [09:21:43]FM_GetShiftState [09:21:43]SAM_PROTO_GetShiftState [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 13 01 00 [09:21:43]Write to MH i2c: E2 08 00 F4 28 80 13 01 00 00 00 00 00 99 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 F4 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8B [09:21:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_GetShiftState done [09:21:43]FM_GetShiftState done [09:21:43]req_shift_opened done [09:21:43]requested_item shift.open_date is exist - process it [09:21:43]req_shift_open_date [09:21:43]req_shift_open_date done [09:21:43]produce_requested_data done [09:21:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104316,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:21:43]process_action_free close_receipt [09:21:43]json_value_free [09:21:43]json_value_free done [09:21:43]process_json_proto returns [09:21:43]Send response to host [09:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104316,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:21:43]free response buf [09:21:43]execute_script done [09:21:43]execute_script returns [09:21:43]free content buf [09:21:43]Sock 9.Close socket [09:21:43]Sock 9.Thread stoped [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:27]accept exits with 7 [09:22:27]New connection [09:22:27]New thread 3067473252 created [09:22:27]Thread 3067616612 joined [09:22:27]Waiting for new connection... [09:22:27] Sock 7.Parse request [09:22:27]Sock 7.Check first char [09:22:27]Sock 7.First char is OK [09:22:27]request: POST /json_proto HTTP/1.0 [09:22:27]Method: POST [09:22:27]URL: /json_proto [09:22:27]Method is POST - this is cgi request [09:22:27]url: /json_proto [09:22:27]query_string will be loaded in cgi processing [09:22:27]execute_cgi json_proto POST (null) [09:22:27]execute_cgi path=json_proto method=POST [09:22:27]POST find Content-Length [09:22:27]Host: 172.17.38.133:8080 [09:22:27]Content-Length: 678 [09:22:27]Content-Type: application/json [09:22:27] [09:22:27]POST finish read [09:22:27]Found Content-Length = 678 [09:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673814", "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.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:27]execute_script... [09:22: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)673814", "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.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:27]POST & json_proto [09:22:27]process_json_proto [09:22:27]json parsed OK: [09:22:27]protocol is kg_v1.0 [09:22:27]action value=close_receipt [09:22:27]process_action close_receipt [09:22:27]cmd_close_receipt [09:22:27]MH_GetDate [09:22:27]Write to MH i2c: F0 00 00 F5 28 0C [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 09 00 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 09 00 F5 28 00 D8 97 76 66 BD 8F 7C 64 8C [09:22:27]GetLastDocTimeStamp 1719048103 [09:22:27]current date 1719048152 [09:22:27]FM_GetShiftState [09:22:27]SAM_PROTO_GetShiftState [09:22:27]wFMCommunicate request_size=4 [09:22:27]MH_SAM_APDU [09:22:27]CAPDU: 80 13 01 00 [09:22:27]Write to MH i2c: E2 08 00 F6 28 80 13 01 00 00 00 00 00 9B [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:27]Read from MH i2c: E2 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 0E 00 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 0E 00 F6 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8D [09:22:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:22:27]wFMCommunicate OK [09:22:27]SAM_PROTO_GetShiftState done [09:22:27]FM_GetShiftState done [09:22:27]opened in 1719016176 [09:22:27]opened+sec_in_day 1719102576 [09:22:27]quantity*price = 74047 [09:22:27]sum+1 = 74049 [09:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.63 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 22.06.2024 09:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104317 ФПД: 262393428953277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104317&fm=262393428953277&tin=02508201610067®Number=0000000000092785&sum=74000 [09:22:29]StoreToDocumentArchive [09:22:29]shift 356 fd 104317 [09:22:29]save to /storage/0356/doc_00104317 [09:22:29]save last doc name /storage/0356/doc_00104317 to /storage/kkm_last_doc_name [09:22:29]save OK [09:22:29]Clear old archive folders... [09:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:29]tlvbuf is 006744D0 [09:22:29]SAM_PROTO_ClearQueue [09:22:29]wFMCommunicate request_size=4 [09:22:29]MH_SAM_APDU [09:22:29]CAPDU: 80 09 00 00 [09:22:29]Write to MH i2c: E2 08 00 03 29 80 09 00 00 00 00 00 00 9E [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 03 29 00 90 00 A0 [09:22:29]RAPDU: 90 00 [09:22:29]wFMCommunicate OK [09:22:29]SAM_PROTO_ClearQueue done [09:22:29]KKMCreateOFDPacket [09:22:29]OFDProtocolAddRootSTLVToBuf [09:22:29]FM_MakeSignedData [09:22:29]FM_MakeSignedData [09:22:29]SAM_PROTO_SignData [09:22:29]wFMCommunicate request_size=4 [09:22:29]MH_SAM_APDU [09:22:29]CAPDU: 80 0D 01 02 [09:22:29]Write to MH i2c: E2 08 00 04 29 80 0D 01 02 00 00 00 00 A6 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 04 29 00 90 00 A1 [09:22:29]RAPDU: 90 00 [09:22:29]wFMCommunicate OK [09:22:29]wFMCommunicate request_size=255 [09:22:29]MH_SAM_APDU [09:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 D8 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE [09:22:29]Write to MH i2c: E2 02 01 05 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 D8 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE 00 00 10 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 05 29 00 90 00 A2 [09:22:29]RAPDU: 90 00 [09:22:29]wFMCommunicate OK [09:22:29]wFMCommunicate request_size=10 [09:22:29]MH_SAM_APDU [09:22:29]CAPDU: 80 0D 02 02 05 A5 3B 1F C8 BD [09:22:29]Write to MH i2c: E2 0D 00 06 29 80 0D 02 02 05 00 A5 3B 1F C8 BD 00 00 37 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 03 00 06 29 00 90 00 A3 [09:22:29]RAPDU: 90 00 [09:22:29]wFMCommunicate OK [09:22:29]wFMCommunicate request_size=4 [09:22:29]MH_SAM_APDU [09:22:29]CAPDU: 80 0D 03 02 [09:22:29]Write to MH i2c: E2 08 00 07 29 80 0D 03 02 00 00 00 00 AB [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 0B 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 0B 00 07 29 00 B1 A0 61 FD 77 1F A0 F0 90 00 81 [09:22:29]RAPDU: B1 A0 61 FD 77 1F A0 F0 90 00 [09:22:29]wFMCommunicate OK [09:22:29]SAM_PROTO_SignData done [09:22:29]FM_MakeSignedData done [09:22:29]CreateOFDProtocolMessage [09:22:29]wFMCommunicate request_size=4 [09:22:29]MH_SAM_APDU [09:22:29]CAPDU: 80 11 00 00 [09:22:29]Write to MH i2c: E2 08 00 08 29 80 11 00 00 00 00 00 00 AB [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:29]Read from MH i2c: E2 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 17 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: E2 17 00 08 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [09:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:22:29]wFMCommunicate OK [09:22:29]CreateOFDProtocolMessage done [09:22:29]OFDSenderStorePacket 104317 [09:22:29]StoreOFDPacket docnum=104317 [09:22: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 89 C2 07 01 67 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 D8 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE A5 3B 1F C8 BD B1 A0 61 FD 77 1F A0 F0 [09:22:29]CheckFolder [09:22:29]dirname=/storage/ofd_packets [09:22:29]CheckFolder done [09:22:29]ProducePacketName [09:22:29]name=ofd_packets/00104317 [09:22:29]NVStorageSaveData ofd_packets/00104317 [09:22:29]File name is /storage/ofd_packets/00104317 [09:22:29]Write 301 bytes [09:22:29]NVStorageSaveData done [09:22:29]OFDSenderStorePacket done [09:22:29]KKMCreateOFDPacket done [09:22:29]NVStorageSaveData kkm_last_timestamp [09:22:29]File name is /storage/kkm_last_timestamp [09:22:29]Write 4 bytes [09:22:29]NVStorageSaveData done [09:22:29]ExternCall_PrintAddStr [09:22:29]wPrintStart [09:22:29]Write to MH i2c: 01 00 00 09 29 32 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 09 29 00 00 00 00 00 FF 0F 47 [09:22:29]RasterBufferAndPrint [09:22:29]line Счет N : (1)673814 [09:22:29]line ИНН: 02508201610067 [09:22:29]line Контрольно-Кассовый Чек [09:22:29]line ПРОДАЖА [09:22:29]line ТРК (МРК, ГНК) : 31 [09:22:29]line Товар: 2710124500 [09:22:29]line Аи-95-К-5 [09:22:29]line 10.020 * 73.90 [09:22:29]line = 740.48 [09:22:29]line НДС 12% НСП 1% [09:22:29]line > о реализуемом товаре [09:22:29]line ОКРУГЛЕНИЕ: -0.48 [09:22:29]line ИТОГО: 740.00 [09:22:29]line Внесено: 740.00 [09:22:29]line СДАЧА: 0.00 [09:22:29]line НСП 1% : 6.55 [09:22:29]line НДС 12% : 78.63 [09:22:29]line Наличными: 740.00 [09:22:29]line Безнал.: 0.00 [09:22:29]line Место: АЗС № 120 "Партнер Нефть" [09:22:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:22:29]line СНО: Общий режим [09:22:29]line Чек 50 22.06.2024 09:22 [09:22:29]line Смена: 356 ФФД: 1.0 [09:22:29]line ЗНМ: 0300000164 [09:22:29]line РНМ: 0000000000092785 [09:22:29]line Версия ККМ: 001 [09:22:29]line ФМ: 0000000000875093 [09:22:29]line ФД: 104317 [09:22:29]line ФПД: 262393428953277 [09:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104317&fm=262393428953277&tin=02508201610067®Number=0000000000092785&sum=74000 [09:22:29]OFD Sender: Processing packet 104317 [packets to send 17, broken 16] [09:22:29]ProducePacketName [09:22:29]name=ofd_packets/00104317 [09:22:29]OFD Sender: To server: pG, [09:22:29]CommunicateWithHost lk.salyk.kg:30040 [09:22:29]ConnectInit lk.salyk.kg [09:22:29]written 0, free lines is 4095 [09:22:29]Connected sock=10 [09:22: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 89 C2 07 01 67 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 D8 97 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 EE A5 3B 1F C8 BD B1 A0 61 FD 77 1F A0 F0 [09: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 D7 41 47 00 B8 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 97 01 00 F4 03 04 00 57 3E 76 66 B6 04 01 00 00 FA 50 AB 33 AD E2 6E 70 [09:22:30]CommunicateWithHost err = 0 [09:22:30]CheckOFDResponse [09:22:30]1017 (14) - 77093643461234 [09:22:30]1041 (16) - 0000000000875093 [09:22:30]1040 (4) - 104317 [09:22:30]1012 (4) - 22.06.2024 03:00 [09:22:30]1206 (1) - 0 [09:22:30]OFD Sender: Remove packet 104317 [09:22:30]ProducePacketName [09:22:30]name=ofd_packets/00104317 [09:22:30]NVStorageDeleteData [09:22:30]Write to MH i2c: 01 00 00 34 29 5D [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: 01 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: 01 07 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: 01 07 00 34 29 00 00 00 00 00 D4 0C 44 [09:22:30]RasterBufferAndPrint [09:22:30]line [09:22:30]line [09:22:30]line [09:22:30]line [09:22:30]line [09:22:30]written 0, free lines is 3288 [09:22:30]MH_Cut [09:22:30]Write to MH i2c: D1 01 00 3B 29 01 36 [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: D1 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: D1 01 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: D1 01 00 3B 29 00 35 [09:22:30]Write to MH i2c: 01 00 00 3C 29 65 [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]OFD Sender: No OFD packet to send [09:22:31]*** Cut start [09:22:31]*** Partial cut [09:22:31]*** CUTSNS_PIN = 1 [09:22:31]*** CUTSNS_PIN = 0 [09:22:31]*** Brake cut motor [09:22:31]Read from MH i2c: 01 [09:22:31]MH_I2C_Read... [09:22:31]*** Stop cut motor [09:22:31]*** Cut end [09:22:31]Read from MH i2c: 01 07 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 FF 0F 7A [09:22:31]process_action close_receipt done [09:22:31]requested_data is exist [09:22:31]produce_requested_data [09:22:31]requested_item fm.sn is exist - process it [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 11 00 00 [09:22:31]Write to MH i2c: E2 08 00 3D 29 80 11 00 00 00 00 00 00 E0 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 17 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 17 00 3D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [09:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:22:31]wFMCommunicate OK [09:22:31]requested_item fd.num is exist - process it [09:22:31]SAM_PROTO_GetFieldsCounters [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 13 00 00 [09:22:31]Write to MH i2c: E2 08 00 3E 29 80 13 00 00 00 00 00 00 E3 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 62 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 62 00 3E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 1A [09:22: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 7D 97 01 00 0E 04 04 00 64 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 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_GetFieldsCounters done [09:22:31]requested_item shift.num is exist - process it [09:22:31]requested_item shift.opened is exist - process it [09:22:31]req_shift_opened [09:22:31]FM_GetShiftState [09:22:31]SAM_PROTO_GetShiftState [09:22:31]wFMCommunicate request_size=4 [09:22:31]MH_SAM_APDU [09:22:31]CAPDU: 80 13 01 00 [09:22:31]Write to MH i2c: E2 08 00 3F 29 80 13 01 00 00 00 00 00 E5 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:31]Read from MH i2c: E2 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 3F 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D7 [09:22:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_GetShiftState done [09:22:31]FM_GetShiftState done [09:22:31]req_shift_opened done [09:22:31]requested_item shift.open_date is exist - process it [09:22:31]req_shift_open_date [09:22:31]req_shift_open_date done [09:22:31]produce_requested_data done [09:22:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104317,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:22:31]process_action_free close_receipt [09:22:31]json_value_free [09:22:31]json_value_free done [09:22:31]process_json_proto returns [09:22:31]Send response to host [09:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104317,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:22:31]free response buf [09:22:31]execute_script done [09:22:31]execute_script returns [09:22:31]free content buf [09:22:31]Sock 7.Close socket [09:22:31]Sock 7.Thread stoped [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]accept exits with 9 [09:26:20]New connection [09:26:20]New thread 3067616612 created [09:26:20]Thread 3067473252 joined [09:26:20]Waiting for new connection... [09:26:20] Sock 9.Parse request [09:26:20]Sock 9.Check first char [09:26:20]Sock 9.First char is OK [09:26:20]request: POST /json_proto HTTP/1.0 [09:26:20]Method: POST [09:26:20]URL: /json_proto [09:26:20]Method is POST - this is cgi request [09:26:20]url: /json_proto [09:26:20]query_string will be loaded in cgi processing [09:26:20]execute_cgi json_proto POST (null) [09:26:20]execute_cgi path=json_proto method=POST [09:26:20]POST find Content-Length [09:26:20]Host: 172.17.38.133:8080 [09:26:20]Content-Length: 1212 [09:26:20]Content-Type: application/json [09:26:20] [09:26:20]POST finish read [09:26:20]Found Content-Length = 1212 [09: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673815\u000A22.06.2024 09: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 36.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2624.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" ] } } [09:26:20]execute_script... [09: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673815\u000A22.06.2024 09: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 36.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2624.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" ] } } [09:26:20]POST & json_proto [09:26:20]process_json_proto [09:26:20]json parsed OK: [09:26:20]protocol is kg_v1.0 [09:26:20]action value=print_text [09:26:20]process_action print_text [09:26:20]cmd_print_text [09:26:20]ExternCall_PrintAddStr [09:26:20]wPrintStart [09:26:20]Write to MH i2c: 01 00 00 40 29 69 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 07 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 07 00 40 29 00 00 00 00 00 FF 0F 7E [09:26:20]RasterBufferAndPrint [09:26:20]line *****ТОВАРНЫЙ ЧЕК***** [09:26:20]line АЗС 120 [09:26:20]line Партнер нефть [09:26:20]line 02508201610067 [09:26:20]line Кассир : Байбугуева Г. [09:26:20]line Счет N : (1)673815 [09:26:20]line 22.06.2024 09:03 [09:26:20]line ПРОДАЖА [09:26:20]line ТРК (МРК, ГНК): 21 [09:26:20]line Вид ГСМ : 2710194210 [09:26:20]line ДТ(л)-К-5 [09:26:20]line 36.000 x 72.90 [09:26:20]line ИТОГ: 2624.40 [09:26:20]line Тип оплаты: Талоны: Топливная Карта [09:26:20]line 00562 [09:26:20]line ______________________ [09:26:20]line (подпись) [09:26:20]written 0, free lines is 4095 [09:26:20]Write to MH i2c: 01 00 00 54 29 7D [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 07 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 07 00 54 29 00 00 00 00 00 12 0E A4 [09:26:20]RasterBufferAndPrint [09:26:20]line [09:26:20]line [09:26:20]line [09:26:20]line [09:26:20]line [09:26:20]written 0, free lines is 3604 [09:26:20]MH_Cut [09:26:20]Write to MH i2c: D1 01 00 5B 29 01 56 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: D1 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: D1 01 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: D1 01 00 5B 29 00 55 [09:26:20]Write to MH i2c: 01 00 00 5C 29 85 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** Cut start [09:26:20]*** Partial cut [09:26:20]*** CUTSNS_PIN = 1 [09:26:20]*** CUTSNS_PIN = 0 [09:26:20]OFD Sender: No OFD packet to send [09:26:21]*** Brake cut motor [09:26:21]Read from MH i2c: 01 [09:26:21]MH_I2C_Read... [09:26:21]*** Stop cut motor [09:26:21]*** Cut end [09:26:21]Read from MH i2c: 01 07 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 5C 29 00 00 00 00 00 FF 0F 9A [09:26:21]process_action print_text done [09:26:21]requested_data is exist [09:26:21]produce_requested_data [09:26:21]requested_item fm.sn is exist - process it [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 11 00 00 [09:26:21]Write to MH i2c: E2 08 00 5D 29 80 11 00 00 00 00 00 00 00 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 5D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [09: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 [09:26:21]wFMCommunicate OK [09:26:21]requested_item fd.num is exist - process it [09:26:21]SAM_PROTO_GetFieldsCounters [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 13 00 00 [09:26:21]Write to MH i2c: E2 08 00 5E 29 80 13 00 00 00 00 00 00 03 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 62 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 62 00 5E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3A [09: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 7D 97 01 00 0E 04 04 00 64 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 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_GetFieldsCounters done [09:26:21]requested_item shift.num is exist - process it [09:26:21]requested_item shift.opened is exist - process it [09:26:21]req_shift_opened [09:26:21]FM_GetShiftState [09:26:21]SAM_PROTO_GetShiftState [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 13 01 00 [09:26:21]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0E 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F7 [09:26:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_GetShiftState done [09:26:21]FM_GetShiftState done [09:26:21]req_shift_opened done [09:26:21]requested_item shift.open_date is exist - process it [09:26:21]req_shift_open_date [09:26:21]req_shift_open_date done [09:26:21]produce_requested_data done [09:26:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104317,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:26:21]process_action_free print_text [09:26:21]json_value_free [09:26:21]json_value_free done [09:26:21]process_json_proto returns [09:26:21]Send response to host [09:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104317,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:26:21]free response buf [09:26:21]execute_script done [09:26:21]execute_script returns [09:26:21]free content buf [09:26:21]Sock 9.Close socket [09:26:21]Sock 9.Thread stoped [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:20]accept exits with 7 [09:29:20]New connection [09:29:20]New thread 3067473252 created [09:29:20]Thread 3067616612 joined [09:29:20]Waiting for new connection... [09:29:20] Sock 7.Parse request [09:29:20]Sock 7.Check first char [09:29:20]Sock 7.First char is OK [09:29:20]request: POST /json_proto HTTP/1.0 [09:29:20]Method: POST [09:29:20]URL: /json_proto [09:29:20]Method is POST - this is cgi request [09:29:20]url: /json_proto [09:29:20]query_string will be loaded in cgi processing [09:29:20]execute_cgi json_proto POST (null) [09:29:20]execute_cgi path=json_proto method=POST [09:29:20]POST find Content-Length [09:29:20]Host: 172.17.38.133:8080 [09:29:20]Content-Length: 682 [09:29:20]Content-Type: application/json [09:29:20] [09:29:20]POST finish read [09:29:20]Found Content-Length = 682 [09:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673816", "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" ] } } [09:29:20]execute_script... [09:29: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)673816", "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" ] } } [09:29:20]POST & json_proto [09:29:20]process_json_proto [09:29:20]json parsed OK: [09:29:20]protocol is kg_v1.0 [09:29:20]action value=close_receipt [09:29:20]process_action close_receipt [09:29:20]cmd_close_receipt [09:29:20]MH_GetDate [09:29:20]Write to MH i2c: F0 00 00 60 29 78 [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: F0 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: F0 09 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: F0 09 00 60 29 00 74 99 76 66 BD 8F 7C 64 96 [09:29:20]GetLastDocTimeStamp 1719048152 [09:29:20]current date 1719048564 [09:29:20]FM_GetShiftState [09:29:20]SAM_PROTO_GetShiftState [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 13 01 00 [09:29:20]Write to MH i2c: E2 08 00 61 29 80 13 01 00 00 00 00 00 07 [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 61 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F9 [09:29:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetShiftState done [09:29:20]FM_GetShiftState done [09:29:20]opened in 1719016176 [09:29:20]opened+sec_in_day 1719102576 [09:29:20]quantity*price = 70056 [09:29:20]sum+1 = 70058 [09:29:20]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 СНО: Общий режим Чек 51 22.06.2024 09:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104318 ФПД: 144404718210283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104318&fm=144404718210283&tin=02508201610067®Number=0000000000092785&sum=70000 [09:29:21]StoreToDocumentArchive [09:29:21]shift 356 fd 104318 [09:29:21]save to /storage/0356/doc_00104318 [09:29:21]save last doc name /storage/0356/doc_00104318 to /storage/kkm_last_doc_name [09:29:21]save OK [09:29:21]Clear old archive folders... [09:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:29:21]tlvbuf is 00688950 [09:29:21]SAM_PROTO_ClearQueue [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 09 00 00 [09:29:21]Write to MH i2c: E2 08 00 6E 29 80 09 00 00 00 00 00 00 09 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]SAM_PROTO_ClearQueue done [09:29:21]KKMCreateOFDPacket [09:29:21]OFDProtocolAddRootSTLVToBuf [09:29:21]FM_MakeSignedData [09:29:21]FM_MakeSignedData [09:29:21]SAM_PROTO_SignData [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 01 02 [09:29:21]Write to MH i2c: E2 08 00 6F 29 80 0D 01 02 00 00 00 00 11 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=255 [09:29:21]MH_SAM_APDU [09:29: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 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 33 00 00 00 F4 03 04 00 74 99 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [09:29:21]Write to MH i2c: E2 02 01 70 29 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 33 00 00 00 F4 03 04 00 74 99 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 92 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 70 29 00 90 00 0D [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=11 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 02 02 06 83 55 D7 EE CC EB [09:29:21]Write to MH i2c: E2 0E 00 71 29 80 0D 02 02 06 00 83 55 D7 EE CC EB 00 00 74 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 71 29 00 90 00 0E [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 03 02 [09:29:21]Write to MH i2c: E2 08 00 72 29 80 0D 03 02 00 00 00 00 16 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0B 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0B 00 72 29 00 5F 0C D1 1A 14 53 A3 03 90 00 7A [09:29:21]RAPDU: 5F 0C D1 1A 14 53 A3 03 90 00 [09:29:21]wFMCommunicate OK [09:29:21]SAM_PROTO_SignData done [09:29:21]FM_MakeSignedData done [09:29:21]CreateOFDProtocolMessage [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 11 00 00 [09:29:21]Write to MH i2c: E2 08 00 73 29 80 11 00 00 00 00 00 00 16 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 17 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 17 00 73 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [09:29: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:29:21]wFMCommunicate OK [09:29:21]CreateOFDProtocolMessage done [09:29:21]OFDSenderStorePacket 104318 [09:29:21]StoreOFDPacket docnum=104318 [09:29: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 92 42 08 01 98 34 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 33 00 00 00 F4 03 04 00 74 99 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 55 D7 EE CC EB 5F 0C D1 1A 14 53 A3 03 [09:29:21]CheckFolder [09:29:21]dirname=/storage/ofd_packets [09:29:21]CheckFolder done [09:29:21]ProducePacketName [09:29:21]name=ofd_packets/00104318 [09:29:21]NVStorageSaveData ofd_packets/00104318 [09:29:21]File name is /storage/ofd_packets/00104318 [09:29:21]Write 302 bytes [09:29:21]NVStorageSaveData done [09:29:21]OFDSenderStorePacket done [09:29:21]KKMCreateOFDPacket done [09:29:21]NVStorageSaveData kkm_last_timestamp [09:29:21]File name is /storage/kkm_last_timestamp [09:29:21]Write 4 bytes [09:29:21]NVStorageSaveData done [09:29:21]ExternCall_PrintAddStr [09:29:21]wPrintStart [09:29:21]Write to MH i2c: 01 00 00 74 29 9D [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 FF 0F B2 [09:29:21]RasterBufferAndPrint [09:29:21]line Счет N : (1)673816 [09:29:21]line ИНН: 02508201610067 [09:29:21]line Контрольно-Кассовый Чек [09:29:21]line ПРОДАЖА [09:29:21]line ТРК (МРК, ГНК) : 21 [09:29:21]line Товар: 2710194210 [09:29:21]line ДТ(л)-К-5 [09:29:21]line 9.610 * 72.90 [09:29:21]line = 700.57 [09:29:21]line НДС 12% НСП 1% [09:29:21]line > о реализуемом товаре [09:29:21]line ОКРУГЛЕНИЕ: -0.57 [09:29:21]line ИТОГО: 700.00 [09:29:21]line Внесено: 700.00 [09:29:21]line СДАЧА: 0.00 [09:29:21]line НСП 1% : 6.20 [09:29:21]line НДС 12% : 74.40 [09:29:21]line Наличными: 700.00 [09:29:21]line Безнал.: 0.00 [09:29:21]line Место: АЗС № 120 "Партнер Нефть" [09:29:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:29:21]line СНО: Общий режим [09:29:21]line Чек 51 22.06.2024 09:29 [09:29:21]line Смена: 356 ФФД: 1.0 [09:29:21]line ЗНМ: 0300000164 [09:29:21]line РНМ: 0000000000092785 [09:29:21]line Версия ККМ: 001 [09:29:21]line ФМ: 0000000000875093 [09:29:21]line ФД: 104318 [09:29:21]line ФПД: 144404718210283 [09:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T092924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104318&fm=144404718210283&tin=02508201610067®Number=0000000000092785&sum=70000 [09:29:22]OFD Sender: Processing packet 104318 [packets to send 17, broken 16] [09:29:22]ProducePacketName [09:29:22]name=ofd_packets/00104318 [09:29:22]OFD Sender: To server: pG, [09:29:22]CommunicateWithHost lk.salyk.kg:30040 [09:29:22]ConnectInit lk.salyk.kg [09:29:22]written 0, free lines is 4095 [09:29:22]Connected sock=10 [09:29: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 92 42 08 01 98 34 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 33 00 00 00 F4 03 04 00 74 99 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 55 D7 EE CC EB 5F 0C D1 1A 14 53 A3 03 [09:29: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 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 7E 97 01 00 F4 03 04 00 F4 3F 76 66 B6 04 01 00 00 9E 88 B4 6B 62 E5 AB 19 [09:29:22]CommunicateWithHost err = 0 [09:29:22]CheckOFDResponse [09:29:22]1017 (14) - 77093643461234 [09:29:22]1041 (16) - 0000000000875093 [09:29:22]1040 (4) - 104318 [09:29:22]1012 (4) - 22.06.2024 03:07 [09:29:22]1206 (1) - 0 [09:29:22]OFD Sender: Remove packet 104318 [09:29:22]ProducePacketName [09:29:22]name=ofd_packets/00104318 [09:29:22]NVStorageDeleteData [09:29:22]Write to MH i2c: 01 00 00 9F 29 C8 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 07 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 07 00 9F 29 00 00 00 00 00 D0 0C AB [09:29:22]RasterBufferAndPrint [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]written 0, free lines is 3288 [09:29:22]MH_Cut [09:29:22]Write to MH i2c: D1 01 00 A6 29 01 A1 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 01 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 01 00 A6 29 00 A0 [09:29:22]Write to MH i2c: 01 00 00 A7 29 D0 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:23]OFD Sender: No OFD packet to send [09:29:23]*** Cut start [09:29:23]*** Partial cut [09:29:23]*** CUTSNS_PIN = 1 [09:29:23]*** CUTSNS_PIN = 0 [09:29:23]*** Brake cut motor [09:29:24]Read from MH i2c: 01 [09:29:24]MH_I2C_Read... [09:29:24]*** Stop cut motor [09:29:24]*** Cut end [09:29:24]Read from MH i2c: 01 07 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: 01 07 00 A7 29 00 00 00 00 00 FF 0F E5 [09:29:24]process_action close_receipt done [09:29:24]requested_data is exist [09:29:24]produce_requested_data [09:29:24]requested_item fm.sn is exist - process it [09:29:24]wFMCommunicate request_size=4 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 11 00 00 [09:29:24]Write to MH i2c: E2 08 00 A8 29 80 11 00 00 00 00 00 00 4B [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 17 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 17 00 A8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [09:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:29:24]wFMCommunicate OK [09:29:24]requested_item fd.num is exist - process it [09:29:24]SAM_PROTO_GetFieldsCounters [09:29:24]wFMCommunicate request_size=4 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 13 00 00 [09:29:24]Write to MH i2c: E2 08 00 A9 29 80 13 00 00 00 00 00 00 4E [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 62 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 62 00 A9 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 89 [09:29: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 7E 97 01 00 0E 04 04 00 64 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 [09:29:24]wFMCommunicate OK [09:29:24]SAM_PROTO_GetFieldsCounters done [09:29:24]requested_item shift.num is exist - process it [09:29:24]requested_item shift.opened is exist - process it [09:29:24]req_shift_opened [09:29:24]FM_GetShiftState [09:29:24]SAM_PROTO_GetShiftState [09:29:24]wFMCommunicate request_size=4 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 13 01 00 [09:29:24]Write to MH i2c: E2 08 00 AA 29 80 13 01 00 00 00 00 00 50 [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 0E 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 0E 00 AA 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 42 [09:29:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:29:24]wFMCommunicate OK [09:29:24]SAM_PROTO_GetShiftState done [09:29:24]FM_GetShiftState done [09:29:24]req_shift_opened done [09:29:24]requested_item shift.open_date is exist - process it [09:29:24]req_shift_open_date [09:29:24]req_shift_open_date done [09:29:24]produce_requested_data done [09:29:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104318,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:29:24]process_action_free close_receipt [09:29:24]json_value_free [09:29:24]json_value_free done [09:29:24]process_json_proto returns [09:29:24]Send response to host [09:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104318,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:29:24]free response buf [09:29:24]execute_script done [09:29:24]execute_script returns [09:29:24]free content buf [09:29:24]Sock 7.Close socket [09:29:24]Sock 7.Thread stoped [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:35]accept exits with 9 [09:35:35]New connection [09:35:35]New thread 3067616612 created [09:35:35]Thread 3067473252 joined [09:35:35]Waiting for new connection... [09:35:35] Sock 9.Parse request [09:35:35]Sock 9.Check first char [09:35:35]Sock 9.First char is OK [09:35:35]request: POST /json_proto HTTP/1.0 [09:35:35]Method: POST [09:35:35]URL: /json_proto [09:35:35]Method is POST - this is cgi request [09:35:35]url: /json_proto [09:35:35]query_string will be loaded in cgi processing [09:35:35]execute_cgi json_proto POST (null) [09:35:35]execute_cgi path=json_proto method=POST [09:35:35]POST find Content-Length [09:35:35]Host: 172.17.38.133:8080 [09:35:35]Content-Length: 682 [09:35:35]Content-Type: application/json [09:35:35] [09:35:35]POST finish read [09:35:35]Found Content-Length = 682 [09:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673820", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:35]execute_script... [09: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)673820", "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" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:35]POST & json_proto [09:35:35]process_json_proto [09:35:35]json parsed OK: [09:35:35]protocol is kg_v1.0 [09:35:35]action value=close_receipt [09:35:35]process_action close_receipt [09:35:35]cmd_close_receipt [09:35:35]MH_GetDate [09:35:35]Write to MH i2c: F0 00 00 AB 29 C3 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: F0 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: F0 09 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: F0 09 00 AB 29 00 EB 9A 76 66 BD 8F 7C 64 59 [09:35:35]GetLastDocTimeStamp 1719048564 [09:35:35]current date 1719048939 [09:35:35]FM_GetShiftState [09:35:35]SAM_PROTO_GetShiftState [09:35:35]wFMCommunicate request_size=4 [09:35:35]MH_SAM_APDU [09:35:35]CAPDU: 80 13 01 00 [09:35:35]Write to MH i2c: E2 08 00 AC 29 80 13 01 00 00 00 00 00 52 [09:35:35]Write i2c OK [09:35:35]MH_I2C_Read... [09:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:35]Read from MH i2c: E2 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 0E 00 [09:35:35]MH_I2C_Read... [09:35:35]Read from MH i2c: E2 0E 00 AC 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 44 [09:35:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:35:35]wFMCommunicate OK [09:35:35]SAM_PROTO_GetShiftState done [09:35:35]FM_GetShiftState done [09:35:35]opened in 1719016176 [09:35:35]opened+sec_in_day 1719102576 [09:35:35]quantity*price = 130011 [09:35:35]sum+1 = 130012 [09:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 22.06.2024 09:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104319 ФПД: 210223987399027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093539&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104319&fm=210223987399027&tin=02508201610067®Number=0000000000092785&sum=130000 [09:35:36]StoreToDocumentArchive [09:35:36]shift 356 fd 104319 [09:35:36]save to /storage/0356/doc_00104319 [09:35:36]save last doc name /storage/0356/doc_00104319 to /storage/kkm_last_doc_name [09:35:36]save OK [09:35:36]Clear old archive folders... [09:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:36]tlvbuf is B6FFA830 [09:35:36]SAM_PROTO_ClearQueue [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 09 00 00 [09:35:36]Write to MH i2c: E2 08 00 B9 29 80 09 00 00 00 00 00 00 54 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:36]Read from MH i2c: E2 03 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 B9 29 00 90 00 56 [09:35:36]RAPDU: 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_ClearQueue done [09:35:36]KKMCreateOFDPacket [09:35:36]OFDProtocolAddRootSTLVToBuf [09:35:36]FM_MakeSignedData [09:35:36]FM_MakeSignedData [09:35:36]SAM_PROTO_SignData [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 0D 01 02 [09:35:36]Write to MH i2c: E2 08 00 BA 29 80 0D 01 02 00 00 00 00 5C [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 BA 29 00 90 00 57 [09:35:36]RAPDU: 90 00 [09:35:36]wFMCommunicate OK [09:35:36]wFMCommunicate request_size=255 [09:35:36]MH_SAM_APDU [09: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 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 34 00 00 00 F4 03 04 00 EB 9A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BF [09:35:36]Write to MH i2c: E2 02 01 BB 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 EB 9A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BF 00 00 21 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [09:35:36]RAPDU: 90 00 [09:35:36]wFMCommunicate OK [09:35:36]wFMCommunicate request_size=10 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 0D 02 02 05 32 96 17 99 73 [09:35:36]Write to MH i2c: E2 0D 00 BC 29 80 0D 02 02 05 00 32 96 17 99 73 00 00 54 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [09:35:36]RAPDU: 90 00 [09:35:36]wFMCommunicate OK [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 0D 03 02 [09:35:36]Write to MH i2c: E2 08 00 BD 29 80 0D 03 02 00 00 00 00 61 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0B 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0B 00 BD 29 00 7F F9 30 05 52 E2 1C 74 90 00 D3 [09:35:36]RAPDU: 7F F9 30 05 52 E2 1C 74 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_SignData done [09:35:36]FM_MakeSignedData done [09:35:36]CreateOFDProtocolMessage [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 11 00 00 [09:35:36]Write to MH i2c: E2 08 00 BE 29 80 11 00 00 00 00 00 00 61 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 17 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 17 00 BE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [09:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:35:36]wFMCommunicate OK [09:35:36]CreateOFDProtocolMessage done [09:35:36]OFDSenderStorePacket 104319 [09:35:36]StoreOFDPacket docnum=104319 [09:35: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 B8 96 07 01 84 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 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 34 00 00 00 F4 03 04 00 EB 9A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BF 32 96 17 99 73 7F F9 30 05 52 E2 1C 74 [09:35:36]CheckFolder [09:35:36]dirname=/storage/ofd_packets [09:35:36]CheckFolder done [09:35:36]ProducePacketName [09:35:36]name=ofd_packets/00104319 [09:35:36]NVStorageSaveData ofd_packets/00104319 [09:35:36]File name is /storage/ofd_packets/00104319 [09:35:36]Write 301 bytes [09:35:36]NVStorageSaveData done [09:35:36]OFDSenderStorePacket done [09:35:36]KKMCreateOFDPacket done [09:35:36]NVStorageSaveData kkm_last_timestamp [09:35:36]File name is /storage/kkm_last_timestamp [09:35:36]Write 4 bytes [09:35:36]NVStorageSaveData done [09:35:36]ExternCall_PrintAddStr [09:35:36]wPrintStart [09:35:36]Write to MH i2c: 01 00 00 BF 29 E8 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 07 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: 01 07 00 BF 29 00 00 00 00 00 FF 0F FD [09:35:36]RasterBufferAndPrint [09:35:36]line Счет N : (1)673820 [09:35:36]line ИНН: 02508201610067 [09:35:36]line Контрольно-Кассовый Чек [09:35:36]line ПРОДАЖА [09:35:36]line ТРК (МРК, ГНК) : 42 [09:35:36]line Товар: 2710124130 [09:35:36]line Аи-92-К-5 [09:35:36]line 19.580 * 66.40 [09:35:36]line = 1300.11 [09:35:36]line НДС 12% НСП 1% [09:35:36]line > о реализуемом товаре [09:35:36]line ОКРУГЛЕНИЕ: -0.11 [09:35:36]line ИТОГО: 1300.00 [09:35:36]line Внесено: 1300.00 [09:35:36]line СДАЧА: 0.00 [09:35:36]line НСП 1% : 11.50 [09:35:36]line НДС 12% : 138.06 [09:35:36]line Наличными: 1300.00 [09:35:36]line Безнал.: 0.00 [09:35:36]line Место: АЗС № 120 "Партнер Нефть" [09:35:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:35:36]line СНО: Общий режим [09:35:36]line Чек 52 22.06.2024 09:35 [09:35:36]line Смена: 356 ФФД: 1.0 [09:35:36]line ЗНМ: 0300000164 [09:35:36]line РНМ: 0000000000092785 [09:35:36]line Версия ККМ: 001 [09:35:36]line ФМ: 0000000000875093 [09:35:36]line ФД: 104319 [09:35:36]line ФПД: 210223987399027 [09:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093539&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104319&fm=210223987399027&tin=02508201610067®Number=0000000000092785&sum=130000 [09:35:37]OFD Sender: Processing packet 104319 [packets to send 17, broken 16] [09:35:37]ProducePacketName [09:35:37]name=ofd_packets/00104319 [09:35:37]OFD Sender: To server: pG, [09:35:37]CommunicateWithHost lk.salyk.kg:30040 [09:35:37]ConnectInit lk.salyk.kg [09:35:37]written 0, free lines is 4095 [09:35:37]Connected sock=11 [09: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 B8 96 07 01 84 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 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 34 00 00 00 F4 03 04 00 EB 9A 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BF 32 96 17 99 73 7F F9 30 05 52 E2 1C 74 [09:35:37]Write to MH i2c: 01 00 00 EA 29 13 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: 01 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: 01 07 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: 01 07 00 EA 29 00 00 00 00 00 D8 0C FE [09:35:37]RasterBufferAndPrint [09:35:37]line [09:35:37]line [09:35:37]line [09:35:37]line [09:35:37]line [09:35:37]written 0, free lines is 3295 [09:35:37]MH_Cut [09:35:37]Write to MH i2c: D1 01 00 F1 29 01 EC [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: D1 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: D1 01 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: D1 01 00 F1 29 00 EB [09:35:37]Write to MH i2c: 01 00 00 F2 29 1B [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09: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 79 FD 47 00 1A 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 97 01 00 F4 03 04 00 6B 41 76 66 B6 04 01 00 00 CB AB 70 48 2D 35 B3 39 [09:35:37]CommunicateWithHost err = 0 [09:35:37]CheckOFDResponse [09:35:37]1017 (14) - 77093643461234 [09:35:37]1041 (16) - 0000000000875093 [09:35:37]1040 (4) - 104319 [09:35:37]1012 (4) - 22.06.2024 03:13 [09:35:37]1206 (1) - 0 [09:35:37]OFD Sender: Remove packet 104319 [09:35:37]ProducePacketName [09:35:37]name=ofd_packets/00104319 [09:35:37]NVStorageDeleteData [09:35:38]OFD Sender: No OFD packet to send [09:35:38]*** Cut start [09:35:38]*** Partial cut [09:35:38]*** CUTSNS_PIN = 1 [09:35:38]*** CUTSNS_PIN = 0 [09:35:38]*** Brake cut motor [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]*** Stop cut motor [09:35:38]*** Cut end [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 F2 29 00 00 00 00 00 FF 0F 30 [09:35:38]process_action close_receipt done [09:35:38]requested_data is exist [09:35:38]produce_requested_data [09:35:38]requested_item fm.sn is exist - process it [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 11 00 00 [09:35:38]Write to MH i2c: E2 08 00 F3 29 80 11 00 00 00 00 00 00 96 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:39]Read from MH i2c: E2 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 17 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 17 00 F3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [09: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 [09:35:39]wFMCommunicate OK [09:35:39]requested_item fd.num is exist - process it [09:35:39]SAM_PROTO_GetFieldsCounters [09:35:39]wFMCommunicate request_size=4 [09:35:39]MH_SAM_APDU [09:35:39]CAPDU: 80 13 00 00 [09:35:39]Write to MH i2c: E2 08 00 F4 29 80 13 00 00 00 00 00 00 99 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:39]Read from MH i2c: E2 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 62 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 62 00 F4 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D8 [09: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 7F 97 01 00 0E 04 04 00 64 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 [09:35:39]wFMCommunicate OK [09:35:39]SAM_PROTO_GetFieldsCounters done [09:35:39]requested_item shift.num is exist - process it [09:35:39]requested_item shift.opened is exist - process it [09:35:39]req_shift_opened [09:35:39]FM_GetShiftState [09:35:39]SAM_PROTO_GetShiftState [09:35:39]wFMCommunicate request_size=4 [09:35:39]MH_SAM_APDU [09:35:39]CAPDU: 80 13 01 00 [09:35:39]Write to MH i2c: E2 08 00 F5 29 80 13 01 00 00 00 00 00 9B [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:39]Read from MH i2c: E2 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 0E 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: E2 0E 00 F5 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8D [09:35:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:35:39]wFMCommunicate OK [09:35:39]SAM_PROTO_GetShiftState done [09:35:39]FM_GetShiftState done [09:35:39]req_shift_opened done [09:35:39]requested_item shift.open_date is exist - process it [09:35:39]req_shift_open_date [09:35:39]req_shift_open_date done [09:35:39]produce_requested_data done [09:35:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104319,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:35:39]process_action_free close_receipt [09:35:39]json_value_free [09:35:39]json_value_free done [09:35:39]process_json_proto returns [09:35:39]Send response to host [09:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104319,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:35:39]free response buf [09:35:39]execute_script done [09:35:39]execute_script returns [09:35:39]free content buf [09:35:39]Sock 9.Close socket [09:35:39]Sock 9.Thread stoped [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]accept exits with 7 [09:38:33]New connection [09:38:33]New thread 3067473252 created [09:38:33]Thread 3067616612 joined [09:38:33]Waiting for new connection... [09:38:33] Sock 7.Parse request [09:38:33]Sock 7.Check first char [09:38:33]Sock 7.First char is OK [09:38:33]request: POST /json_proto HTTP/1.0 [09:38:33]Method: POST [09:38:33]URL: /json_proto [09:38:33]Method is POST - this is cgi request [09:38:33]url: /json_proto [09:38:33]query_string will be loaded in cgi processing [09:38:33]execute_cgi json_proto POST (null) [09:38:33]execute_cgi path=json_proto method=POST [09:38:33]POST find Content-Length [09:38:33]Host: 172.17.38.133:8080 [09:38:33]Content-Length: 678 [09:38:33]Content-Type: application/json [09:38:33] [09:38:33]POST finish read [09:38:33]Found Content-Length = 678 [09:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673823", "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" ] } } [09:38:33]execute_script... [09:38: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)673823", "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" ] } } [09:38:33]POST & json_proto [09:38:33]process_json_proto [09:38:33]json parsed OK: [09:38:33]protocol is kg_v1.0 [09:38:33]action value=close_receipt [09:38:33]process_action close_receipt [09:38:33]cmd_close_receipt [09:38:33]MH_GetDate [09:38:33]Write to MH i2c: F0 00 00 F6 29 0E [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 09 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 09 00 F6 29 00 9D 9B 76 66 BD 8F 7C 64 57 [09:38:33]GetLastDocTimeStamp 1719048939 [09:38:33]current date 1719049117 [09:38:33]FM_GetShiftState [09:38:33]SAM_PROTO_GetShiftState [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 13 01 00 [09:38:33]Write to MH i2c: E2 08 00 F7 29 80 13 01 00 00 00 00 00 9D [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0E 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0E 00 F7 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8F [09:38:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_GetShiftState done [09:38:33]FM_GetShiftState done [09:38:33]opened in 1719016176 [09:38:33]opened+sec_in_day 1719102576 [09:38:33]quantity*price = 70052 [09:38:33]sum+1 = 70053 [09:38:33]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 СНО: Общий режим Чек 53 22.06.2024 09:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104320 ФПД: 144723670040488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093837&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104320&fm=144723670040488&tin=02508201610067®Number=0000000000092785&sum=70000 [09:38:34]StoreToDocumentArchive [09:38:34]shift 356 fd 104320 [09:38:34]save to /storage/0356/doc_00104320 [09:38:34]save last doc name /storage/0356/doc_00104320 to /storage/kkm_last_doc_name [09:38:34]save OK [09:38:34]Clear old archive folders... [09:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:34]tlvbuf is 00693450 [09:38:34]SAM_PROTO_ClearQueue [09:38:34]wFMCommunicate request_size=4 [09:38:34]MH_SAM_APDU [09:38:34]CAPDU: 80 09 00 00 [09:38:34]Write to MH i2c: E2 08 00 04 2A 80 09 00 00 00 00 00 00 A0 [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [09:38:34]RAPDU: 90 00 [09:38:34]wFMCommunicate OK [09:38:34]SAM_PROTO_ClearQueue done [09:38:34]KKMCreateOFDPacket [09:38:34]OFDProtocolAddRootSTLVToBuf [09:38:34]FM_MakeSignedData [09:38:34]FM_MakeSignedData [09:38:34]SAM_PROTO_SignData [09:38:34]wFMCommunicate request_size=4 [09:38:34]MH_SAM_APDU [09:38:34]CAPDU: 80 0D 01 02 [09:38:34]Write to MH i2c: E2 08 00 05 2A 80 0D 01 02 00 00 00 00 A8 [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:34]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [09:38:34]RAPDU: 90 00 [09:38:34]wFMCommunicate OK [09:38:34]wFMCommunicate request_size=255 [09:38:34]MH_SAM_APDU [09:38: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 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 35 00 00 00 F4 03 04 00 9D 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 [09:38:34]Write to MH i2c: E2 02 01 06 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 9D 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 00 00 BD [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 06 2A 00 90 00 A4 [09:38:34]RAPDU: 90 00 [09:38:34]wFMCommunicate OK [09:38:34]wFMCommunicate request_size=10 [09:38:34]MH_SAM_APDU [09:38:34]CAPDU: 80 0D 02 02 05 A0 1A F1 7F A8 [09:38:34]Write to MH i2c: E2 0D 00 07 2A 80 0D 02 02 05 00 A0 1A F1 7F A8 00 00 87 [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 03 00 07 2A 00 90 00 A5 [09:38:34]RAPDU: 90 00 [09:38:34]wFMCommunicate OK [09:38:34]wFMCommunicate request_size=4 [09:38:34]MH_SAM_APDU [09:38:34]CAPDU: 80 0D 03 02 [09:38:34]Write to MH i2c: E2 08 00 08 2A 80 0D 03 02 00 00 00 00 AD [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 0B 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 0B 00 08 2A 00 4F 35 A8 6E E7 6B A9 24 90 00 67 [09:38:34]RAPDU: 4F 35 A8 6E E7 6B A9 24 90 00 [09:38:34]wFMCommunicate OK [09:38:34]SAM_PROTO_SignData done [09:38:34]FM_MakeSignedData done [09:38:34]CreateOFDProtocolMessage [09:38:34]wFMCommunicate request_size=4 [09:38:34]MH_SAM_APDU [09:38:34]CAPDU: 80 11 00 00 [09:38:34]Write to MH i2c: E2 08 00 09 2A 80 11 00 00 00 00 00 00 AD [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 17 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 17 00 09 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [09:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:38:34]wFMCommunicate OK [09:38:34]CreateOFDProtocolMessage done [09:38:34]OFDSenderStorePacket 104320 [09:38:34]StoreOFDPacket docnum=104320 [09:38: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 02 4A 07 01 F4 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 9D 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 A0 1A F1 7F A8 4F 35 A8 6E E7 6B A9 24 [09:38:34]CheckFolder [09:38:34]dirname=/storage/ofd_packets [09:38:34]CheckFolder done [09:38:34]ProducePacketName [09:38:34]name=ofd_packets/00104320 [09:38:34]NVStorageSaveData ofd_packets/00104320 [09:38:34]File name is /storage/ofd_packets/00104320 [09:38:34]Write 301 bytes [09:38:34]NVStorageSaveData done [09:38:34]OFDSenderStorePacket done [09:38:34]KKMCreateOFDPacket done [09:38:34]NVStorageSaveData kkm_last_timestamp [09:38:34]File name is /storage/kkm_last_timestamp [09:38:34]Write 4 bytes [09:38:34]NVStorageSaveData done [09:38:34]ExternCall_PrintAddStr [09:38:34]wPrintStart [09:38:34]Write to MH i2c: 01 00 00 0A 2A 34 [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 07 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 07 00 0A 2A 00 00 00 00 00 FF 0F 49 [09:38:34]RasterBufferAndPrint [09:38:34]line Счет N : (1)673823 [09:38:34]line ИНН: 02508201610067 [09:38:34]line Контрольно-Кассовый Чек [09:38:34]line ПРОДАЖА [09:38:34]line ТРК (МРК, ГНК) : 32 [09:38:34]line Товар: 2710124130 [09:38:34]line Аи-92-К-5 [09:38:34]line 10.550 * 66.40 [09:38:34]line = 700.52 [09:38:34]line НДС 12% НСП 1% [09:38:34]line > о реализуемом товаре [09:38:34]line ОКРУГЛЕНИЕ: -0.52 [09:38:34]line ИТОГО: 700.00 [09:38:34]line Внесено: 700.00 [09:38:34]line СДАЧА: 0.00 [09:38:34]line НСП 1% : 6.20 [09:38:34]line НДС 12% : 74.39 [09:38:34]line Наличными: 700.00 [09:38:34]line Безнал.: 0.00 [09:38:34]line Место: АЗС № 120 "Партнер Нефть" [09:38:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:38:34]line СНО: Общий режим [09:38:34]line Чек 53 22.06.2024 09:38 [09:38:34]line Смена: 356 ФФД: 1.0 [09:38:34]line ЗНМ: 0300000164 [09:38:35]line РНМ: 0000000000092785 [09:38:35]line Версия ККМ: 001 [09:38:35]line ФМ: 0000000000875093 [09:38:35]line ФД: 104320 [09:38:35]line ФПД: 144723670040488 [09:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093837&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104320&fm=144723670040488&tin=02508201610067®Number=0000000000092785&sum=70000 [09:38:35]OFD Sender: Processing packet 104320 [packets to send 17, broken 16] [09:38:35]ProducePacketName [09:38:35]name=ofd_packets/00104320 [09:38:35]OFD Sender: To server: pG, [09:38:35]CommunicateWithHost lk.salyk.kg:30040 [09:38:35]ConnectInit lk.salyk.kg [09:38:35]written 0, free lines is 4095 [09:38:35]Connected sock=10 [09:38: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 02 4A 07 01 F4 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 9D 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 83 A0 1A F1 7F A8 4F 35 A8 6E E7 6B A9 24 [09:38:35]Write to MH i2c: 01 00 00 35 2A 5F [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 35 2A 00 00 00 00 00 D8 0C 4A [09:38:35]RasterBufferAndPrint [09:38:35]line [09:38:35]line [09:38:35]line [09:38:35]line [09:38:35]line [09:38: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 C1 AB 47 00 4A 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 80 97 01 00 F4 03 04 00 1D 42 76 66 B6 04 01 00 00 68 B2 2C BB DF E2 FB 65 [09:38:35]CommunicateWithHost err = 0 [09:38:35]CheckOFDResponse [09:38:35]1017 (14) - 77093643461234 [09:38:35]1041 (16) - 0000000000875093 [09:38:35]1040 (4) - 104320 [09:38:35]1012 (4) - 22.06.2024 03:16 [09:38:35]1206 (1) - 0 [09:38:35]OFD Sender: Remove packet 104320 [09:38:35]ProducePacketName [09:38:35]name=ofd_packets/00104320 [09:38:35]NVStorageDeleteData [09:38:35]written 0, free lines is 3295 [09:38:35]MH_Cut [09:38:35]Write to MH i2c: D1 01 00 3C 2A 01 38 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: D1 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: D1 01 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: D1 01 00 3C 2A 00 37 [09:38:35]Write to MH i2c: 01 00 00 3D 2A 67 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:36]OFD Sender: No OFD packet to send [09:38:36]*** Cut start [09:38:36]*** Partial cut [09:38:36]*** CUTSNS_PIN = 1 [09:38:36]*** CUTSNS_PIN = 0 [09:38:36]*** Brake cut motor [09:38:36]Read from MH i2c: 01 [09:38:36]MH_I2C_Read... [09:38:36]*** Stop cut motor [09:38:36]*** Cut end [09:38:36]Read from MH i2c: 01 07 00 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: 01 07 00 3D 2A 00 00 00 00 00 FF 0F 7C [09:38:36]process_action close_receipt done [09:38:36]requested_data is exist [09:38:36]produce_requested_data [09:38:36]requested_item fm.sn is exist - process it [09:38:36]wFMCommunicate request_size=4 [09:38:36]MH_SAM_APDU [09:38:36]CAPDU: 80 11 00 00 [09:38:36]Write to MH i2c: E2 08 00 3E 2A 80 11 00 00 00 00 00 00 E2 [09:38:36]Write i2c OK [09:38:36]MH_I2C_Read... [09:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:36]Read from MH i2c: E2 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: E2 17 00 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: E2 17 00 3E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [09:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:38:36]wFMCommunicate OK [09:38:36]requested_item fd.num is exist - process it [09:38:36]SAM_PROTO_GetFieldsCounters [09:38:36]wFMCommunicate request_size=4 [09:38:36]MH_SAM_APDU [09:38:36]CAPDU: 80 13 00 00 [09:38:36]Write to MH i2c: E2 08 00 3F 2A 80 13 00 00 00 00 00 00 E5 [09:38:36]Write i2c OK [09:38:36]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 62 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 62 00 3F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 28 [09:38: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 80 97 01 00 0E 04 04 00 64 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 [09:38:37]wFMCommunicate OK [09:38:37]SAM_PROTO_GetFieldsCounters done [09:38:37]requested_item shift.num is exist - process it [09:38:37]requested_item shift.opened is exist - process it [09:38:37]req_shift_opened [09:38:37]FM_GetShiftState [09:38:37]SAM_PROTO_GetShiftState [09:38:37]wFMCommunicate request_size=4 [09:38:37]MH_SAM_APDU [09:38:37]CAPDU: 80 13 01 00 [09:38:37]Write to MH i2c: E2 08 00 40 2A 80 13 01 00 00 00 00 00 E7 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 40 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D9 [09:38:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:38:37]wFMCommunicate OK [09:38:37]SAM_PROTO_GetShiftState done [09:38:37]FM_GetShiftState done [09:38:37]req_shift_opened done [09:38:37]requested_item shift.open_date is exist - process it [09:38:37]req_shift_open_date [09:38:37]req_shift_open_date done [09:38:37]produce_requested_data done [09:38:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104320,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:38:37]process_action_free close_receipt [09:38:37]json_value_free [09:38:37]json_value_free done [09:38:37]process_json_proto returns [09:38:37]Send response to host [09:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104320,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:38:37]free response buf [09:38:37]execute_script done [09:38:37]execute_script returns [09:38:37]free content buf [09:38:37]Sock 7.Close socket [09:38:37]Sock 7.Thread stoped [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:39]accept exits with 9 [09:39:39]New connection [09:39:39]New thread 3067616612 created [09:39:39]Thread 3067473252 joined [09:39:39]Waiting for new connection... [09:39:39] Sock 9.Parse request [09:39:39]Sock 9.Check first char [09:39:39]Sock 9.First char is OK [09:39:39]request: POST /json_proto HTTP/1.0 [09:39:39]Method: POST [09:39:39]URL: /json_proto [09:39:39]Method is POST - this is cgi request [09:39:39]url: /json_proto [09:39:39]query_string will be loaded in cgi processing [09:39:39]execute_cgi json_proto POST (null) [09:39:39]execute_cgi path=json_proto method=POST [09:39:39]POST find Content-Length [09:39:39]Host: 172.17.38.133:8080 [09:39:39]Content-Length: 682 [09:39:39]Content-Type: application/json [09:39:39] [09:39:39]POST finish read [09:39:39]Found Content-Length = 682 [09:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673824", "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" ] } } [09:39:39]execute_script... [09:39: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)673824", "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" ] } } [09:39:39]POST & json_proto [09:39:39]process_json_proto [09:39:39]json parsed OK: [09:39:39]protocol is kg_v1.0 [09:39:39]action value=close_receipt [09:39:39]process_action close_receipt [09:39:39]cmd_close_receipt [09:39:39]MH_GetDate [09:39:39]Write to MH i2c: F0 00 00 41 2A 5A [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: F0 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: F0 09 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: F0 09 00 41 2A 00 E0 9B 76 66 BD 8F 7C 64 E6 [09:39:39]GetLastDocTimeStamp 1719049117 [09:39:39]current date 1719049184 [09:39:39]FM_GetShiftState [09:39:39]SAM_PROTO_GetShiftState [09:39:39]wFMCommunicate request_size=4 [09:39:39]MH_SAM_APDU [09:39:39]CAPDU: 80 13 01 00 [09:39:39]Write to MH i2c: E2 08 00 42 2A 80 13 01 00 00 00 00 00 E9 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:39]Read from MH i2c: E2 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: E2 0E 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: E2 0E 00 42 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DB [09:39:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:39:39]wFMCommunicate OK [09:39:39]SAM_PROTO_GetShiftState done [09:39:39]FM_GetShiftState done [09:39:39]opened in 1719016176 [09:39:39]opened+sec_in_day 1719102576 [09:39:39]quantity*price = 200063 [09:39:39]sum+1 = 200064 [09:39:39]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 СНО: Общий режим Чек 54 22.06.2024 09:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104321 ФПД: 240015936130425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104321&fm=240015936130425&tin=02508201610067®Number=0000000000092785&sum=200000 [09:39:41]StoreToDocumentArchive [09:39:41]shift 356 fd 104321 [09:39:41]save to /storage/0356/doc_00104321 [09:39:41]save last doc name /storage/0356/doc_00104321 to /storage/kkm_last_doc_name [09:39:41]save OK [09:39:41]Clear old archive folders... [09:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:41]tlvbuf is 007386B0 [09:39:41]SAM_PROTO_ClearQueue [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 09 00 00 [09:39:41]Write to MH i2c: E2 08 00 4F 2A 80 09 00 00 00 00 00 00 EB [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 4F 2A 00 90 00 ED [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_ClearQueue done [09:39:41]KKMCreateOFDPacket [09:39:41]OFDProtocolAddRootSTLVToBuf [09:39:41]FM_MakeSignedData [09:39:41]FM_MakeSignedData [09:39:41]SAM_PROTO_SignData [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 01 02 [09:39:41]Write to MH i2c: E2 08 00 50 2A 80 0D 01 02 00 00 00 00 F3 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]OFD Sender: No OFD packet to send [09:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 50 2A 00 90 00 EE [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=255 [09:39:41]MH_SAM_APDU [09:39: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 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 36 00 00 00 F4 03 04 00 E0 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DA [09:39:41]Write to MH i2c: E2 02 01 51 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 36 00 00 00 F4 03 04 00 E0 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DA 00 00 87 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 51 2A 00 90 00 EF [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=10 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 02 02 05 4B 10 9D 0D 79 [09:39:41]Write to MH i2c: E2 0D 00 52 2A 80 0D 02 02 05 00 4B 10 9D 0D 79 00 00 7E [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 52 2A 00 90 00 F0 [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 03 02 [09:39:41]Write to MH i2c: E2 08 00 53 2A 80 0D 03 02 00 00 00 00 F8 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0B 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0B 00 53 2A 00 DB 1B 81 4F C2 5D AF 33 90 00 C0 [09:39:41]RAPDU: DB 1B 81 4F C2 5D AF 33 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_SignData done [09:39:41]FM_MakeSignedData done [09:39:41]CreateOFDProtocolMessage [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 11 00 00 [09:39:41]Write to MH i2c: E2 08 00 54 2A 80 11 00 00 00 00 00 00 F8 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 17 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 17 00 54 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [09:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:39:41]wFMCommunicate OK [09:39:41]CreateOFDProtocolMessage done [09:39:41]OFDSenderStorePacket 104321 [09:39:41]StoreOFDPacket docnum=104321 [09:39: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 EE 44 07 01 E1 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 E0 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DA 4B 10 9D 0D 79 DB 1B 81 4F C2 5D AF 33 [09:39:41]CheckFolder [09:39:41]dirname=/storage/ofd_packets [09:39:41]CheckFolder done [09:39:41]ProducePacketName [09:39:41]name=ofd_packets/00104321 [09:39:41]NVStorageSaveData ofd_packets/00104321 [09:39:41]File name is /storage/ofd_packets/00104321 [09:39:41]Write 301 bytes [09:39:41]NVStorageSaveData done [09:39:41]OFDSenderStorePacket done [09:39:41]KKMCreateOFDPacket done [09:39:41]NVStorageSaveData kkm_last_timestamp [09:39:41]File name is /storage/kkm_last_timestamp [09:39:41]Write 4 bytes [09:39:41]NVStorageSaveData done [09:39:41]ExternCall_PrintAddStr [09:39:41]wPrintStart [09:39:41]Write to MH i2c: 01 00 00 55 2A 7F [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: 01 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: 01 07 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: 01 07 00 55 2A 00 00 00 00 00 FF 0F 94 [09:39:41]RasterBufferAndPrint [09:39:41]line Счет N : (1)673824 [09:39:41]line ИНН: 02508201610067 [09:39:41]line Контрольно-Кассовый Чек [09:39:41]line ПРОДАЖА [09:39:41]line ТРК (МРК, ГНК) : 42 [09:39:41]line Товар: 2710124130 [09:39:41]line Аи-92-К-5 [09:39:41]line 30.130 * 66.40 [09:39:41]line = 2000.63 [09:39:41]line НДС 12% НСП 1% [09:39:41]line > о реализуемом товаре [09:39:41]line ОКРУГЛЕНИЕ: -0.63 [09:39:41]line ИТОГО: 2000.00 [09:39:41]line Внесено: 2000.00 [09:39:41]line СДАЧА: 0.00 [09:39:41]line НСП 1% : 17.70 [09:39:41]line НДС 12% : 212.46 [09:39:41]line Наличными: 2000.00 [09:39:41]line Безнал.: 0.00 [09:39:41]line Место: АЗС № 120 "Партнер Нефть" [09:39:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:39:41]line СНО: Общий режим [09:39:41]line Чек 54 22.06.2024 09:39 [09:39:41]line Смена: 356 ФФД: 1.0 [09:39:41]line ЗНМ: 0300000164 [09:39:41]line РНМ: 0000000000092785 [09:39:41]line Версия ККМ: 001 [09:39:41]line ФМ: 0000000000875093 [09:39:41]line ФД: 104321 [09:39:41]line ФПД: 240015936130425 [09:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104321&fm=240015936130425&tin=02508201610067®Number=0000000000092785&sum=200000 [09:39:41]written 0, free lines is 4095 [09:39:41]OFD Sender: Processing packet 104321 [packets to send 17, broken 16] [09:39:41]ProducePacketName [09:39:41]name=ofd_packets/00104321 [09:39:41]OFD Sender: To server: pG, [09:39:41]CommunicateWithHost lk.salyk.kg:30040 [09:39:41]ConnectInit lk.salyk.kg [09:39:41]Connected sock=10 [09:39: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 EE 44 07 01 E1 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 E0 9B 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DA 4B 10 9D 0D 79 DB 1B 81 4F C2 5D AF 33 [09:39: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 65 C6 47 00 F6 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 97 01 00 F4 03 04 00 5F 42 76 66 B6 04 01 00 00 3B F8 23 D6 46 68 E9 5A [09:39:42]CommunicateWithHost err = 0 [09:39:42]CheckOFDResponse [09:39:42]1017 (14) - 77093643461234 [09:39:42]1041 (16) - 0000000000875093 [09:39:42]1040 (4) - 104321 [09:39:42]1012 (4) - 22.06.2024 03:17 [09:39:42]1206 (1) - 0 [09:39:42]OFD Sender: Remove packet 104321 [09:39:42]ProducePacketName [09:39:42]name=ofd_packets/00104321 [09:39:42]NVStorageDeleteData [09:39:42]Write to MH i2c: 01 00 00 80 2A AA [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 80 2A 00 00 00 00 00 EA 0C A7 [09:39:42]RasterBufferAndPrint [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]written 0, free lines is 3315 [09:39:42]MH_Cut [09:39:42]Write to MH i2c: D1 01 00 87 2A 01 83 [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 01 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 01 00 87 2A 00 82 [09:39:42]Write to MH i2c: 01 00 00 88 2A B2 [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]OFD Sender: No OFD packet to send [09:39:42]*** Cut start [09:39:42]*** Partial cut [09:39:42]*** CUTSNS_PIN = 1 [09:39:42]*** CUTSNS_PIN = 0 [09:39:43]*** Brake cut motor [09:39:43]Read from MH i2c: 01 [09:39:43]MH_I2C_Read... [09:39:43]*** Stop cut motor [09:39:43]*** Cut end [09:39:43]Read from MH i2c: 01 07 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: 01 07 00 88 2A 00 00 00 00 00 FF 0F C7 [09:39:43]process_action close_receipt done [09:39:43]requested_data is exist [09:39:43]produce_requested_data [09:39:43]requested_item fm.sn is exist - process it [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 11 00 00 [09:39:43]Write to MH i2c: E2 08 00 89 2A 80 11 00 00 00 00 00 00 2D [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 17 00 89 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 80 [09:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:39:43]wFMCommunicate OK [09:39:43]requested_item fd.num is exist - process it [09:39:43]SAM_PROTO_GetFieldsCounters [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 13 00 00 [09:39:43]Write to MH i2c: E2 08 00 8A 2A 80 13 00 00 00 00 00 00 30 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 62 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 62 00 8A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 77 [09:39: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 81 97 01 00 0E 04 04 00 64 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 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_GetFieldsCounters done [09:39:43]requested_item shift.num is exist - process it [09:39:43]requested_item shift.opened is exist - process it [09:39:43]req_shift_opened [09:39:43]FM_GetShiftState [09:39:43]SAM_PROTO_GetShiftState [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 13 01 00 [09:39:43]Write to MH i2c: E2 08 00 8B 2A 80 13 01 00 00 00 00 00 32 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:43]Read from MH i2c: E2 0E 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0E 00 8B 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 24 [09:39:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_GetShiftState done [09:39:43]FM_GetShiftState done [09:39:43]req_shift_opened done [09:39:43]requested_item shift.open_date is exist - process it [09:39:43]req_shift_open_date [09:39:43]req_shift_open_date done [09:39:43]produce_requested_data done [09:39:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104321,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:39:43]process_action_free close_receipt [09:39:43]json_value_free [09:39:43]json_value_free done [09:39:43]process_json_proto returns [09:39:43]Send response to host [09:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104321,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:39:43]free response buf [09:39:43]execute_script done [09:39:43]execute_script returns [09:39:43]free content buf [09:39:43]Sock 9.Close socket [09:39:43]Sock 9.Thread stoped [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:11]accept exits with 7 [09:41:11]New connection [09:41:11]New thread 3067473252 created [09:41:11]Thread 3067616612 joined [09:41:11]Waiting for new connection... [09:41:11] Sock 7.Parse request [09:41:11]Sock 7.Check first char [09:41:11]Sock 7.First char is OK [09:41:11]request: POST /json_proto HTTP/1.0 [09:41:11]Method: POST [09:41:11]URL: /json_proto [09:41:11]Method is POST - this is cgi request [09:41:11]url: /json_proto [09:41:11]query_string will be loaded in cgi processing [09:41:11]execute_cgi json_proto POST (null) [09:41:11]execute_cgi path=json_proto method=POST [09:41:11]POST find Content-Length [09:41:11]Host: 172.17.38.133:8080 [09:41:11]Content-Length: 677 [09:41:11]Content-Type: application/json [09:41:11] [09:41:11]POST finish read [09:41:11]Found Content-Length = 677 [09:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673825", "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" ] } } [09:41:11]execute_script... [09:41: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)673825", "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" ] } } [09:41:11]POST & json_proto [09:41:11]process_json_proto [09:41:11]json parsed OK: [09:41:11]protocol is kg_v1.0 [09:41:11]action value=close_receipt [09:41:11]process_action close_receipt [09:41:11]cmd_close_receipt [09:41:11]MH_GetDate [09:41:11]Write to MH i2c: F0 00 00 8C 2A A5 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 09 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 09 00 8C 2A 00 3B 9C 76 66 BD 8F 7C 64 8D [09:41:11]GetLastDocTimeStamp 1719049184 [09:41:11]current date 1719049275 [09:41:11]FM_GetShiftState [09:41:11]SAM_PROTO_GetShiftState [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 13 01 00 [09:41:11]Write to MH i2c: E2 08 00 8D 2A 80 13 01 00 00 00 00 00 34 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 8D 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 26 [09:41:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_GetShiftState done [09:41:11]FM_GetShiftState done [09:41:11]opened in 1719016176 [09:41:11]opened+sec_in_day 1719102576 [09:41:11]quantity*price = 50065 [09:41:11]sum+1 = 50067 [09:41:11]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 СНО: Общий режим Чек 55 22.06.2024 09:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104322 ФПД: 239137518105035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104322&fm=239137518105035&tin=02508201610067®Number=0000000000092785&sum=50000 [09:41:12]StoreToDocumentArchive [09:41:12]shift 356 fd 104322 [09:41:12]save to /storage/0356/doc_00104322 [09:41:12]save last doc name /storage/0356/doc_00104322 to /storage/kkm_last_doc_name [09:41:12]save OK [09:41:12]Clear old archive folders... [09:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:12]tlvbuf is 007105D0 [09:41:12]SAM_PROTO_ClearQueue [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 09 00 00 [09:41:12]Write to MH i2c: E2 08 00 9A 2A 80 09 00 00 00 00 00 00 36 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 9A 2A 00 90 00 38 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_ClearQueue done [09:41:12]KKMCreateOFDPacket [09:41:12]OFDProtocolAddRootSTLVToBuf [09:41:12]FM_MakeSignedData [09:41:12]FM_MakeSignedData [09:41:12]SAM_PROTO_SignData [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 01 02 [09:41:12]Write to MH i2c: E2 08 00 9B 2A 80 0D 01 02 00 00 00 00 3E [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]OFD Sender: No OFD packet to send [09:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 9B 2A 00 90 00 39 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]wFMCommunicate request_size=255 [09:41:12]MH_SAM_APDU [09:41: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 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 37 00 00 00 F4 03 04 00 3B 9C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 [09:41:12]Write to MH i2c: E2 02 01 9C 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 37 00 00 00 F4 03 04 00 3B 9C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 00 00 3A [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 9C 2A 00 90 00 3A [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=10 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 02 02 05 7E 8A D1 B1 CB [09:41:13]Write to MH i2c: E2 0D 00 9D 2A 80 0D 02 02 05 00 7E 8A D1 B1 CB 00 00 A0 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 03 02 [09:41:13]Write to MH i2c: E2 08 00 9E 2A 80 0D 03 02 00 00 00 00 43 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0B 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0B 00 9E 2A 00 6C DC EA 08 28 67 A5 1D 90 00 CF [09:41:13]RAPDU: 6C DC EA 08 28 67 A5 1D 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_SignData done [09:41:13]FM_MakeSignedData done [09:41:13]CreateOFDProtocolMessage [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 11 00 00 [09:41:13]Write to MH i2c: E2 08 00 9F 2A 80 11 00 00 00 00 00 00 43 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 9F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [09: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 [09:41:13]wFMCommunicate OK [09:41:13]CreateOFDProtocolMessage done [09:41:13]OFDSenderStorePacket 104322 [09:41:13]StoreOFDPacket docnum=104322 [09:41: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 A4 5E 07 01 8B 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 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 37 00 00 00 F4 03 04 00 3B 9C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 7E 8A D1 B1 CB 6C DC EA 08 28 67 A5 1D [09:41:13]CheckFolder [09:41:13]dirname=/storage/ofd_packets [09:41:13]CheckFolder done [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00104322 [09:41:13]NVStorageSaveData ofd_packets/00104322 [09:41:13]File name is /storage/ofd_packets/00104322 [09:41:13]Write 301 bytes [09:41:13]NVStorageSaveData done [09:41:13]OFDSenderStorePacket done [09:41:13]KKMCreateOFDPacket done [09:41:13]NVStorageSaveData kkm_last_timestamp [09:41:13]File name is /storage/kkm_last_timestamp [09:41:13]Write 4 bytes [09:41:13]NVStorageSaveData done [09:41:13]ExternCall_PrintAddStr [09:41:13]wPrintStart [09:41:13]Write to MH i2c: 01 00 00 A0 2A CA [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 A0 2A 00 00 00 00 00 FF 0F DF [09:41:13]RasterBufferAndPrint [09:41:13]line Счет N : (1)673825 [09:41:13]line ИНН: 02508201610067 [09:41:13]line Контрольно-Кассовый Чек [09:41:13]line ПРОДАЖА [09:41:13]line ТРК (МРК, ГНК) : 32 [09:41:13]line Товар: 2710124130 [09:41:13]line Аи-92-К-5 [09:41:13]line 7.540 * 66.40 [09:41:13]line = 500.66 [09:41:13]line НДС 12% НСП 1% [09:41:13]line > о реализуемом товаре [09:41:13]line ОКРУГЛЕНИЕ: -0.66 [09:41:13]line ИТОГО: 500.00 [09:41:13]line Внесено: 500.00 [09:41:13]line СДАЧА: 0.00 [09:41:13]line НСП 1% : 4.43 [09:41:13]line НДС 12% : 53.17 [09:41:13]line Наличными: 500.00 [09:41:13]line Безнал.: 0.00 [09:41:13]line Место: АЗС № 120 "Партнер Нефть" [09:41:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:41:13]line СНО: Общий режим [09:41:13]line Чек 55 22.06.2024 09:41 [09:41:13]line Смена: 356 ФФД: 1.0 [09:41:13]line ЗНМ: 0300000164 [09:41:13]line РНМ: 0000000000092785 [09:41:13]line Версия ККМ: 001 [09:41:13]line ФМ: 0000000000875093 [09:41:13]line ФД: 104322 [09:41:13]line ФПД: 239137518105035 [09:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104322&fm=239137518105035&tin=02508201610067®Number=0000000000092785&sum=50000 [09:41:13]OFD Sender: Processing packet 104322 [packets to send 17, broken 16] [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00104322 [09:41:13]OFD Sender: To server: pG, [09:41:13]CommunicateWithHost lk.salyk.kg:30040 [09:41:13]ConnectInit lk.salyk.kg [09:41:13]written 0, free lines is 4095 [09:41:13]Connected sock=10 [09:41: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 A4 5E 07 01 8B 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 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 37 00 00 00 F4 03 04 00 3B 9C 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D9 7E 8A D1 B1 CB 6C DC EA 08 28 67 A5 1D [09:41: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 99 95 47 00 02 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 82 97 01 00 F4 03 04 00 BB 42 76 66 B6 04 01 00 00 8F 1C BC 24 92 8D 45 9F [09:41:13]CommunicateWithHost err = 0 [09:41:13]CheckOFDResponse [09:41:13]1017 (14) - 77093643461234 [09:41:13]1041 (16) - 0000000000875093 [09:41:13]1040 (4) - 104322 [09:41:13]1012 (4) - 22.06.2024 03:19 [09:41:13]1206 (1) - 0 [09:41:13]OFD Sender: Remove packet 104322 [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00104322 [09:41:13]NVStorageDeleteData [09:41:13]Write to MH i2c: 01 00 00 CB 2A F5 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 CB 2A 00 00 00 00 00 CD 0C D5 [09:41:13]RasterBufferAndPrint [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]written 0, free lines is 3283 [09:41:13]MH_Cut [09:41:13]Write to MH i2c: D1 01 00 D2 2A 01 CE [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 D2 2A 00 CD [09:41:13]Write to MH i2c: 01 00 00 D3 2A FD [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:14]OFD Sender: No OFD packet to send [09:41:14]*** Cut start [09:41:14]*** Partial cut [09:41:14]*** CUTSNS_PIN = 1 [09:41:14]*** CUTSNS_PIN = 0 [09:41:14]*** Brake cut motor [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]*** Stop cut motor [09:41:15]*** Cut end [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 D3 2A 00 00 00 00 00 FF 0F 12 [09:41:15]process_action close_receipt done [09:41:15]requested_data is exist [09:41:15]produce_requested_data [09:41:15]requested_item fm.sn is exist - process it [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 11 00 00 [09:41:15]Write to MH i2c: E2 08 00 D4 2A 80 11 00 00 00 00 00 00 78 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 D4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [09:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:41:15]wFMCommunicate OK [09:41:15]requested_item fd.num is exist - process it [09:41:15]SAM_PROTO_GetFieldsCounters [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 13 00 00 [09:41:15]Write to MH i2c: E2 08 00 D5 2A 80 13 00 00 00 00 00 00 7B [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 62 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 62 00 D5 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C6 [09:41: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 82 97 01 00 0E 04 04 00 64 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 [09:41:15]wFMCommunicate OK [09:41:15]SAM_PROTO_GetFieldsCounters done [09:41:15]requested_item shift.num is exist - process it [09:41:15]requested_item shift.opened is exist - process it [09:41:15]req_shift_opened [09:41:15]FM_GetShiftState [09:41:15]SAM_PROTO_GetShiftState [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 13 01 00 [09:41:15]Write to MH i2c: E2 08 00 D6 2A 80 13 01 00 00 00 00 00 7D [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0E 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0E 00 D6 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6F [09:41:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:41:15]wFMCommunicate OK [09:41:15]SAM_PROTO_GetShiftState done [09:41:15]FM_GetShiftState done [09:41:15]req_shift_opened done [09:41:15]requested_item shift.open_date is exist - process it [09:41:15]req_shift_open_date [09:41:15]req_shift_open_date done [09:41:15]produce_requested_data done [09:41:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104322,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:41:15]process_action_free close_receipt [09:41:15]json_value_free [09:41:15]json_value_free done [09:41:15]process_json_proto returns [09:41:15]Send response to host [09:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104322,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:41:15]free response buf [09:41:15]execute_script done [09:41:15]execute_script returns [09:41:15]free content buf [09:41:15]Sock 7.Close socket [09:41:15]Sock 7.Thread stoped [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:22]accept exits with 9 [09:45:22]New connection [09:45:22]New thread 3067616612 created [09:45:22]Thread 3067473252 joined [09:45:22]Waiting for new connection... [09:45:22] Sock 9.Parse request [09:45:22]Sock 9.Check first char [09:45:22]Sock 9.First char is OK [09:45:22]request: POST /json_proto HTTP/1.0 [09:45:22]Method: POST [09:45:22]URL: /json_proto [09:45:22]Method is POST - this is cgi request [09:45:22]url: /json_proto [09:45:22]query_string will be loaded in cgi processing [09:45:22]execute_cgi json_proto POST (null) [09:45:22]execute_cgi path=json_proto method=POST [09:45:22]POST find Content-Length [09:45:22]Host: 172.17.38.133:8080 [09:45:22]Content-Length: 683 [09:45:22]Content-Type: application/json [09:45:22] [09:45:22]POST finish read [09:45:22]Found Content-Length = 683 [09:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673826", "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" : 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" ] } } [09:45:22]execute_script... [09:45: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)673826", "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" : 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" ] } } [09:45:22]POST & json_proto [09:45:22]process_json_proto [09:45:22]json parsed OK: [09:45:22]protocol is kg_v1.0 [09:45:22]action value=close_receipt [09:45:22]process_action close_receipt [09:45:22]cmd_close_receipt [09:45:22]MH_GetDate [09:45:22]Write to MH i2c: F0 00 00 D7 2A F0 [09:45:22]Write i2c OK [09:45:22]MH_I2C_Read... [09:45:22]Read from MH i2c: F0 [09:45:22]MH_I2C_Read... [09:45:22]Read from MH i2c: F0 09 00 [09:45:22]MH_I2C_Read... [09:45:22]Read from MH i2c: F0 09 00 D7 2A 00 36 9D 76 66 BD 8F 7C 64 D4 [09:45:22]GetLastDocTimeStamp 1719049275 [09:45:22]current date 1719049526 [09:45:22]FM_GetShiftState [09:45:22]SAM_PROTO_GetShiftState [09:45:22]wFMCommunicate request_size=4 [09:45:22]MH_SAM_APDU [09:45:22]CAPDU: 80 13 01 00 [09:45:22]Write to MH i2c: E2 08 00 D8 2A 80 13 01 00 00 00 00 00 7F [09:45:22]Write i2c OK [09:45:22]MH_I2C_Read... [09:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:22]Read from MH i2c: E2 [09:45:22]MH_I2C_Read... [09:45:22]Read from MH i2c: E2 0E 00 [09:45:22]MH_I2C_Read... [09:45:22]Read from MH i2c: E2 0E 00 D8 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 71 [09:45:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:45:22]wFMCommunicate OK [09:45:22]SAM_PROTO_GetShiftState done [09:45:22]FM_GetShiftState done [09:45:22]opened in 1719016176 [09:45:22]opened+sec_in_day 1719102576 [09:45:22]quantity*price = 80044 [09:45:22]sum+1 = 80045 [09:45:22]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 СНО: Общий режим Чек 56 22.06.2024 09:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104323 ФПД: 146826826879367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104323&fm=146826826879367&tin=02508201610067®Number=0000000000092785&sum=80000 [09:45:23]StoreToDocumentArchive [09:45:23]shift 356 fd 104323 [09:45:23]save to /storage/0356/doc_00104323 [09:45:23]save last doc name /storage/0356/doc_00104323 to /storage/kkm_last_doc_name [09:45:23]save OK [09:45:23]Clear old archive folders... [09:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:45:23]tlvbuf is 007386A0 [09:45:23]SAM_PROTO_ClearQueue [09:45:23]wFMCommunicate request_size=4 [09:45:23]MH_SAM_APDU [09:45:23]CAPDU: 80 09 00 00 [09:45:23]Write to MH i2c: E2 08 00 E5 2A 80 09 00 00 00 00 00 00 81 [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 E5 2A 00 90 00 83 [09:45:23]RAPDU: 90 00 [09:45:23]wFMCommunicate OK [09:45:23]SAM_PROTO_ClearQueue done [09:45:23]KKMCreateOFDPacket [09:45:23]OFDProtocolAddRootSTLVToBuf [09:45:23]FM_MakeSignedData [09:45:23]FM_MakeSignedData [09:45:23]SAM_PROTO_SignData [09:45:23]wFMCommunicate request_size=4 [09:45:23]MH_SAM_APDU [09:45:23]CAPDU: 80 0D 01 02 [09:45:23]Write to MH i2c: E2 08 00 E6 2A 80 0D 01 02 00 00 00 00 89 [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 E6 2A 00 90 00 84 [09:45:23]RAPDU: 90 00 [09:45:23]wFMCommunicate OK [09:45:23]wFMCommunicate request_size=255 [09:45:23]MH_SAM_APDU [09:45: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 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 38 00 00 00 F4 03 04 00 36 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [09:45:23]Write to MH i2c: E2 02 01 E7 2A 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 38 00 00 00 F4 03 04 00 36 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 51 [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [09:45:23]RAPDU: 90 00 [09:45:23]wFMCommunicate OK [09:45:23]wFMCommunicate request_size=11 [09:45:23]MH_SAM_APDU [09:45:23]CAPDU: 80 0D 02 02 06 85 89 C8 DC 11 87 [09:45:23]Write to MH i2c: E2 0E 00 E8 2A 80 0D 02 02 06 00 85 89 C8 DC 11 87 00 00 E2 [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [09:45:23]RAPDU: 90 00 [09:45:23]wFMCommunicate OK [09:45:23]wFMCommunicate request_size=4 [09:45:23]MH_SAM_APDU [09:45:23]CAPDU: 80 0D 03 02 [09:45:23]Write to MH i2c: E2 08 00 E9 2A 80 0D 03 02 00 00 00 00 8E [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 0B 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 0B 00 E9 2A 00 83 B2 82 BF 0C 97 07 DE 90 00 8D [09:45:23]RAPDU: 83 B2 82 BF 0C 97 07 DE 90 00 [09:45:23]wFMCommunicate OK [09:45:23]SAM_PROTO_SignData done [09:45:23]FM_MakeSignedData done [09:45:23]CreateOFDProtocolMessage [09:45:23]wFMCommunicate request_size=4 [09:45:23]MH_SAM_APDU [09:45:23]CAPDU: 80 11 00 00 [09:45:23]Write to MH i2c: E2 08 00 EA 2A 80 11 00 00 00 00 00 00 8E [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:23]Read from MH i2c: E2 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 17 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: E2 17 00 EA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [09:45: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:45:23]wFMCommunicate OK [09:45:23]CreateOFDProtocolMessage done [09:45:23]OFDSenderStorePacket 104323 [09:45:23]StoreOFDPacket docnum=104323 [09:45: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 66 04 08 01 6E 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 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 38 00 00 00 F4 03 04 00 36 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 89 C8 DC 11 87 83 B2 82 BF 0C 97 07 DE [09:45:23]CheckFolder [09:45:23]dirname=/storage/ofd_packets [09:45:23]CheckFolder done [09:45:23]ProducePacketName [09:45:23]name=ofd_packets/00104323 [09:45:23]NVStorageSaveData ofd_packets/00104323 [09:45:23]File name is /storage/ofd_packets/00104323 [09:45:23]Write 302 bytes [09:45:23]NVStorageSaveData done [09:45:23]OFDSenderStorePacket done [09:45:23]KKMCreateOFDPacket done [09:45:23]NVStorageSaveData kkm_last_timestamp [09:45:23]File name is /storage/kkm_last_timestamp [09:45:23]Write 4 bytes [09:45:23]NVStorageSaveData done [09:45:23]ExternCall_PrintAddStr [09:45:23]wPrintStart [09:45:23]Write to MH i2c: 01 00 00 EB 2A 15 [09:45:23]Write i2c OK [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: 01 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: 01 07 00 [09:45:23]MH_I2C_Read... [09:45:23]Read from MH i2c: 01 07 00 EB 2A 00 00 00 00 00 FF 0F 2A [09:45:23]RasterBufferAndPrint [09:45:23]line Счет N : (1)673826 [09:45:23]line ИНН: 02508201610067 [09:45:23]line Контрольно-Кассовый Чек [09:45:23]line ПРОДАЖА [09:45:23]line ТРК (МРК, ГНК) : 11 [09:45:23]line Товар: 2710194210 [09:45:23]line ДТ(л)-К-5 [09:45:23]line 10.980 * 72.90 [09:45:23]line = 800.44 [09:45:23]line НДС 12% НСП 1% [09:45:23]line > о реализуемом товаре [09:45:23]line ОКРУГЛЕНИЕ: -0.44 [09:45:23]line ИТОГО: 800.00 [09:45:23]line Внесено: 800.00 [09:45:23]line СДАЧА: 0.00 [09:45:23]line НСП 1% : 7.08 [09:45:23]line НДС 12% : 85.00 [09:45:23]line Наличными: 800.00 [09:45:23]line Безнал.: 0.00 [09:45:23]line Место: АЗС № 120 "Партнер Нефть" [09:45:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:45:23]line СНО: Общий режим [09:45:23]line Чек 56 22.06.2024 09:45 [09:45:23]line Смена: 356 ФФД: 1.0 [09:45:23]line ЗНМ: 0300000164 [09:45:23]line РНМ: 0000000000092785 [09:45:23]line Версия ККМ: 001 [09:45:23]line ФМ: 0000000000875093 [09:45:23]line ФД: 104323 [09:45:23]line ФПД: 146826826879367 [09:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104323&fm=146826826879367&tin=02508201610067®Number=0000000000092785&sum=80000 [09:45:24]OFD Sender: Processing packet 104323 [packets to send 17, broken 16] [09:45:24]ProducePacketName [09:45:24]name=ofd_packets/00104323 [09:45:24]OFD Sender: To server: pG, [09:45:24]CommunicateWithHost lk.salyk.kg:30040 [09:45:24]ConnectInit lk.salyk.kg [09:45:24]written 0, free lines is 4095 [09:45:24]Connected sock=7 [09:45: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 66 04 08 01 6E 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 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 38 00 00 00 F4 03 04 00 36 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 85 89 C8 DC 11 87 83 B2 82 BF 0C 97 07 DE [09:45:24]Write to MH i2c: 01 00 00 16 2B 41 [09:45:24]Write i2c OK [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: 01 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: 01 07 00 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: 01 07 00 16 2B 00 00 00 00 00 CE 0C 22 [09:45:24]RasterBufferAndPrint [09:45:24]line [09:45:24]line [09:45:24]line [09:45:24]line [09:45:24]line [09:45:24]written 0, free lines is 3284 [09:45:24]MH_Cut [09:45:24]Write to MH i2c: D1 01 00 1D 2B 01 1A [09:45:24]Write i2c OK [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: D1 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: D1 01 00 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: D1 01 00 1D 2B 00 19 [09:45:24]Write to MH i2c: 01 00 00 1E 2B 49 [09:45:24]Write i2c OK [09:45:24]MH_I2C_Read... [09:45: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 C0 81 47 00 D4 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 83 97 01 00 F4 03 04 00 B6 43 76 66 B6 04 01 00 00 33 5A 5B 29 DA CD E3 66 [09:45:24]CommunicateWithHost err = 0 [09:45:24]CheckOFDResponse [09:45:24]1017 (14) - 77093643461234 [09:45:24]1041 (16) - 0000000000875093 [09:45:24]1040 (4) - 104323 [09:45:24]1012 (4) - 22.06.2024 03:23 [09:45:24]1206 (1) - 0 [09:45:24]OFD Sender: Remove packet 104323 [09:45:24]ProducePacketName [09:45:24]name=ofd_packets/00104323 [09:45:24]NVStorageDeleteData [09:45:25]OFD Sender: No OFD packet to send [09:45:25]*** Cut start [09:45:25]*** Partial cut [09:45:25]*** CUTSNS_PIN = 1 [09:45:25]*** CUTSNS_PIN = 0 [09:45:25]*** Brake cut motor [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]*** Stop cut motor [09:45:26]*** Cut end [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 1E 2B 00 00 00 00 00 FF 0F 5E [09:45:26]process_action close_receipt done [09:45:26]requested_data is exist [09:45:26]produce_requested_data [09:45:26]requested_item fm.sn is exist - process it [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 11 00 00 [09:45:26]Write to MH i2c: E2 08 00 1F 2B 80 11 00 00 00 00 00 00 C4 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 1F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [09: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 [09:45:26]wFMCommunicate OK [09:45:26]requested_item fd.num is exist - process it [09:45:26]SAM_PROTO_GetFieldsCounters [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 13 00 00 [09:45:26]Write to MH i2c: E2 08 00 20 2B 80 13 00 00 00 00 00 00 C7 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 62 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 62 00 20 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 16 [09: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 83 97 01 00 0E 04 04 00 64 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 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_GetFieldsCounters done [09:45:26]requested_item shift.num is exist - process it [09:45:26]requested_item shift.opened is exist - process it [09:45:26]req_shift_opened [09:45:26]FM_GetShiftState [09:45:26]SAM_PROTO_GetShiftState [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 13 01 00 [09:45:26]Write to MH i2c: E2 08 00 21 2B 80 13 01 00 00 00 00 00 C9 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0E 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0E 00 21 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BB [09:45:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_GetShiftState done [09:45:26]FM_GetShiftState done [09:45:26]req_shift_opened done [09:45:26]requested_item shift.open_date is exist - process it [09:45:26]req_shift_open_date [09:45:26]req_shift_open_date done [09:45:26]produce_requested_data done [09:45:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104323,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:45:26]process_action_free close_receipt [09:45:26]json_value_free [09:45:26]json_value_free done [09:45:26]process_json_proto returns [09:45:26]Send response to host [09:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104323,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:45:26]free response buf [09:45:26]execute_script done [09:45:26]execute_script returns [09:45:26]free content buf [09:45:26]Sock 9.Close socket [09:45:26]Sock 9.Thread stoped [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:22]accept exits with 10 [09:46:22]New connection [09:46:22]New thread 3067473252 created [09:46:22]Thread 3067616612 joined [09:46:22]Waiting for new connection... [09:46:22] Sock 10.Parse request [09:46:22]Sock 10.Check first char [09:46:22]Sock 10.First char is OK [09:46:22]request: POST /json_proto HTTP/1.0 [09:46:22]Method: POST [09:46:22]URL: /json_proto [09:46:22]Method is POST - this is cgi request [09:46:22]url: /json_proto [09:46:22]query_string will be loaded in cgi processing [09:46:22]execute_cgi json_proto POST (null) [09:46:22]execute_cgi path=json_proto method=POST [09:46:22]POST find Content-Length [09:46:22]Host: 172.17.38.133:8080 [09:46:22]Content-Length: 682 [09:46:22]Content-Type: application/json [09:46:22] [09:46:22]POST finish read [09:46:22]Found Content-Length = 682 [09:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673827", "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" ] } } [09:46:22]execute_script... [09:46: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)673827", "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" ] } } [09:46:22]POST & json_proto [09:46:22]process_json_proto [09:46:22]json parsed OK: [09:46:22]protocol is kg_v1.0 [09:46:22]action value=close_receipt [09:46:22]process_action close_receipt [09:46:22]cmd_close_receipt [09:46:22]MH_GetDate [09:46:22]Write to MH i2c: F0 00 00 22 2B 3C [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: F0 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: F0 09 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: F0 09 00 22 2B 00 72 9D 76 66 BD 8F 7C 64 5C [09:46:22]GetLastDocTimeStamp 1719049526 [09:46:22]current date 1719049586 [09:46:22]FM_GetShiftState [09:46:22]SAM_PROTO_GetShiftState [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 13 01 00 [09:46:22]Write to MH i2c: E2 08 00 23 2B 80 13 01 00 00 00 00 00 CB [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 0E 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 0E 00 23 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BD [09:46:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:46:22]wFMCommunicate OK [09:46:22]SAM_PROTO_GetShiftState done [09:46:22]FM_GetShiftState done [09:46:22]opened in 1719016176 [09:46:22]opened+sec_in_day 1719102576 [09:46:22]quantity*price = 200063 [09:46:22]sum+1 = 200064 [09:46:22]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 СНО: Общий режим Чек 57 22.06.2024 09:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104324 ФПД: 134521558953879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094627&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104324&fm=134521558953879&tin=02508201610067®Number=0000000000092785&sum=200000 [09:46:23]StoreToDocumentArchive [09:46:23]shift 356 fd 104324 [09:46:23]save to /storage/0356/doc_00104324 [09:46:23]save last doc name /storage/0356/doc_00104324 to /storage/kkm_last_doc_name [09:46:23]save OK [09:46:23]Clear old archive folders... [09:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:23]tlvbuf is 00738590 [09:46:23]SAM_PROTO_ClearQueue [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 09 00 00 [09:46:23]Write to MH i2c: E2 08 00 30 2B 80 09 00 00 00 00 00 00 CD [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:23]Read from MH i2c: E2 03 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [09:46:23]RAPDU: 90 00 [09:46:23]wFMCommunicate OK [09:46:23]SAM_PROTO_ClearQueue done [09:46:23]KKMCreateOFDPacket [09:46:23]OFDProtocolAddRootSTLVToBuf [09:46:23]FM_MakeSignedData [09:46:23]FM_MakeSignedData [09:46:23]SAM_PROTO_SignData [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 0D 01 02 [09:46:23]Write to MH i2c: E2 08 00 31 2B 80 0D 01 02 00 00 00 00 D5 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 31 2B 00 90 00 D0 [09:46:23]RAPDU: 90 00 [09:46:23]wFMCommunicate OK [09:46:23]wFMCommunicate request_size=255 [09:46:23]MH_SAM_APDU [09:46: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 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 39 00 00 00 F4 03 04 00 73 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7A [09:46:23]Write to MH i2c: E2 02 01 32 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 73 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7A 00 00 A4 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [09:46:24]RAPDU: 90 00 [09:46:24]wFMCommunicate OK [09:46:24]wFMCommunicate request_size=10 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 0D 02 02 05 58 BD BC 6F 97 [09:46:24]Write to MH i2c: E2 0D 00 33 2B 80 0D 02 02 05 00 58 BD BC 6F 97 00 00 B9 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [09:46:24]RAPDU: 90 00 [09:46:24]wFMCommunicate OK [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 0D 03 02 [09:46:24]Write to MH i2c: E2 08 00 34 2B 80 0D 03 02 00 00 00 00 DA [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 0B 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 0B 00 34 2B 00 55 A6 7D D3 62 8B D9 F3 90 00 DF [09:46:24]RAPDU: 55 A6 7D D3 62 8B D9 F3 90 00 [09:46:24]wFMCommunicate OK [09:46:24]SAM_PROTO_SignData done [09:46:24]FM_MakeSignedData done [09:46:24]CreateOFDProtocolMessage [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 11 00 00 [09:46:24]Write to MH i2c: E2 08 00 35 2B 80 11 00 00 00 00 00 00 DA [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 35 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [09: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 [09:46:24]wFMCommunicate OK [09:46:24]CreateOFDProtocolMessage done [09:46:24]OFDSenderStorePacket 104324 [09:46:24]StoreOFDPacket docnum=104324 [09:46: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 76 E6 07 01 FF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 73 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7A 58 BD BC 6F 97 55 A6 7D D3 62 8B D9 F3 [09:46:24]CheckFolder [09:46:24]dirname=/storage/ofd_packets [09:46:24]CheckFolder done [09:46:24]ProducePacketName [09:46:24]name=ofd_packets/00104324 [09:46:24]NVStorageSaveData ofd_packets/00104324 [09:46:24]File name is /storage/ofd_packets/00104324 [09:46:24]Write 301 bytes [09:46:24]NVStorageSaveData done [09:46:24]OFDSenderStorePacket done [09:46:24]KKMCreateOFDPacket done [09:46:24]NVStorageSaveData kkm_last_timestamp [09:46:24]File name is /storage/kkm_last_timestamp [09:46:24]Write 4 bytes [09:46:24]NVStorageSaveData done [09:46:24]ExternCall_PrintAddStr [09:46:24]wPrintStart [09:46:24]Write to MH i2c: 01 00 00 36 2B 61 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 36 2B 00 00 00 00 00 FF 0F 76 [09:46:24]RasterBufferAndPrint [09:46:24]line Счет N : (1)673827 [09:46:24]line ИНН: 02508201610067 [09:46:24]line Контрольно-Кассовый Чек [09:46:24]line ПРОДАЖА [09:46:24]line ТРК (МРК, ГНК) : 42 [09:46:24]line Товар: 2710124130 [09:46:24]line Аи-92-К-5 [09:46:24]line 30.130 * 66.40 [09:46:24]line = 2000.63 [09:46:24]line НДС 12% НСП 1% [09:46:24]line > о реализуемом товаре [09:46:24]line ОКРУГЛЕНИЕ: -0.63 [09:46:24]line ИТОГО: 2000.00 [09:46:24]line Внесено: 2000.00 [09:46:24]line СДАЧА: 0.00 [09:46:24]line НСП 1% : 17.70 [09:46:24]line НДС 12% : 212.46 [09:46:24]line Наличными: 2000.00 [09:46:24]line Безнал.: 0.00 [09:46:24]line Место: АЗС № 120 "Партнер Нефть" [09:46:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:46:24]line СНО: Общий режим [09:46:24]line Чек 57 22.06.2024 09:46 [09:46:24]line Смена: 356 ФФД: 1.0 [09:46:24]line ЗНМ: 0300000164 [09:46:24]line РНМ: 0000000000092785 [09:46:24]line Версия ККМ: 001 [09:46:24]line ФМ: 0000000000875093 [09:46:24]line ФД: 104324 [09:46:24]line ФПД: 134521558953879 [09:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094627&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104324&fm=134521558953879&tin=02508201610067®Number=0000000000092785&sum=200000 [09:46:24]OFD Sender: Processing packet 104324 [packets to send 17, broken 16] [09:46:24]ProducePacketName [09:46:24]name=ofd_packets/00104324 [09:46:24]OFD Sender: To server: pG, [09:46:24]CommunicateWithHost lk.salyk.kg:30040 [09:46:24]ConnectInit lk.salyk.kg [09:46:24]written 0, free lines is 4095 [09:46:24]Connected sock=9 [09:46: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 76 E6 07 01 FF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 73 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7A 58 BD BC 6F 97 55 A6 7D D3 62 8B D9 F3 [09:46: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 4D 11 47 00 0B 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 84 97 01 00 F4 03 04 00 F2 43 76 66 B6 04 01 00 00 20 98 5A 3D 69 E6 78 3D [09:46:25]CommunicateWithHost err = 0 [09:46:25]CheckOFDResponse [09:46:25]1017 (14) - 77093643461234 [09:46:25]1041 (16) - 0000000000875093 [09:46:25]1040 (4) - 104324 [09:46:25]1012 (4) - 22.06.2024 03:24 [09:46:25]1206 (1) - 0 [09:46:25]OFD Sender: Remove packet 104324 [09:46:25]ProducePacketName [09:46:25]name=ofd_packets/00104324 [09:46:25]NVStorageDeleteData [09:46:25]Write to MH i2c: 01 00 00 61 2B 8C [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 07 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 07 00 61 2B 00 00 00 00 00 F5 0C 94 [09:46:25]RasterBufferAndPrint [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]line [09:46:25]written 0, free lines is 3327 [09:46:25]MH_Cut [09:46:25]Write to MH i2c: D1 01 00 68 2B 01 65 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 01 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: D1 01 00 68 2B 00 64 [09:46:25]Write to MH i2c: 01 00 00 69 2B 94 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]OFD Sender: No OFD packet to send [09:46:25]*** Cut start [09:46:25]*** Partial cut [09:46:25]*** CUTSNS_PIN = 1 [09:46:25]*** CUTSNS_PIN = 0 [09:46:26]*** Brake cut motor [09:46:26]Read from MH i2c: 01 [09:46:26]MH_I2C_Read... [09:46:26]*** Stop cut motor [09:46:26]*** Cut end [09:46:26]Read from MH i2c: 01 07 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 FF 0F A9 [09:46:26]process_action close_receipt done [09:46:26]requested_data is exist [09:46:26]produce_requested_data [09:46:26]requested_item fm.sn is exist - process it [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 11 00 00 [09:46:26]Write to MH i2c: E2 08 00 6A 2B 80 11 00 00 00 00 00 00 0F [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 17 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 17 00 6A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [09:46: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:46:26]wFMCommunicate OK [09:46:26]requested_item fd.num is exist - process it [09:46:26]SAM_PROTO_GetFieldsCounters [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 13 00 00 [09:46:26]Write to MH i2c: E2 08 00 6B 2B 80 13 00 00 00 00 00 00 12 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 62 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 62 00 6B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 65 [09:46: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 84 97 01 00 0E 04 04 00 64 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 [09:46:26]wFMCommunicate OK [09:46:26]SAM_PROTO_GetFieldsCounters done [09:46:26]requested_item shift.num is exist - process it [09:46:26]requested_item shift.opened is exist - process it [09:46:26]req_shift_opened [09:46:26]FM_GetShiftState [09:46:26]SAM_PROTO_GetShiftState [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 13 01 00 [09:46:26]Write to MH i2c: E2 08 00 6C 2B 80 13 01 00 00 00 00 00 14 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0E 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0E 00 6C 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 06 [09:46:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:46:26]wFMCommunicate OK [09:46:26]SAM_PROTO_GetShiftState done [09:46:26]FM_GetShiftState done [09:46:26]req_shift_opened done [09:46:26]requested_item shift.open_date is exist - process it [09:46:26]req_shift_open_date [09:46:26]req_shift_open_date done [09:46:26]produce_requested_data done [09:46:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104324,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:46:26]process_action_free close_receipt [09:46:26]json_value_free [09:46:26]json_value_free done [09:46:26]process_json_proto returns [09:46:26]Send response to host [09:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104324,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:46:26]free response buf [09:46:26]execute_script done [09:46:26]execute_script returns [09:46:26]free content buf [09:46:26]Sock 10.Close socket [09:46:26]Sock 10.Thread stoped [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:26]accept exits with 7 [09:48:26]New connection [09:48:26]New thread 3067616612 created [09:48:26]Thread 3067473252 joined [09:48:26]Waiting for new connection... [09:48:26] Sock 7.Parse request [09:48:26]Sock 7.Check first char [09:48:26]Sock 7.First char is OK [09:48:26]request: POST /json_proto HTTP/1.0 [09:48:26]Method: POST [09:48:26]URL: /json_proto [09:48:26]Method is POST - this is cgi request [09:48:26]url: /json_proto [09:48:26]query_string will be loaded in cgi processing [09:48:26]execute_cgi json_proto POST (null) [09:48:26]execute_cgi path=json_proto method=POST [09:48:26]POST find Content-Length [09:48:26]Host: 172.17.38.133:8080 [09:48:26]Content-Length: 682 [09:48:26]Content-Type: application/json [09:48:26] [09:48:26]POST finish read [09:48:26]Found Content-Length = 682 [09:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673829", "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:48:26]execute_script... [09:48: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)673829", "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:48:26]POST & json_proto [09:48:26]process_json_proto [09:48:26]json parsed OK: [09:48:26]protocol is kg_v1.0 [09:48:26]action value=close_receipt [09:48:26]process_action close_receipt [09:48:26]cmd_close_receipt [09:48:26]MH_GetDate [09:48:26]Write to MH i2c: F0 00 00 6D 2B 87 [09:48:26]Write i2c OK [09:48:26]MH_I2C_Read... [09:48:26]Read from MH i2c: F0 [09:48:26]MH_I2C_Read... [09:48:26]Read from MH i2c: F0 09 00 [09:48:26]MH_I2C_Read... [09:48:26]Read from MH i2c: F0 09 00 6D 2B 00 EF 9D 76 66 BD 8F 7C 64 24 [09:48:26]GetLastDocTimeStamp 1719049587 [09:48:26]current date 1719049711 [09:48:26]FM_GetShiftState [09:48:26]SAM_PROTO_GetShiftState [09:48:26]wFMCommunicate request_size=4 [09:48:26]MH_SAM_APDU [09:48:26]CAPDU: 80 13 01 00 [09:48:26]Write to MH i2c: E2 08 00 6E 2B 80 13 01 00 00 00 00 00 16 [09:48:26]Write i2c OK [09:48:26]MH_I2C_Read... [09:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:26]Read from MH i2c: E2 [09:48:26]MH_I2C_Read... [09:48:26]Read from MH i2c: E2 0E 00 [09:48:26]MH_I2C_Read... [09:48:26]Read from MH i2c: E2 0E 00 6E 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 08 [09:48:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:48:26]wFMCommunicate OK [09:48:26]SAM_PROTO_GetShiftState done [09:48:26]FM_GetShiftState done [09:48:26]opened in 1719016176 [09:48:26]opened+sec_in_day 1719102576 [09:48:26]quantity*price = 100064 [09:48:26]sum+1 = 100066 [09:48:26]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 СНО: Общий режим Чек 58 22.06.2024 09:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104325 ФПД: 86089506847035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104325&fm=86089506847035&tin=02508201610067®Number=0000000000092785&sum=100000 [09:48:27]StoreToDocumentArchive [09:48:27]shift 356 fd 104325 [09:48:27]save to /storage/0356/doc_00104325 [09:48:27]save last doc name /storage/0356/doc_00104325 to /storage/kkm_last_doc_name [09:48:27]save OK [09:48:27]Clear old archive folders... [09:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:27]tlvbuf is B6F7CA90 [09:48:27]SAM_PROTO_ClearQueue [09:48:27]wFMCommunicate request_size=4 [09:48:27]MH_SAM_APDU [09:48:27]CAPDU: 80 09 00 00 [09:48:27]Write to MH i2c: E2 08 00 7B 2B 80 09 00 00 00 00 00 00 18 [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:27]Read from MH i2c: E2 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 03 00 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [09:48:27]RAPDU: 90 00 [09:48:27]wFMCommunicate OK [09:48:27]SAM_PROTO_ClearQueue done [09:48:27]KKMCreateOFDPacket [09:48:27]OFDProtocolAddRootSTLVToBuf [09:48:27]FM_MakeSignedData [09:48:27]FM_MakeSignedData [09:48:27]SAM_PROTO_SignData [09:48:27]wFMCommunicate request_size=4 [09:48:27]MH_SAM_APDU [09:48:27]CAPDU: 80 0D 01 02 [09:48:27]Write to MH i2c: E2 08 00 7C 2B 80 0D 01 02 00 00 00 00 20 [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 7C 2B 00 90 00 1B [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=255 [09:48:28]MH_SAM_APDU [09:48: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 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 3A 00 00 00 F4 03 04 00 EF 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E [09:48:28]Write to MH i2c: E2 02 01 7D 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 EF 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E 00 00 9C [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 7D 2B 00 90 00 1C [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=10 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 02 02 05 4C 46 79 79 3B [09:48:28]Write to MH i2c: E2 0D 00 7E 2B 80 0D 02 02 05 00 4C 46 79 79 3B 00 00 EC [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 03 02 [09:48:28]Write to MH i2c: E2 08 00 7F 2B 80 0D 03 02 00 00 00 00 25 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0B 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0B 00 7F 2B 00 50 D2 F6 3F D3 26 61 B9 90 00 90 [09:48:28]RAPDU: 50 D2 F6 3F D3 26 61 B9 90 00 [09:48:28]wFMCommunicate OK [09:48:28]SAM_PROTO_SignData done [09:48:28]FM_MakeSignedData done [09:48:28]CreateOFDProtocolMessage [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 11 00 00 [09:48:28]Write to MH i2c: E2 08 00 80 2B 80 11 00 00 00 00 00 00 25 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 17 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 17 00 80 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [09:48: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:48:28]wFMCommunicate OK [09:48:28]CreateOFDProtocolMessage done [09:48:28]OFDSenderStorePacket 104325 [09:48:28]StoreOFDPacket docnum=104325 [09:48: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 61 9B 07 01 CD 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 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 3A 00 00 00 F4 03 04 00 EF 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E 4C 46 79 79 3B 50 D2 F6 3F D3 26 61 B9 [09:48:28]CheckFolder [09:48:28]dirname=/storage/ofd_packets [09:48:28]CheckFolder done [09:48:28]ProducePacketName [09:48:28]name=ofd_packets/00104325 [09:48:28]NVStorageSaveData ofd_packets/00104325 [09:48:28]File name is /storage/ofd_packets/00104325 [09:48:28]Write 301 bytes [09:48:28]NVStorageSaveData done [09:48:28]OFDSenderStorePacket done [09:48:28]KKMCreateOFDPacket done [09:48:28]NVStorageSaveData kkm_last_timestamp [09:48:28]File name is /storage/kkm_last_timestamp [09:48:28]Write 4 bytes [09:48:28]NVStorageSaveData done [09:48:28]ExternCall_PrintAddStr [09:48:28]wPrintStart [09:48:28]Write to MH i2c: 01 00 00 81 2B AC [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 07 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 07 00 81 2B 00 00 00 00 00 FF 0F C1 [09:48:28]RasterBufferAndPrint [09:48:28]line Счет N : (1)673829 [09:48:28]line ИНН: 02508201610067 [09:48:28]line Контрольно-Кассовый Чек [09:48:28]line ПРОДАЖА [09:48:28]line ТРК (МРК, ГНК) : 42 [09:48:28]line Товар: 2710124130 [09:48:28]line Аи-92-К-5 [09:48:28]line 15.070 * 66.40 [09:48:28]line = 1000.65 [09:48:28]line НДС 12% НСП 1% [09:48:28]line > о реализуемом товаре [09:48:28]line ОКРУГЛЕНИЕ: -0.65 [09:48:28]line ИТОГО: 1000.00 [09:48:28]line Внесено: 1000.00 [09:48:28]line СДАЧА: 0.00 [09:48:28]line НСП 1% : 8.85 [09:48:28]line НДС 12% : 106.26 [09:48:28]line Наличными: 1000.00 [09:48:28]line Безнал.: 0.00 [09:48:28]line Место: АЗС № 120 "Партнер Нефть" [09:48:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:48:28]line СНО: Общий режим [09:48:28]line Чек 58 22.06.2024 09:48 [09:48:28]line Смена: 356 ФФД: 1.0 [09:48:28]line ЗНМ: 0300000164 [09:48:28]line РНМ: 0000000000092785 [09:48:28]line Версия ККМ: 001 [09:48:28]line ФМ: 0000000000875093 [09:48:28]line ФД: 104325 [09:48:28]line ФПД: 86089506847035 [09:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104325&fm=86089506847035&tin=02508201610067®Number=0000000000092785&sum=100000 [09:48:28]OFD Sender: Processing packet 104325 [packets to send 17, broken 16] [09:48:28]ProducePacketName [09:48:28]name=ofd_packets/00104325 [09:48:28]OFD Sender: To server: pG, [09:48:28]CommunicateWithHost lk.salyk.kg:30040 [09:48:28]ConnectInit lk.salyk.kg [09:48:28]written 0, free lines is 4095 [09:48:28]Connected sock=10 [09:48: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 61 9B 07 01 CD 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 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 3A 00 00 00 F4 03 04 00 EF 9D 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E 4C 46 79 79 3B 50 D2 F6 3F D3 26 61 B9 [09: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 4F 40 47 00 4E 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 85 97 01 00 F4 03 04 00 6E 44 76 66 B6 04 01 00 00 55 3B 81 39 9F 61 AB C8 [09:48:29]CommunicateWithHost err = 0 [09:48:29]CheckOFDResponse [09:48:29]1017 (14) - 77093643461234 [09:48:29]1041 (16) - 0000000000875093 [09:48:29]1040 (4) - 104325 [09:48:29]1012 (4) - 22.06.2024 03:26 [09:48:29]1206 (1) - 0 [09:48:29]OFD Sender: Remove packet 104325 [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00104325 [09:48:29]NVStorageDeleteData [09:48:29]Write to MH i2c: 01 00 00 AC 2B D7 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 AC 2B 00 00 00 00 00 E4 0C CE [09:48:29]RasterBufferAndPrint [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]written 0, free lines is 3306 [09:48:29]MH_Cut [09:48:29]Write to MH i2c: D1 01 00 B3 2B 01 B0 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 B3 2B 00 AF [09:48:29]Write to MH i2c: 01 00 00 B4 2B DF [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]OFD Sender: No OFD packet to send [09:48:30]*** Cut start [09:48:30]*** Partial cut [09:48:30]*** CUTSNS_PIN = 1 [09:48:30]*** CUTSNS_PIN = 0 [09:48:30]*** Brake cut motor [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]*** Stop cut motor [09:48:30]*** Cut end [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 FF 0F F4 [09:48:30]process_action close_receipt done [09:48:30]requested_data is exist [09:48:30]produce_requested_data [09:48:30]requested_item fm.sn is exist - process it [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 11 00 00 [09:48:30]Write to MH i2c: E2 08 00 B5 2B 80 11 00 00 00 00 00 00 5A [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 B5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [09:48:30]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:30]wFMCommunicate OK [09:48:30]requested_item fd.num is exist - process it [09:48:30]SAM_PROTO_GetFieldsCounters [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 13 00 00 [09:48:30]Write to MH i2c: E2 08 00 B6 2B 80 13 00 00 00 00 00 00 5D [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 62 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 62 00 B6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B4 [09:48: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 85 97 01 00 0E 04 04 00 64 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 [09:48:30]wFMCommunicate OK [09:48:30]SAM_PROTO_GetFieldsCounters done [09:48:30]requested_item shift.num is exist - process it [09:48:30]requested_item shift.opened is exist - process it [09:48:30]req_shift_opened [09:48:30]FM_GetShiftState [09:48:30]SAM_PROTO_GetShiftState [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 13 01 00 [09:48:30]Write to MH i2c: E2 08 00 B7 2B 80 13 01 00 00 00 00 00 5F [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0E 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0E 00 B7 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 51 [09:48:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:48:30]wFMCommunicate OK [09:48:30]SAM_PROTO_GetShiftState done [09:48:30]FM_GetShiftState done [09:48:30]req_shift_opened done [09:48:30]requested_item shift.open_date is exist - process it [09:48:30]req_shift_open_date [09:48:30]req_shift_open_date done [09:48:30]produce_requested_data done [09:48:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104325,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:48:30]process_action_free close_receipt [09:48:30]json_value_free [09:48:30]json_value_free done [09:48:30]process_json_proto returns [09:48:30]Send response to host [09:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104325,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:48:30]free response buf [09:48:30]execute_script done [09:48:30]execute_script returns [09:48:30]free content buf [09:48:30]Sock 7.Close socket [09:48:30]Sock 7.Thread stoped [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:06]accept exits with 9 [09:49:06]New connection [09:49:06]New thread 3067473252 created [09:49:06]Thread 3067616612 joined [09:49:06]Waiting for new connection... [09:49:06] Sock 9.Parse request [09:49:06]Sock 9.Check first char [09:49:06]Sock 9.First char is OK [09:49:06]request: POST /json_proto HTTP/1.0 [09:49:06]Method: POST [09:49:06]URL: /json_proto [09:49:06]Method is POST - this is cgi request [09:49:06]url: /json_proto [09:49:06]query_string will be loaded in cgi processing [09:49:06]execute_cgi json_proto POST (null) [09:49:06]execute_cgi path=json_proto method=POST [09:49:06]POST find Content-Length [09:49:06]Host: 172.17.38.133:8080 [09:49:06]Content-Length: 677 [09:49:06]Content-Type: application/json [09:49:06] [09:49:06]POST finish read [09:49:06]Found Content-Length = 677 [09:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673830", "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" ] } } [09:49:06]execute_script... [09:49: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)673830", "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" ] } } [09:49:06]POST & json_proto [09:49:06]process_json_proto [09:49:06]json parsed OK: [09:49:06]protocol is kg_v1.0 [09:49:06]action value=close_receipt [09:49:06]process_action close_receipt [09:49:06]cmd_close_receipt [09:49:06]MH_GetDate [09:49:06]Write to MH i2c: F0 00 00 B8 2B D2 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: F0 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: F0 09 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: F0 09 00 B8 2B 00 17 9E 76 66 BD 8F 7C 64 98 [09:49:06]GetLastDocTimeStamp 1719049711 [09:49:06]current date 1719049751 [09:49:06]FM_GetShiftState [09:49:06]SAM_PROTO_GetShiftState [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 13 01 00 [09:49:06]Write to MH i2c: E2 08 00 B9 2B 80 13 01 00 00 00 00 00 61 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0E 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0E 00 B9 2B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 53 [09:49:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:49:06]wFMCommunicate OK [09:49:06]SAM_PROTO_GetShiftState done [09:49:06]FM_GetShiftState done [09:49:06]opened in 1719016176 [09:49:06]opened+sec_in_day 1719102576 [09:49:06]quantity*price = 50065 [09:49:06]sum+1 = 50067 [09:49:06]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 СНО: Общий режим Чек 59 22.06.2024 09:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104326 ФПД: 80602082005822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094911&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104326&fm=80602082005822&tin=02508201610067®Number=0000000000092785&sum=50000 [09:49:08]StoreToDocumentArchive [09:49:08]shift 356 fd 104326 [09:49:08]save to /storage/0356/doc_00104326 [09:49:08]save last doc name /storage/0356/doc_00104326 to /storage/kkm_last_doc_name [09:49:08]save OK [09:49:08]Clear old archive folders... [09:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:08]tlvbuf is 00051090 [09:49:08]SAM_PROTO_ClearQueue [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 09 00 00 [09:49:08]Write to MH i2c: E2 08 00 C6 2B 80 09 00 00 00 00 00 00 63 [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 C6 2B 00 90 00 65 [09:49:08]RAPDU: 90 00 [09:49:08]wFMCommunicate OK [09:49:08]SAM_PROTO_ClearQueue done [09:49:08]KKMCreateOFDPacket [09:49:08]OFDProtocolAddRootSTLVToBuf [09:49:08]FM_MakeSignedData [09:49:08]FM_MakeSignedData [09:49:08]SAM_PROTO_SignData [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 0D 01 02 [09:49:08]Write to MH i2c: E2 08 00 C7 2B 80 0D 01 02 00 00 00 00 6B [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 C7 2B 00 90 00 66 [09:49:08]RAPDU: 90 00 [09:49:08]wFMCommunicate OK [09:49:08]wFMCommunicate request_size=255 [09:49:08]MH_SAM_APDU [09:49: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 3B 00 00 00 F4 03 04 00 17 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 [09:49:08]Write to MH i2c: E2 02 01 C8 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3B 00 00 00 F4 03 04 00 17 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 00 00 BD [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [09:49:08]RAPDU: 90 00 [09:49:08]wFMCommunicate OK [09:49:08]wFMCommunicate request_size=10 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 0D 02 02 05 4E A2 77 53 3E [09:49:08]Write to MH i2c: E2 0D 00 C9 2B 80 0D 02 02 05 00 4E A2 77 53 3E 00 00 70 [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [09:49:08]RAPDU: 90 00 [09:49:08]wFMCommunicate OK [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 0D 03 02 [09:49:08]Write to MH i2c: E2 08 00 CA 2B 80 0D 03 02 00 00 00 00 70 [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 0B 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 0B 00 CA 2B 00 8B E3 C4 F7 FE 05 EA C9 90 00 50 [09:49:08]RAPDU: 8B E3 C4 F7 FE 05 EA C9 90 00 [09:49:08]wFMCommunicate OK [09:49:08]SAM_PROTO_SignData done [09:49:08]FM_MakeSignedData done [09:49:08]CreateOFDProtocolMessage [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 11 00 00 [09:49:08]Write to MH i2c: E2 08 00 CB 2B 80 11 00 00 00 00 00 00 70 [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 17 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 17 00 CB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [09:49: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:49:08]wFMCommunicate OK [09:49:08]CreateOFDProtocolMessage done [09:49:08]OFDSenderStorePacket 104326 [09:49:08]StoreOFDPacket docnum=104326 [09:49: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 A9 A9 07 01 B3 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 F4 03 04 00 17 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 4E A2 77 53 3E 8B E3 C4 F7 FE 05 EA C9 [09:49:08]CheckFolder [09:49:08]dirname=/storage/ofd_packets [09:49:08]CheckFolder done [09:49:08]ProducePacketName [09:49:08]name=ofd_packets/00104326 [09:49:08]NVStorageSaveData ofd_packets/00104326 [09:49:08]File name is /storage/ofd_packets/00104326 [09:49:08]Write 301 bytes [09:49:08]NVStorageSaveData done [09:49:08]OFDSenderStorePacket done [09:49:08]KKMCreateOFDPacket done [09:49:08]NVStorageSaveData kkm_last_timestamp [09:49:08]File name is /storage/kkm_last_timestamp [09:49:08]Write 4 bytes [09:49:08]NVStorageSaveData done [09:49:08]ExternCall_PrintAddStr [09:49:08]wPrintStart [09:49:08]Write to MH i2c: 01 00 00 CC 2B F7 [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: 01 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: 01 07 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: 01 07 00 CC 2B 00 00 00 00 00 FF 0F 0C [09:49:08]RasterBufferAndPrint [09:49:08]line Счет N : (1)673830 [09:49:08]line ИНН: 02508201610067 [09:49:08]line Контрольно-Кассовый Чек [09:49:08]line ПРОДАЖА [09:49:08]line ТРК (МРК, ГНК) : 32 [09:49:08]line Товар: 2710124130 [09:49:08]line Аи-92-К-5 [09:49:08]line 7.540 * 66.40 [09:49:08]line = 500.66 [09:49:08]line НДС 12% НСП 1% [09:49:08]line > о реализуемом товаре [09:49:08]line ОКРУГЛЕНИЕ: -0.66 [09:49:08]line ИТОГО: 500.00 [09:49:08]line Внесено: 500.00 [09:49:08]line СДАЧА: 0.00 [09:49:08]line НСП 1% : 4.43 [09:49:08]line НДС 12% : 53.17 [09:49:08]line Наличными: 500.00 [09:49:08]line Безнал.: 0.00 [09:49:08]line Место: АЗС № 120 "Партнер Нефть" [09:49:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:49:08]line СНО: Общий режим [09:49:08]line Чек 59 22.06.2024 09:49 [09:49:08]line Смена: 356 ФФД: 1.0 [09:49:08]line ЗНМ: 0300000164 [09:49:08]line РНМ: 0000000000092785 [09:49:08]line Версия ККМ: 001 [09:49:08]line ФМ: 0000000000875093 [09:49:08]line ФД: 104326 [09:49:08]line ФПД: 80602082005822 [09:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094911&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104326&fm=80602082005822&tin=02508201610067®Number=0000000000092785&sum=50000 [09:49:08]OFD Sender: Processing packet 104326 [packets to send 17, broken 16] [09:49:08]ProducePacketName [09:49:08]name=ofd_packets/00104326 [09:49:08]OFD Sender: To server: pG, [09:49:08]CommunicateWithHost lk.salyk.kg:30040 [09:49:08]ConnectInit lk.salyk.kg [09:49:08]written 0, free lines is 4095 [09:49:08]Connected sock=10 [09:49: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 A9 A9 07 01 B3 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 F4 03 04 00 17 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 49 4E A2 77 53 3E 8B E3 C4 F7 FE 05 EA C9 [09:49: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 F6 6C 47 00 51 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 97 01 00 F4 03 04 00 96 44 76 66 B6 04 01 00 00 70 41 21 34 5E 2B DA CB [09:49:09]CommunicateWithHost err = 0 [09:49:09]CheckOFDResponse [09:49:09]1017 (14) - 77093643461234 [09:49:09]1041 (16) - 0000000000875093 [09:49:09]1040 (4) - 104326 [09:49:09]1012 (4) - 22.06.2024 03:27 [09:49:09]1206 (1) - 0 [09:49:09]OFD Sender: Remove packet 104326 [09:49:09]ProducePacketName [09:49:09]name=ofd_packets/00104326 [09:49:09]NVStorageDeleteData [09:49:09]Write to MH i2c: 01 00 00 F7 2B 22 [09:49:09]Write i2c OK [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: 01 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: 01 07 00 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: 01 07 00 F7 2B 00 00 00 00 00 D7 0C 0C [09:49:09]RasterBufferAndPrint [09:49:09]line [09:49:09]line [09:49:09]line [09:49:09]line [09:49:09]line [09:49:09]written 0, free lines is 3294 [09:49:09]MH_Cut [09:49:09]Write to MH i2c: D1 01 00 FE 2B 01 FB [09:49:09]Write i2c OK [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: D1 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: D1 01 00 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: D1 01 00 FE 2B 00 FA [09:49:09]Write to MH i2c: 01 00 00 FF 2B 2A [09:49:09]Write i2c OK [09:49:09]MH_I2C_Read... [09:49:09]OFD Sender: No OFD packet to send [09:49:10]*** Cut start [09:49:10]*** Partial cut [09:49:10]*** CUTSNS_PIN = 1 [09:49:10]*** CUTSNS_PIN = 0 [09:49:10]*** Brake cut motor [09:49:10]Read from MH i2c: 01 [09:49:10]MH_I2C_Read... [09:49:10]*** Stop cut motor [09:49:10]*** Cut end [09:49:10]Read from MH i2c: 01 07 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: 01 07 00 FF 2B 00 00 00 00 00 FF 0F 3F [09:49:10]process_action close_receipt done [09:49:10]requested_data is exist [09:49:10]produce_requested_data [09:49:10]requested_item fm.sn is exist - process it [09:49:10]wFMCommunicate request_size=4 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 11 00 00 [09:49:10]Write to MH i2c: E2 08 00 00 2C 80 11 00 00 00 00 00 00 A6 [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:10]Read from MH i2c: E2 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 17 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 17 00 00 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [09:49: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:49:10]wFMCommunicate OK [09:49:10]requested_item fd.num is exist - process it [09:49:10]SAM_PROTO_GetFieldsCounters [09:49:10]wFMCommunicate request_size=4 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 13 00 00 [09:49:10]Write to MH i2c: E2 08 00 01 2C 80 13 00 00 00 00 00 00 A9 [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:10]Read from MH i2c: E2 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 62 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 62 00 01 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 04 [09:49: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 86 97 01 00 0E 04 04 00 64 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 [09:49:10]wFMCommunicate OK [09:49:10]SAM_PROTO_GetFieldsCounters done [09:49:10]requested_item shift.num is exist - process it [09:49:10]requested_item shift.opened is exist - process it [09:49:10]req_shift_opened [09:49:10]FM_GetShiftState [09:49:10]SAM_PROTO_GetShiftState [09:49:10]wFMCommunicate request_size=4 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 13 01 00 [09:49:10]Write to MH i2c: E2 08 00 02 2C 80 13 01 00 00 00 00 00 AB [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:10]Read from MH i2c: E2 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 0E 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 0E 00 02 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9D [09:49:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:49:10]wFMCommunicate OK [09:49:10]SAM_PROTO_GetShiftState done [09:49:10]FM_GetShiftState done [09:49:10]req_shift_opened done [09:49:10]requested_item shift.open_date is exist - process it [09:49:10]req_shift_open_date [09:49:10]req_shift_open_date done [09:49:10]produce_requested_data done [09:49:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104326,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:49:10]process_action_free close_receipt [09:49:10]json_value_free [09:49:10]json_value_free done [09:49:10]process_json_proto returns [09:49:10]Send response to host [09:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104326,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:49:10]free response buf [09:49:10]execute_script done [09:49:10]execute_script returns [09:49:10]free content buf [09:49:10]Sock 9.Close socket [09:49:10]Sock 9.Thread stoped [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]accept exits with 7 [09:51:04]New connection [09:51:04]New thread 3067616612 created [09:51:04]Thread 3067473252 joined [09:51:04]Waiting for new connection... [09:51:04] Sock 7.Parse request [09:51:04]Sock 7.Check first char [09:51:04]Sock 7.First char is OK [09:51:04]request: POST /json_proto HTTP/1.0 [09:51:04]Method: POST [09:51:04]URL: /json_proto [09:51:04]Method is POST - this is cgi request [09:51:04]url: /json_proto [09:51:04]query_string will be loaded in cgi processing [09:51:04]execute_cgi json_proto POST (null) [09:51:04]execute_cgi path=json_proto method=POST [09:51:04]POST find Content-Length [09:51:04]Host: 172.17.38.133:8080 [09:51:04]Content-Length: 682 [09:51:04]Content-Type: application/json [09:51:04] [09:51:04]POST finish read [09:51:04]Found Content-Length = 682 [09:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673831", "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" ] } } [09:51:04]execute_script... [09:51: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)673831", "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" ] } } [09:51:04]POST & json_proto [09:51:04]process_json_proto [09:51:04]json parsed OK: [09:51:04]protocol is kg_v1.0 [09:51:04]action value=close_receipt [09:51:04]process_action close_receipt [09:51:04]cmd_close_receipt [09:51:04]MH_GetDate [09:51:04]Write to MH i2c: F0 00 00 03 2C 1E [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: F0 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: F0 09 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: F0 09 00 03 2C 00 8C 9E 76 66 BD 8F 7C 64 59 [09:51:04]GetLastDocTimeStamp 1719049751 [09:51:04]current date 1719049868 [09:51:04]FM_GetShiftState [09:51:04]SAM_PROTO_GetShiftState [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 13 01 00 [09:51:04]Write to MH i2c: E2 08 00 04 2C 80 13 01 00 00 00 00 00 AD [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 0E 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 0E 00 04 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9F [09:51:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:51:04]wFMCommunicate OK [09:51:04]SAM_PROTO_GetShiftState done [09:51:04]FM_GetShiftState done [09:51:04]opened in 1719016176 [09:51:04]opened+sec_in_day 1719102576 [09:51:04]quantity*price = 100060 [09:51:04]sum+1 = 100062 [09:51:04]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 СНО: Общий режим Чек 60 22.06.2024 09:51 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104327 ФПД: 265157933391614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104327&fm=265157933391614&tin=02508201610067®Number=0000000000092785&sum=100000 [09:51:05]StoreToDocumentArchive [09:51:05]shift 356 fd 104327 [09:51:05]save to /storage/0356/doc_00104327 [09:51:05]save last doc name /storage/0356/doc_00104327 to /storage/kkm_last_doc_name [09:51:05]save OK [09:51:05]Clear old archive folders... [09:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:05]tlvbuf is 0065AC40 [09:51:05]SAM_PROTO_ClearQueue [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 09 00 00 [09:51:05]Write to MH i2c: E2 08 00 11 2C 80 09 00 00 00 00 00 00 AF [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 11 2C 00 90 00 B1 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]SAM_PROTO_ClearQueue done [09:51:05]KKMCreateOFDPacket [09:51:05]OFDProtocolAddRootSTLVToBuf [09:51:05]FM_MakeSignedData [09:51:05]FM_MakeSignedData [09:51:05]SAM_PROTO_SignData [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 0D 01 02 [09:51:05]Write to MH i2c: E2 08 00 12 2C 80 0D 01 02 00 00 00 00 B7 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 12 2C 00 90 00 B2 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]wFMCommunicate request_size=255 [09:51:05]MH_SAM_APDU [09:51: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 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 3C 00 00 00 F4 03 04 00 8C 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F1 [09:51:05]Write to MH i2c: E2 02 01 13 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 8C 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F1 00 00 69 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]wFMCommunicate request_size=10 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 0D 02 02 05 28 E4 6D DE FE [09:51:05]Write to MH i2c: E2 0D 00 14 2C 80 0D 02 02 05 00 28 E4 6D DE FE 00 00 19 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 0D 03 02 [09:51:05]Write to MH i2c: E2 08 00 15 2C 80 0D 03 02 00 00 00 00 BC [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 0B 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 0B 00 15 2C 00 0B EF BC 32 0E 33 A0 32 90 00 B8 [09:51:05]RAPDU: 0B EF BC 32 0E 33 A0 32 90 00 [09:51:05]wFMCommunicate OK [09:51:05]SAM_PROTO_SignData done [09:51:05]FM_MakeSignedData done [09:51:05]CreateOFDProtocolMessage [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 11 00 00 [09:51:05]Write to MH i2c: E2 08 00 16 2C 80 11 00 00 00 00 00 00 BC [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 17 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 17 00 16 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [09: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 [09:51:05]wFMCommunicate OK [09:51:05]CreateOFDProtocolMessage done [09:51:05]OFDSenderStorePacket 104327 [09:51:05]StoreOFDPacket docnum=104327 [09: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 0F 01 00 00 27 69 07 01 B6 E1 5A 03 01 00 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 3C 00 00 00 F4 03 04 00 8C 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F1 28 E4 6D DE FE 0B EF BC 32 0E 33 A0 32 [09:51:05]CheckFolder [09:51:05]dirname=/storage/ofd_packets [09:51:05]CheckFolder done [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00104327 [09:51:05]NVStorageSaveData ofd_packets/00104327 [09:51:05]File name is /storage/ofd_packets/00104327 [09:51:05]Write 301 bytes [09:51:05]NVStorageSaveData done [09:51:05]OFDSenderStorePacket done [09:51:05]KKMCreateOFDPacket done [09:51:05]NVStorageSaveData kkm_last_timestamp [09:51:05]File name is /storage/kkm_last_timestamp [09:51:05]Write 4 bytes [09:51:05]NVStorageSaveData done [09:51:05]ExternCall_PrintAddStr [09:51:05]wPrintStart [09:51:05]Write to MH i2c: 01 00 00 17 2C 43 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 17 2C 00 00 00 00 00 FF 0F 58 [09:51:05]RasterBufferAndPrint [09:51:05]line Счет N : (1)673831 [09:51:05]line ИНН: 02508201610067 [09:51:05]line Контрольно-Кассовый Чек [09:51:05]line ПРОДАЖА [09:51:05]line ТРК (МРК, ГНК) : 41 [09:51:05]line Товар: 2710124500 [09:51:05]line Аи-95-К-5 [09:51:05]line 13.540 * 73.90 [09:51:05]line = 1000.61 [09:51:05]line НДС 12% НСП 1% [09:51:05]line > о реализуемом товаре [09:51:05]line ОКРУГЛЕНИЕ: -0.61 [09:51:05]line ИТОГО: 1000.00 [09:51:05]line Внесено: 1000.00 [09:51:05]line СДАЧА: 0.00 [09:51:05]line НСП 1% : 8.85 [09:51:05]line НДС 12% : 106.26 [09:51:05]line Наличными: 1000.00 [09:51:05]line Безнал.: 0.00 [09:51:05]line Место: АЗС № 120 "Партнер Нефть" [09:51:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:51:05]line СНО: Общий режим [09:51:05]line Чек 60 22.06.2024 09:51 [09:51:05]line Смена: 356 ФФД: 1.0 [09:51:05]line ЗНМ: 0300000164 [09:51:05]line РНМ: 0000000000092785 [09:51:05]line Версия ККМ: 001 [09:51:05]line ФМ: 0000000000875093 [09:51:05]line ФД: 104327 [09:51:05]line ФПД: 265157933391614 [09:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104327&fm=265157933391614&tin=02508201610067®Number=0000000000092785&sum=100000 [09:51:05]written 0, free lines is 4095 [09:51:05]OFD Sender: Processing packet 104327 [packets to send 17, broken 16] [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00104327 [09:51:05]OFD Sender: To server: pG, [09:51:05]CommunicateWithHost lk.salyk.kg:30040 [09:51:05]ConnectInit lk.salyk.kg [09:51:06]Connected sock=11 [09:51: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 27 69 07 01 B6 E1 5A 03 01 00 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 3C 00 00 00 F4 03 04 00 8C 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F1 28 E4 6D DE FE 0B EF BC 32 0E 33 A0 32 [09:51:06]Write to MH i2c: 01 00 00 42 2C 6E [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 07 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 07 00 42 2C 00 00 00 00 00 E4 0C 65 [09:51:06]RasterBufferAndPrint [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]written 0, free lines is 3306 [09:51:06]MH_Cut [09:51:06]Write to MH i2c: D1 01 00 49 2C 01 47 [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 01 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 01 00 49 2C 00 46 [09:51:06]Write to MH i2c: 01 00 00 4A 2C 76 [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51: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 19 C7 47 00 5D 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 87 97 01 00 F4 03 04 00 0B 45 76 66 B6 04 01 00 00 0A F3 7B DD B8 B8 DF E8 [09:51:06]CommunicateWithHost err = 0 [09:51:06]CheckOFDResponse [09:51:06]1017 (14) - 77093643461234 [09:51:06]1041 (16) - 0000000000875093 [09:51:06]1040 (4) - 104327 [09:51:06]1012 (4) - 22.06.2024 03:29 [09:51:06]1206 (1) - 0 [09:51:06]OFD Sender: Remove packet 104327 [09:51:06]ProducePacketName [09:51:06]name=ofd_packets/00104327 [09:51:06]NVStorageDeleteData [09:51:06]OFD Sender: No OFD packet to send [09:51:06]*** Cut start [09:51:06]*** Partial cut [09:51:06]*** CUTSNS_PIN = 1 [09:51:07]*** CUTSNS_PIN = 0 [09:51:07]*** Brake cut motor [09:51:07]Read from MH i2c: 01 [09:51:07]MH_I2C_Read... [09:51:07]*** Stop cut motor [09:51:07]*** Cut end [09:51:07]Read from MH i2c: 01 07 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 FF 0F 8B [09:51:07]process_action close_receipt done [09:51:07]requested_data is exist [09:51:07]produce_requested_data [09:51:07]requested_item fm.sn is exist - process it [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 11 00 00 [09:51:07]Write to MH i2c: E2 08 00 4B 2C 80 11 00 00 00 00 00 00 F1 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 17 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 17 00 4B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [09: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 [09:51:07]wFMCommunicate OK [09:51:07]requested_item fd.num is exist - process it [09:51:07]SAM_PROTO_GetFieldsCounters [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 13 00 00 [09:51:07]Write to MH i2c: E2 08 00 4C 2C 80 13 00 00 00 00 00 00 F4 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 4C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 53 [09: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 87 97 01 00 0E 04 04 00 64 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 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetFieldsCounters done [09:51:07]requested_item shift.num is exist - process it [09:51:07]requested_item shift.opened is exist - process it [09:51:07]req_shift_opened [09:51:07]FM_GetShiftState [09:51:07]SAM_PROTO_GetShiftState [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 13 01 00 [09:51:07]Write to MH i2c: E2 08 00 4D 2C 80 13 01 00 00 00 00 00 F6 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 4D 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E8 [09:51:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetShiftState done [09:51:07]FM_GetShiftState done [09:51:07]req_shift_opened done [09:51:07]requested_item shift.open_date is exist - process it [09:51:07]req_shift_open_date [09:51:07]req_shift_open_date done [09:51:07]produce_requested_data done [09:51:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104327,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:51:07]process_action_free close_receipt [09:51:07]json_value_free [09:51:07]json_value_free done [09:51:07]process_json_proto returns [09:51:07]Send response to host [09:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104327,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:51:07]free response buf [09:51:07]execute_script done [09:51:07]execute_script returns [09:51:07]free content buf [09:51:07]Sock 7.Close socket [09:51:07]Sock 7.Thread stoped [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]accept exits with 9 [09:52:51]New connection [09:52:51]New thread 3067473252 created [09:52:51]Thread 3067616612 joined [09:52:51]Waiting for new connection... [09:52:51] Sock 9.Parse request [09:52:51]Sock 9.Check first char [09:52:51]Sock 9.First char is OK [09:52:51]request: POST /json_proto HTTP/1.0 [09:52:51]Method: POST [09:52:51]URL: /json_proto [09:52:51]Method is POST - this is cgi request [09:52:51]url: /json_proto [09:52:51]query_string will be loaded in cgi processing [09:52:51]execute_cgi json_proto POST (null) [09:52:51]execute_cgi path=json_proto method=POST [09:52:51]POST find Content-Length [09:52:51]Host: 172.17.38.133:8080 [09:52:51]Content-Length: 677 [09:52:51]Content-Type: application/json [09:52:51] [09:52:51]POST finish read [09:52:51]Found Content-Length = 677 [09:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673833", "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" ] } } [09:52:51]execute_script... [09:52: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)673833", "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" ] } } [09:52:51]POST & json_proto [09:52:51]process_json_proto [09:52:51]json parsed OK: [09:52:51]protocol is kg_v1.0 [09:52:51]action value=close_receipt [09:52:51]process_action close_receipt [09:52:51]cmd_close_receipt [09:52:51]MH_GetDate [09:52:51]Write to MH i2c: F0 00 00 4E 2C 69 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: F0 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: F0 09 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: F0 09 00 4E 2C 00 F8 9E 76 66 BD 8F 7C 64 10 [09:52:51]GetLastDocTimeStamp 1719049868 [09:52:51]current date 1719049976 [09:52:51]FM_GetShiftState [09:52:51]SAM_PROTO_GetShiftState [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 01 00 [09:52:51]Write to MH i2c: E2 08 00 4F 2C 80 13 01 00 00 00 00 00 F8 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 4F 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 EA [09:52:51]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetShiftState done [09:52:51]FM_GetShiftState done [09:52:51]opened in 1719016176 [09:52:51]opened+sec_in_day 1719102576 [09:52:51]quantity*price = 60025 [09:52:51]sum+1 = 60027 [09:52:51]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 СНО: Общий режим Чек 61 22.06.2024 09:52 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104328 ФПД: 99538893465591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095256&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104328&fm=99538893465591&tin=02508201610067®Number=0000000000092785&sum=60000 [09:52:52]StoreToDocumentArchive [09:52:52]shift 356 fd 104328 [09:52:52]save to /storage/0356/doc_00104328 [09:52:52]save last doc name /storage/0356/doc_00104328 to /storage/kkm_last_doc_name [09:52:52]save OK [09:52:52]Clear old archive folders... [09:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:52]tlvbuf is 006C8880 [09:52:52]SAM_PROTO_ClearQueue [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 09 00 00 [09:52:52]Write to MH i2c: E2 08 00 5C 2C 80 09 00 00 00 00 00 00 FA [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:52]Read from MH i2c: E2 03 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [09:52:52]RAPDU: 90 00 [09:52:52]wFMCommunicate OK [09:52:52]SAM_PROTO_ClearQueue done [09:52:52]KKMCreateOFDPacket [09:52:52]OFDProtocolAddRootSTLVToBuf [09:52:52]FM_MakeSignedData [09:52:52]FM_MakeSignedData [09:52:52]SAM_PROTO_SignData [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 0D 01 02 [09:52:52]Write to MH i2c: E2 08 00 5D 2C 80 0D 01 02 00 00 00 00 02 [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=255 [09:52:53]MH_SAM_APDU [09:52: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 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 3D 00 00 00 F4 03 04 00 F8 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5A [09:52:53]Write to MH i2c: E2 02 01 5E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 F8 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5A 00 00 27 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=10 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 02 02 05 87 B4 62 E7 F7 [09:52:53]Write to MH i2c: E2 0D 00 5F 2C 80 0D 02 02 05 00 87 B4 62 E7 F7 00 00 8A [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 03 02 [09:52:53]Write to MH i2c: E2 08 00 60 2C 80 0D 03 02 00 00 00 00 07 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0B 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0B 00 60 2C 00 51 AA 0D FD 79 91 27 A7 90 00 E5 [09:52:53]RAPDU: 51 AA 0D FD 79 91 27 A7 90 00 [09:52:53]wFMCommunicate OK [09:52:53]SAM_PROTO_SignData done [09:52:53]FM_MakeSignedData done [09:52:53]CreateOFDProtocolMessage [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 11 00 00 [09:52:53]Write to MH i2c: E2 08 00 61 2C 80 11 00 00 00 00 00 00 07 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 17 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 17 00 61 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [09:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:52:53]wFMCommunicate OK [09:52:53]CreateOFDProtocolMessage done [09:52:53]OFDSenderStorePacket 104328 [09:52:53]StoreOFDPacket docnum=104328 [09:52: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 1C EC 07 01 3F 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 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 3D 00 00 00 F4 03 04 00 F8 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5A 87 B4 62 E7 F7 51 AA 0D FD 79 91 27 A7 [09:52:53]CheckFolder [09:52:53]dirname=/storage/ofd_packets [09:52:53]CheckFolder done [09:52:53]ProducePacketName [09:52:53]name=ofd_packets/00104328 [09:52:53]NVStorageSaveData ofd_packets/00104328 [09:52:53]File name is /storage/ofd_packets/00104328 [09:52:53]Write 301 bytes [09:52:53]NVStorageSaveData done [09:52:53]OFDSenderStorePacket done [09:52:53]KKMCreateOFDPacket done [09:52:53]NVStorageSaveData kkm_last_timestamp [09:52:53]File name is /storage/kkm_last_timestamp [09:52:53]Write 4 bytes [09:52:53]NVStorageSaveData done [09:52:53]ExternCall_PrintAddStr [09:52:53]wPrintStart [09:52:53]Write to MH i2c: 01 00 00 62 2C 8E [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 07 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 07 00 62 2C 00 00 00 00 00 FF 0F A3 [09:52:53]RasterBufferAndPrint [09:52:53]line Счет N : (1)673833 [09:52:53]line ИНН: 02508201610067 [09:52:53]line Контрольно-Кассовый Чек [09:52:53]line ПРОДАЖА [09:52:53]line ТРК (МРК, ГНК) : 42 [09:52:53]line Товар: 2710124130 [09:52:53]line Аи-92-К-5 [09:52:53]line 9.040 * 66.40 [09:52:53]line = 600.26 [09:52:53]line НДС 12% НСП 1% [09:52:53]line > о реализуемом товаре [09:52:53]line ОКРУГЛЕНИЕ: -0.26 [09:52:53]line ИТОГО: 600.00 [09:52:53]line Внесено: 600.00 [09:52:53]line СДАЧА: 0.00 [09:52:53]line НСП 1% : 5.31 [09:52:53]line НДС 12% : 63.74 [09:52:53]line Наличными: 600.00 [09:52:53]line Безнал.: 0.00 [09:52:53]line Место: АЗС № 120 "Партнер Нефть" [09:52:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:52:53]line СНО: Общий режим [09:52:53]line Чек 61 22.06.2024 09:52 [09:52:53]line Смена: 356 ФФД: 1.0 [09:52:53]line ЗНМ: 0300000164 [09:52:53]line РНМ: 0000000000092785 [09:52:53]line Версия ККМ: 001 [09:52:53]line ФМ: 0000000000875093 [09:52:53]line ФД: 104328 [09:52:53]line ФПД: 99538893465591 [09:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095256&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104328&fm=99538893465591&tin=02508201610067®Number=0000000000092785&sum=60000 [09:52:53]written 0, free lines is 4095 [09:52:53]OFD Sender: Processing packet 104328 [packets to send 17, broken 16] [09:52:53]ProducePacketName [09:52:53]name=ofd_packets/00104328 [09:52:53]OFD Sender: To server: pG, [09:52:53]CommunicateWithHost lk.salyk.kg:30040 [09:52:53]ConnectInit lk.salyk.kg [09:52:53]Connected sock=10 [09:52: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 1C EC 07 01 3F 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 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 3D 00 00 00 F4 03 04 00 F8 9E 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5A 87 B4 62 E7 F7 51 AA 0D FD 79 91 27 A7 [09:52: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 5C 8B 47 00 4B CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 97 01 00 F4 03 04 00 77 45 76 66 B6 04 01 00 00 A8 93 8B 76 78 51 8F 81 [09:52:54]CommunicateWithHost err = 0 [09:52:54]CheckOFDResponse [09:52:54]1017 (14) - 77093643461234 [09:52:54]1041 (16) - 0000000000875093 [09:52:54]1040 (4) - 104328 [09:52:54]1012 (4) - 22.06.2024 03:31 [09:52:54]1206 (1) - 0 [09:52:54]OFD Sender: Remove packet 104328 [09:52:54]ProducePacketName [09:52:54]name=ofd_packets/00104328 [09:52:54]NVStorageDeleteData [09:52:54]Write to MH i2c: 01 00 00 8D 2C B9 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 8D 2C 00 00 00 00 00 EB 0C B7 [09:52:54]RasterBufferAndPrint [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]written 0, free lines is 3313 [09:52:54]MH_Cut [09:52:54]Write to MH i2c: D1 01 00 94 2C 01 92 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 01 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 01 00 94 2C 00 91 [09:52:54]Write to MH i2c: 01 00 00 95 2C C1 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]OFD Sender: No OFD packet to send [09:52:54]*** Cut start [09:52:54]*** Partial cut [09:52:54]*** CUTSNS_PIN = 1 [09:52:55]*** CUTSNS_PIN = 0 [09:52:55]*** Brake cut motor [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]*** Stop cut motor [09:52:55]*** Cut end [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 FF 0F D6 [09:52:55]process_action close_receipt done [09:52:55]requested_data is exist [09:52:55]produce_requested_data [09:52:55]requested_item fm.sn is exist - process it [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 11 00 00 [09:52:55]Write to MH i2c: E2 08 00 96 2C 80 11 00 00 00 00 00 00 3C [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 96 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [09: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 [09:52:55]wFMCommunicate OK [09:52:55]requested_item fd.num is exist - process it [09:52:55]SAM_PROTO_GetFieldsCounters [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 13 00 00 [09:52:55]Write to MH i2c: E2 08 00 97 2C 80 13 00 00 00 00 00 00 3F [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 62 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 62 00 97 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A2 [09: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 88 97 01 00 0E 04 04 00 64 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 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_GetFieldsCounters done [09:52:55]requested_item shift.num is exist - process it [09:52:55]requested_item shift.opened is exist - process it [09:52:55]req_shift_opened [09:52:55]FM_GetShiftState [09:52:55]SAM_PROTO_GetShiftState [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 13 01 00 [09:52:55]Write to MH i2c: E2 08 00 98 2C 80 13 01 00 00 00 00 00 41 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 98 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 33 [09:52:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_GetShiftState done [09:52:55]FM_GetShiftState done [09:52:55]req_shift_opened done [09:52:55]requested_item shift.open_date is exist - process it [09:52:55]req_shift_open_date [09:52:55]req_shift_open_date done [09:52:55]produce_requested_data done [09:52:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104328,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:52:55]process_action_free close_receipt [09:52:55]json_value_free [09:52:55]json_value_free done [09:52:55]process_json_proto returns [09:52:55]Send response to host [09:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104328,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:52:55]free response buf [09:52:55]execute_script done [09:52:55]execute_script returns [09:52:55]free content buf [09:52:55]Sock 9.Close socket [09:52:55]Sock 9.Thread stoped [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]accept exits with 7 [09:53:39]New connection [09:53:39]New thread 3067616612 created [09:53:39]Thread 3067473252 joined [09:53:39]Waiting for new connection... [09:53:39] Sock 7.Parse request [09:53:39]Sock 7.Check first char [09:53:39]Sock 7.First char is OK [09:53:39]request: POST /json_proto HTTP/1.0 [09:53:39]Method: POST [09:53:39]URL: /json_proto [09:53:39]Method is POST - this is cgi request [09:53:39]url: /json_proto [09:53:39]query_string will be loaded in cgi processing [09:53:39]execute_cgi json_proto POST (null) [09:53:39]execute_cgi path=json_proto method=POST [09:53:39]POST find Content-Length [09:53:39]Host: 172.17.38.133:8080 [09:53:39]Content-Length: 682 [09:53:39]Content-Type: application/json [09:53:39] [09:53:39]POST finish read [09:53:39]Found Content-Length = 682 [09:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673832", "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" ] } } [09:53:39]execute_script... [09:53: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)673832", "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" ] } } [09:53:39]POST & json_proto [09:53:39]process_json_proto [09:53:39]json parsed OK: [09:53:39]protocol is kg_v1.0 [09:53:39]action value=close_receipt [09:53:39]process_action close_receipt [09:53:39]cmd_close_receipt [09:53:39]MH_GetDate [09:53:39]Write to MH i2c: F0 00 00 99 2C B4 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 09 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 09 00 99 2C 00 27 9F 76 66 BD 8F 7C 64 8B [09:53:39]GetLastDocTimeStamp 1719049976 [09:53:39]current date 1719050023 [09:53:39]FM_GetShiftState [09:53:39]SAM_PROTO_GetShiftState [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 13 01 00 [09:53:39]Write to MH i2c: E2 08 00 9A 2C 80 13 01 00 00 00 00 00 43 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0E 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0E 00 9A 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 35 [09:53:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_GetShiftState done [09:53:39]FM_GetShiftState done [09:53:39]opened in 1719016176 [09:53:39]opened+sec_in_day 1719102576 [09:53:39]quantity*price = 250003 [09:53:39]sum+1 = 250005 [09:53:39]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 СНО: Общий режим Чек 62 22.06.2024 09:53 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104329 ФПД: 73587096288603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104329&fm=73587096288603&tin=02508201610067®Number=0000000000092785&sum=250000 [09:53:40]StoreToDocumentArchive [09:53:40]shift 356 fd 104329 [09:53:40]save to /storage/0356/doc_00104329 [09:53:40]save last doc name /storage/0356/doc_00104329 to /storage/kkm_last_doc_name [09:53:40]save OK [09:53:40]Clear old archive folders... [09:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:40]tlvbuf is 006C8330 [09:53:40]SAM_PROTO_ClearQueue [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 09 00 00 [09:53:40]Write to MH i2c: E2 08 00 A7 2C 80 09 00 00 00 00 00 00 45 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 A7 2C 00 90 00 47 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]SAM_PROTO_ClearQueue done [09:53:40]KKMCreateOFDPacket [09:53:40]OFDProtocolAddRootSTLVToBuf [09:53:40]FM_MakeSignedData [09:53:40]FM_MakeSignedData [09:53:40]SAM_PROTO_SignData [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 01 02 [09:53:40]Write to MH i2c: E2 08 00 A8 2C 80 0D 01 02 00 00 00 00 4D [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 A8 2C 00 90 00 48 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]wFMCommunicate request_size=255 [09:53:40]MH_SAM_APDU [09:53: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 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 3E 00 00 00 F4 03 04 00 27 9F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 42 [09:53:40]Write to MH i2c: E2 02 01 A9 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 00 00 00 F4 03 04 00 27 9F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 42 00 00 A2 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 A9 2C 00 90 00 49 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]wFMCommunicate request_size=10 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 02 02 05 ED 54 BB FD 5B [09:53:40]Write to MH i2c: E2 0D 00 AA 2C 80 0D 02 02 05 00 ED 54 BB FD 5B 00 00 AE [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [09:53:41]RAPDU: 90 00 [09:53:41]wFMCommunicate OK [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 0D 03 02 [09:53:41]Write to MH i2c: E2 08 00 AB 2C 80 0D 03 02 00 00 00 00 52 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 AB 2C 00 51 4D 64 BB 75 FA AE CD 90 00 FA [09:53:41]RAPDU: 51 4D 64 BB 75 FA AE CD 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_SignData done [09:53:41]FM_MakeSignedData done [09:53:41]CreateOFDProtocolMessage [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 11 00 00 [09:53:41]Write to MH i2c: E2 08 00 AC 2C 80 11 00 00 00 00 00 00 52 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 AC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [09:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:53:41]wFMCommunicate OK [09:53:41]CreateOFDProtocolMessage done [09:53:41]OFDSenderStorePacket 104329 [09:53:41]StoreOFDPacket docnum=104329 [09:53: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 25 91 07 01 46 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 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 3E 00 00 00 F4 03 04 00 27 9F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 42 ED 54 BB FD 5B 51 4D 64 BB 75 FA AE CD [09:53:41]CheckFolder [09:53:41]dirname=/storage/ofd_packets [09:53:41]CheckFolder done [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00104329 [09:53:41]NVStorageSaveData ofd_packets/00104329 [09:53:41]File name is /storage/ofd_packets/00104329 [09:53:41]Write 301 bytes [09:53:41]NVStorageSaveData done [09:53:41]OFDSenderStorePacket done [09:53:41]KKMCreateOFDPacket done [09:53:41]NVStorageSaveData kkm_last_timestamp [09:53:41]File name is /storage/kkm_last_timestamp [09:53:41]Write 4 bytes [09:53:41]NVStorageSaveData done [09:53:41]ExternCall_PrintAddStr [09:53:41]wPrintStart [09:53:41]Write to MH i2c: 01 00 00 AD 2C D9 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 AD 2C 00 00 00 00 00 FF 0F EE [09:53:41]RasterBufferAndPrint [09:53:41]line Счет N : (1)673832 [09:53:41]line ИНН: 02508201610067 [09:53:41]line Контрольно-Кассовый Чек [09:53:41]line ПРОДАЖА [09:53:41]line ТРК (МРК, ГНК) : 31 [09:53:41]line Товар: 2710124500 [09:53:41]line Аи-95-К-5 [09:53:41]line 33.830 * 73.90 [09:53:41]line = 2500.04 [09:53:41]line НДС 12% НСП 1% [09:53:41]line > о реализуемом товаре [09:53:41]line ОКРУГЛЕНИЕ: -0.04 [09:53:41]line ИТОГО: 2500.00 [09:53:41]line Внесено: 2500.00 [09:53:41]line СДАЧА: 0.00 [09:53:41]line НСП 1% : 22.12 [09:53:41]line НДС 12% : 265.49 [09:53:41]line Наличными: 2500.00 [09:53:41]line Безнал.: 0.00 [09:53:41]line Место: АЗС № 120 "Партнер Нефть" [09:53:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:53:41]line СНО: Общий режим [09:53:41]line Чек 62 22.06.2024 09:53 [09:53:41]line Смена: 356 ФФД: 1.0 [09:53:41]line ЗНМ: 0300000164 [09:53:41]line РНМ: 0000000000092785 [09:53:41]line Версия ККМ: 001 [09:53:41]line ФМ: 0000000000875093 [09:53:41]line ФД: 104329 [09:53:41]line ФПД: 73587096288603 [09:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104329&fm=73587096288603&tin=02508201610067®Number=0000000000092785&sum=250000 [09:53:41]OFD Sender: Processing packet 104329 [packets to send 17, broken 16] [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00104329 [09:53:41]OFD Sender: To server: pG, [09:53:41]CommunicateWithHost lk.salyk.kg:30040 [09:53:41]ConnectInit lk.salyk.kg [09:53:41]written 0, free lines is 4095 [09:53:41]Connected sock=11 [09:53: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 25 91 07 01 46 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 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 3E 00 00 00 F4 03 04 00 27 9F 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 42 ED 54 BB FD 5B 51 4D 64 BB 75 FA AE CD [09:53:41]Write to MH i2c: 01 00 00 D8 2C 04 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 D8 2C 00 00 00 00 00 E2 0C F9 [09:53:41]RasterBufferAndPrint [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]written 0, free lines is 3304 [09:53:41]MH_Cut [09:53:41]Write to MH i2c: D1 01 00 DF 2C 01 DD [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 01 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 01 00 DF 2C 00 DC [09:53:41]Write to MH i2c: 01 00 00 E0 2C 0C [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53: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 A5 28 47 00 C9 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 89 97 01 00 F4 03 04 00 A7 45 76 66 B6 04 01 00 00 03 2D 44 6F AB 13 77 AD [09:53:42]CommunicateWithHost err = 0 [09:53:42]CheckOFDResponse [09:53:42]1017 (14) - 77093643461234 [09:53:42]1041 (16) - 0000000000875093 [09:53:42]1040 (4) - 104329 [09:53:42]1012 (4) - 22.06.2024 03:31 [09:53:42]1206 (1) - 0 [09:53:42]OFD Sender: Remove packet 104329 [09:53:42]ProducePacketName [09:53:42]name=ofd_packets/00104329 [09:53:42]NVStorageDeleteData [09:53:42]OFD Sender: No OFD packet to send [09:53:42]*** Cut start [09:53:42]*** Partial cut [09:53:42]*** CUTSNS_PIN = 1 [09:53:42]*** CUTSNS_PIN = 0 [09:53:42]*** Brake cut motor [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]*** Stop cut motor [09:53:43]*** Cut end [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 E0 2C 00 00 00 00 00 FF 0F 21 [09:53:43]process_action close_receipt done [09:53:43]requested_data is exist [09:53:43]produce_requested_data [09:53:43]requested_item fm.sn is exist - process it [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 E1 2C 80 11 00 00 00 00 00 00 87 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 E1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:53:43]wFMCommunicate OK [09:53:43]requested_item fd.num is exist - process it [09:53:43]SAM_PROTO_GetFieldsCounters [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 00 00 [09:53:43]Write to MH i2c: E2 08 00 E2 2C 80 13 00 00 00 00 00 00 8A [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 E2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F1 [09:53: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 89 97 01 00 0E 04 04 00 64 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 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetFieldsCounters done [09:53:43]requested_item shift.num is exist - process it [09:53:43]requested_item shift.opened is exist - process it [09:53:43]req_shift_opened [09:53:43]FM_GetShiftState [09:53:43]SAM_PROTO_GetShiftState [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 01 00 [09:53:43]Write to MH i2c: E2 08 00 E3 2C 80 13 01 00 00 00 00 00 8C [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 E3 2C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7E [09:53:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetShiftState done [09:53:43]FM_GetShiftState done [09:53:43]req_shift_opened done [09:53:43]requested_item shift.open_date is exist - process it [09:53:43]req_shift_open_date [09:53:43]req_shift_open_date done [09:53:43]produce_requested_data done [09:53:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:53:43]process_action_free close_receipt [09:53:43]json_value_free [09:53:43]json_value_free done [09:53:43]process_json_proto returns [09:53:43]Send response to host [09:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:53:43]free response buf [09:53:43]execute_script done [09:53:43]execute_script returns [09:53:43]free content buf [09:53:43]Sock 7.Close socket [09:53:43]Sock 7.Thread stoped [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:15]accept exits with 9 [09:57:15]New connection [09:57:15]New thread 3067473252 created [09:57:15]Thread 3067616612 joined [09:57:15]Waiting for new connection... [09:57:15] Sock 9.Parse request [09:57:15]Sock 9.Check first char [09:57:15]Sock 9.First char is OK [09:57:15]request: POST /json_proto HTTP/1.0 [09:57:15]Method: POST [09:57:15]URL: /json_proto [09:57:15]Method is POST - this is cgi request [09:57:15]url: /json_proto [09:57:15]query_string will be loaded in cgi processing [09:57:15]execute_cgi json_proto POST (null) [09:57:15]execute_cgi path=json_proto method=POST [09:57:15]POST find Content-Length [09:57:15]Host: 172.17.38.133:8080 [09:57:15]Content-Length: 1169 [09:57:15]Content-Type: application/json [09:57:15] [09:57:15]POST finish read [09:57:15]Found Content-Length = 1169 [09:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673835\u000A22.06.2024 09: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 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\u000A30077012\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:15]execute_script... [09:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673835\u000A22.06.2024 09: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 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\u000A30077012\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:15]POST & json_proto [09:57:15]process_json_proto [09:57:15]json parsed OK: [09:57:15]protocol is kg_v1.0 [09:57:15]action value=print_text [09:57:15]process_action print_text [09:57:15]cmd_print_text [09:57:15]ExternCall_PrintAddStr [09:57:15]wPrintStart [09:57:15]Write to MH i2c: 01 00 00 E4 2C 10 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 07 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 FF 0F 25 [09:57:15]RasterBufferAndPrint [09:57:15]line *****ТОВАРНЫЙ ЧЕК***** [09:57:15]line АЗС 120 [09:57:15]line Партнер нефть [09:57:15]line 02508201610067 [09:57:15]line Кассир : Байбугуева Г. [09:57:15]line Счет N : (1)673835 [09:57:15]line 22.06.2024 09:34 [09:57:15]line ПРОДАЖА [09:57:15]line ТРК (МРК, ГНК): 32 [09:57:15]line Вид ГСМ : 2710124130 [09:57:15]line Аи-92-К-5 [09:57:15]line 30.000 x 66.40 [09:57:15]line ИТОГ: 1992.00 [09:57:15]line Тип оплаты: Талоны: ТК ГПНА Online [09:57:15]line 30077012 [09:57:15]line ______________________ [09:57:15]line (подпись) [09:57:15]written 0, free lines is 4095 [09:57:15]Write to MH i2c: 01 00 00 F8 2C 24 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 07 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 07 00 F8 2C 00 00 00 00 00 13 0E 4C [09:57:15]RasterBufferAndPrint [09:57:15]line [09:57:15]line [09:57:15]line [09:57:15]line [09:57:15]line [09:57:15]written 0, free lines is 3605 [09:57:15]MH_Cut [09:57:15]Write to MH i2c: D1 01 00 FF 2C 01 FD [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: D1 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: D1 01 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: D1 01 00 FF 2C 00 FC [09:57:15]Write to MH i2c: 01 00 00 00 2D 2D [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:16]*** Cut start [09:57:16]*** Partial cut [09:57:16]*** CUTSNS_PIN = 1 [09:57:16]*** CUTSNS_PIN = 0 [09:57:16]*** Brake cut motor [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]*** Stop cut motor [09:57:17]*** Cut end [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 00 2D 00 00 00 00 00 FF 0F 42 [09:57:17]process_action print_text done [09:57:17]requested_data is exist [09:57:17]produce_requested_data [09:57:17]requested_item fm.sn is exist - process it [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 11 00 00 [09:57:17]Write to MH i2c: E2 08 00 01 2D 80 11 00 00 00 00 00 00 A8 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 17 00 01 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [09:57:17]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:17]wFMCommunicate OK [09:57:17]requested_item fd.num is exist - process it [09:57:17]SAM_PROTO_GetFieldsCounters [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 13 00 00 [09:57:17]Write to MH i2c: E2 08 00 02 2D 80 13 00 00 00 00 00 00 AB [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 62 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 62 00 02 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 12 [09:57: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 89 97 01 00 0E 04 04 00 64 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 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_GetFieldsCounters done [09:57:17]requested_item shift.num is exist - process it [09:57:17]requested_item shift.opened is exist - process it [09:57:17]req_shift_opened [09:57:17]FM_GetShiftState [09:57:17]SAM_PROTO_GetShiftState [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 13 01 00 [09:57:17]Write to MH i2c: E2 08 00 03 2D 80 13 01 00 00 00 00 00 AD [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0E 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0E 00 03 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9F [09:57:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_GetShiftState done [09:57:17]FM_GetShiftState done [09:57:17]req_shift_opened done [09:57:17]requested_item shift.open_date is exist - process it [09:57:17]req_shift_open_date [09:57:17]req_shift_open_date done [09:57:17]produce_requested_data done [09:57:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:57:17]process_action_free print_text [09:57:17]json_value_free [09:57:17]json_value_free done [09:57:17]process_json_proto returns [09:57:17]Send response to host [09:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:57:17]free response buf [09:57:17]execute_script done [09:57:17]execute_script returns [09:57:17]free content buf [09:57:17]Sock 9.Close socket [09:57:17]Sock 9.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:53]accept exits with 7 [09:57:53]New connection [09:57:53]New thread 3067616612 created [09:57:53]Thread 3067473252 joined [09:57:53]Waiting for new connection... [09:57:53] Sock 7.Parse request [09:57:53]Sock 7.Check first char [09:57:53]Sock 7.First char is OK [09:57:53]request: POST /json_proto HTTP/1.0 [09:57:53]Method: POST [09:57:53]URL: /json_proto [09:57:53]Method is POST - this is cgi request [09:57:53]url: /json_proto [09:57:53]query_string will be loaded in cgi processing [09:57:53]execute_cgi json_proto POST (null) [09:57:53]execute_cgi path=json_proto method=POST [09:57:53]POST find Content-Length [09:57:53]Host: 172.17.38.133:8080 [09:57:53]Content-Length: 1197 [09:57:53]Content-Type: application/json [09:57:53] [09:57:53]POST finish read [09:57:53]Found Content-Length = 1197 [09:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673836\u000A22.06.2024 09: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 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\u000A3930749\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:53]execute_script... [09:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673836\u000A22.06.2024 09: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 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\u000A3930749\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:53]POST & json_proto [09:57:53]process_json_proto [09:57:53]json parsed OK: [09:57:53]protocol is kg_v1.0 [09:57:53]action value=print_text [09:57:53]process_action print_text [09:57:53]cmd_print_text [09:57:53]ExternCall_PrintAddStr [09:57:53]wPrintStart [09:57:53]Write to MH i2c: 01 00 00 04 2D 31 [09:57:53]Write i2c OK [09:57:53]MH_I2C_Read... [09:57:53]Read from MH i2c: 01 [09:57:53]MH_I2C_Read... [09:57:53]Read from MH i2c: 01 07 00 [09:57:53]MH_I2C_Read... [09:57:53]Read from MH i2c: 01 07 00 04 2D 00 00 00 00 00 FF 0F 46 [09:57:53]RasterBufferAndPrint [09:57:53]line *****ТОВАРНЫЙ ЧЕК***** [09:57:53]line АЗС 120 [09:57:53]line Партнер нефть [09:57:53]line 02508201610067 [09:57:53]line Кассир : Байбугуева Г. [09:57:53]line Счет N : (1)673836 [09:57:53]line 22.06.2024 09:34 [09:57:53]line ПРОДАЖА [09:57:53]line ТРК (МРК, ГНК): 42 [09:57:53]line Вид ГСМ : 2710124130 [09:57:53]line Аи-92-К-5 [09:57:53]line 20.000 x 66.40 [09:57:53]line ИТОГ: 1328.00 [09:57:53]line Тип оплаты: Талоны: Партнер нефть [09:57:53]line 3930749 [09:57:53]line ______________________ [09:57:53]line (подпись) [09:57:53]written 0, free lines is 4095 [09:57:54]Write to MH i2c: 01 00 00 18 2D 45 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 07 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 07 00 18 2D 00 00 00 00 00 15 0E 6F [09:57:54]RasterBufferAndPrint [09:57:54]line [09:57:54]line [09:57:54]line [09:57:54]line [09:57:54]line [09:57:54]written 0, free lines is 3607 [09:57:54]MH_Cut [09:57:54]Write to MH i2c: D1 01 00 1F 2D 01 1E [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: D1 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: D1 01 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: D1 01 00 1F 2D 00 1D [09:57:54]Write to MH i2c: 01 00 00 20 2D 4D [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** Cut start [09:57:54]*** Partial cut [09:57:54]*** CUTSNS_PIN = 1 [09:57:54]*** CUTSNS_PIN = 0 [09:57:54]*** Brake cut motor [09:57:55]Read from MH i2c: 01 [09:57:55]MH_I2C_Read... [09:57:55]*** Stop cut motor [09:57:55]*** Cut end [09:57:55]Read from MH i2c: 01 07 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: 01 07 00 20 2D 00 00 00 00 00 FF 0F 62 [09:57:55]process_action print_text done [09:57:55]requested_data is exist [09:57:55]produce_requested_data [09:57:55]requested_item fm.sn is exist - process it [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 11 00 00 [09:57:55]Write to MH i2c: E2 08 00 21 2D 80 11 00 00 00 00 00 00 C8 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 17 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 17 00 21 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [09:57:55]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:55]wFMCommunicate OK [09:57:55]requested_item fd.num is exist - process it [09:57:55]SAM_PROTO_GetFieldsCounters [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 13 00 00 [09:57:55]Write to MH i2c: E2 08 00 22 2D 80 13 00 00 00 00 00 00 CB [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 62 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 62 00 22 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 32 [09:57: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 89 97 01 00 0E 04 04 00 64 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 [09:57:55]wFMCommunicate OK [09:57:55]SAM_PROTO_GetFieldsCounters done [09:57:55]requested_item shift.num is exist - process it [09:57:55]requested_item shift.opened is exist - process it [09:57:55]req_shift_opened [09:57:55]FM_GetShiftState [09:57:55]SAM_PROTO_GetShiftState [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 13 01 00 [09:57:55]Write to MH i2c: E2 08 00 23 2D 80 13 01 00 00 00 00 00 CD [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0E 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0E 00 23 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BF [09:57:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:57:55]wFMCommunicate OK [09:57:55]SAM_PROTO_GetShiftState done [09:57:55]FM_GetShiftState done [09:57:55]req_shift_opened done [09:57:55]requested_item shift.open_date is exist - process it [09:57:55]req_shift_open_date [09:57:55]req_shift_open_date done [09:57:55]produce_requested_data done [09:57:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:57:55]process_action_free print_text [09:57:55]json_value_free [09:57:55]json_value_free done [09:57:55]process_json_proto returns [09:57:55]Send response to host [09:57:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104329,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:57:55]free response buf [09:57:55]execute_script done [09:57:55]execute_script returns [09:57:55]free content buf [09:57:55]Sock 7.Close socket [09:57:55]Sock 7.Thread stoped [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:53]accept exits with 9 [09:59:53]New connection [09:59:53]New thread 3067473252 created [09:59:53]Thread 3067616612 joined [09:59:53]Waiting for new connection... [09:59:53] Sock 9.Parse request [09:59:53]Sock 9.Check first char [09:59:53]Sock 9.First char is OK [09:59:53]request: POST /json_proto HTTP/1.0 [09:59:53]Method: POST [09:59:53]URL: /json_proto [09:59:53]Method is POST - this is cgi request [09:59:53]url: /json_proto [09:59:53]query_string will be loaded in cgi processing [09:59:53]execute_cgi json_proto POST (null) [09:59:53]execute_cgi path=json_proto method=POST [09:59:53]POST find Content-Length [09:59:53]Host: 172.17.38.133:8080 [09:59:53]Content-Length: 811 [09:59:53]Content-Type: application/json [09:59:53] [09:59:53]POST finish read [09:59:53]Found Content-Length = 811 [09:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673834", "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" : 150.000, "sum" : 10935.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" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:53]execute_script... [09:59:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673834", "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" : 150.000, "sum" : 10935.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" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:53]POST & json_proto [09:59:53]process_json_proto [09:59:53]json parsed OK: [09:59:53]protocol is kg_v1.0 [09:59:53]action value=close_receipt [09:59:53]process_action close_receipt [09:59:53]cmd_close_receipt [09:59:53]MH_GetDate [09:59:53]Write to MH i2c: F0 00 00 24 2D 40 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: F0 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: F0 09 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: F0 09 00 24 2D 00 9D A0 76 66 BD 8F 7C 64 8E [09:59:53]GetLastDocTimeStamp 1719050023 [09:59:53]current date 1719050397 [09:59:53]FM_GetShiftState [09:59:53]SAM_PROTO_GetShiftState [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 13 01 00 [09:59:53]Write to MH i2c: E2 08 00 25 2D 80 13 01 00 00 00 00 00 CF [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 0E 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 0E 00 25 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C1 [09:59:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:59:53]wFMCommunicate OK [09:59:53]SAM_PROTO_GetShiftState done [09:59:53]FM_GetShiftState done [09:59:53]opened in 1719016176 [09:59:53]opened+sec_in_day 1719102576 [09:59:53]quantity*price = 1093500 [09:59:53]sum+1 = 1093501 [09:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 22.06.2024 09:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104330 ФПД: 36180707746714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104330&fm=36180707746714&tin=02508201610067®Number=0000000000092785&sum=1093500 [09:59:54]StoreToDocumentArchive [09:59:54]shift 356 fd 104330 [09:59:54]save to /storage/0356/doc_00104330 [09:59:54]save last doc name /storage/0356/doc_00104330 to /storage/kkm_last_doc_name [09:59:54]save OK [09:59:54]Clear old archive folders... [09:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:59:54]tlvbuf is 006C8200 [09:59:54]SAM_PROTO_ClearQueue [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 09 00 00 [09:59:54]Write to MH i2c: E2 08 00 32 2D 80 09 00 00 00 00 00 00 D1 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:54]Read from MH i2c: E2 03 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 32 2D 00 90 00 D3 [09:59:54]RAPDU: 90 00 [09:59:54]wFMCommunicate OK [09:59:54]SAM_PROTO_ClearQueue done [09:59:54]KKMCreateOFDPacket [09:59:54]OFDProtocolAddRootSTLVToBuf [09:59:54]FM_MakeSignedData [09:59:54]FM_MakeSignedData [09:59:54]SAM_PROTO_SignData [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 0D 01 02 [09:59:54]Write to MH i2c: E2 08 00 33 2D 80 0D 01 02 00 00 00 00 D9 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 33 2D 00 90 00 D4 [09:59:54]RAPDU: 90 00 [09:59:54]wFMCommunicate OK [09:59:54]wFMCommunicate request_size=255 [09:59:54]MH_SAM_APDU [09:59: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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9D A0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [09:59:54]Write to MH i2c: E2 02 01 34 2D 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9D A0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D9 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 34 2D 00 90 00 D5 [09:59:54]RAPDU: 90 00 [09:59:54]wFMCommunicate OK [09:59:54]wFMCommunicate request_size=11 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 0D 02 02 06 20 E7 FA 3B A3 9A [09:59:54]Write to MH i2c: E2 0E 00 35 2D 80 0D 02 02 06 00 20 E7 FA 3B A3 9A 00 00 61 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 03 00 35 2D 00 90 00 D6 [09:59:54]RAPDU: 90 00 [09:59:54]wFMCommunicate OK [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 0D 03 02 [09:59:54]Write to MH i2c: E2 08 00 36 2D 80 0D 03 02 00 00 00 00 DE [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0B 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0B 00 36 2D 00 81 76 3C 31 8F 84 15 5A 90 00 C5 [09:59:55]RAPDU: 81 76 3C 31 8F 84 15 5A 90 00 [09:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_SignData done [09:59:55]FM_MakeSignedData done [09:59:55]CreateOFDProtocolMessage [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 11 00 00 [09:59:55]Write to MH i2c: E2 08 00 37 2D 80 11 00 00 00 00 00 00 DE [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 37 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [09:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:59:55]wFMCommunicate OK [09:59:55]CreateOFDProtocolMessage done [09:59:55]OFDSenderStorePacket 104330 [09:59:55]StoreOFDPacket docnum=104330 [09:59: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 10 01 00 00 2C 00 08 01 0F 2E 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9D A0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 E7 FA 3B A3 9A 81 76 3C 31 8F 84 15 5A [09:59:55]CheckFolder [09:59:55]dirname=/storage/ofd_packets [09:59:55]CheckFolder done [09:59:55]ProducePacketName [09:59:55]name=ofd_packets/00104330 [09:59:55]NVStorageSaveData ofd_packets/00104330 [09:59:55]File name is /storage/ofd_packets/00104330 [09:59:55]Write 302 bytes [09:59:55]NVStorageSaveData done [09:59:55]OFDSenderStorePacket done [09:59:55]KKMCreateOFDPacket done [09:59:55]NVStorageSaveData kkm_last_timestamp [09:59:55]File name is /storage/kkm_last_timestamp [09:59:55]Write 4 bytes [09:59:55]NVStorageSaveData done [09:59:55]ExternCall_PrintAddStr [09:59:55]wPrintStart [09:59:55]Write to MH i2c: 01 00 00 38 2D 65 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 38 2D 00 00 00 00 00 FF 0F 7A [09:59:55]RasterBufferAndPrint [09:59:55]line Счет N : (1)673834 [09:59:55]line ИНН: 02508201610067 [09:59:55]line Контрольно-Кассовый Чек [09:59:55]line ПРОДАЖА [09:59:55]line ТРК (МРК, ГНК) : 21 [09:59:55]line Товар: 2710194210 [09:59:55]line ДТ(л)-К-5 [09:59:55]line 150.000 * 72.90 [09:59:55]line = 10935.00 [09:59:55]line НДС 12% НСП 1% [09:59:55]line > о реализуемом товаре [09:59:55]line ИТОГО: 10935.00 [09:59:55]line НСП 1% : 96.77 [09:59:55]line НДС 12% : 1161.24 [09:59:55]line Наличными: 0.00 [09:59:55]line Безнал.: 10935.00 [09:59:55]line Место: АЗС № 120 "Партнер Нефть" [09:59:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:59:55]line СНО: Общий режим [09:59:55]line Чек 63 22.06.2024 09:59 [09:59:55]line Смена: 356 ФФД: 1.0 [09:59:55]line ЗНМ: 0300000164 [09:59:55]line РНМ: 0000000000092785 [09:59:55]line Версия ККМ: 001 [09:59:55]line Платежная система: O! деньги [09:59:55]line ФМ: 0000000000875093 [09:59:55]line ФД: 104330 [09:59:55]line ФПД: 36180707746714 [09:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104330&fm=36180707746714&tin=02508201610067®Number=0000000000092785&sum=1093500 [09:59:55]written 0, free lines is 4095 [09:59:55]OFD Sender: Processing packet 104330 [packets to send 17, broken 16] [09:59:55]ProducePacketName [09:59:55]name=ofd_packets/00104330 [09:59:55]OFD Sender: To server: pG, [09:59:55]CommunicateWithHost lk.salyk.kg:30040 [09:59:55]ConnectInit lk.salyk.kg [09:59:55]Connected sock=10 [09:59: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 10 01 00 00 2C 00 08 01 0F 2E 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9D A0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 E7 FA 3B A3 9A 81 76 3C 31 8F 84 15 5A [09:59: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 92 F8 47 00 6E 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 8A 97 01 00 F4 03 04 00 1D 47 76 66 B6 04 01 00 00 62 FC 67 57 E7 CE 77 68 [09:59:55]CommunicateWithHost err = 0 [09:59:55]CheckOFDResponse [09:59:55]1017 (14) - 77093643461234 [09:59:55]1041 (16) - 0000000000875093 [09:59:55]1040 (4) - 104330 [09:59:55]1012 (4) - 22.06.2024 03:38 [09:59:55]1206 (1) - 0 [09:59:55]OFD Sender: Remove packet 104330 [09:59:55]ProducePacketName [09:59:55]name=ofd_packets/00104330 [09:59:55]NVStorageDeleteData [09:59:55]Write to MH i2c: 01 00 00 62 2D 8F [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 62 2D 00 00 00 00 00 EB 0C 8D [09:59:55]RasterBufferAndPrint [09:59:55]line [09:59:55]line [09:59:55]line [09:59:55]line [09:59:55]line [09:59:55]written 0, free lines is 3313 [09:59:55]MH_Cut [09:59:55]Write to MH i2c: D1 01 00 69 2D 01 68 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D1 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D1 01 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D1 01 00 69 2D 00 67 [09:59:55]Write to MH i2c: 01 00 00 6A 2D 97 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:56]OFD Sender: No OFD packet to send [09:59:56]*** Cut start [09:59:56]*** Partial cut [09:59:56]*** CUTSNS_PIN = 1 [09:59:56]*** CUTSNS_PIN = 0 [09:59:56]*** Brake cut motor [09:59:57]Read from MH i2c: 01 [09:59:57]MH_I2C_Read... [09:59:57]*** Stop cut motor [09:59:57]*** Cut end [09:59:57]Read from MH i2c: 01 07 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 07 00 6A 2D 00 00 00 00 00 FF 0F AC [09:59:57]process_action close_receipt done [09:59:57]requested_data is exist [09:59:57]produce_requested_data [09:59:57]requested_item fm.sn is exist - process it [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 11 00 00 [09:59:57]Write to MH i2c: E2 08 00 6B 2D 80 11 00 00 00 00 00 00 12 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 17 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 17 00 6B 2D 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:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:59:57]wFMCommunicate OK [09:59:57]requested_item fd.num is exist - process it [09:59:57]SAM_PROTO_GetFieldsCounters [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 13 00 00 [09:59:57]Write to MH i2c: E2 08 00 6C 2D 80 13 00 00 00 00 00 00 15 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 62 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 62 00 6C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 80 [09:59: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 8A 97 01 00 0E 04 04 00 64 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 [09:59:57]wFMCommunicate OK [09:59:57]SAM_PROTO_GetFieldsCounters done [09:59:57]requested_item shift.num is exist - process it [09:59:57]requested_item shift.opened is exist - process it [09:59:57]req_shift_opened [09:59:57]FM_GetShiftState [09:59:57]SAM_PROTO_GetShiftState [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 13 01 00 [09:59:57]Write to MH i2c: E2 08 00 6D 2D 80 13 01 00 00 00 00 00 17 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0E 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0E 00 6D 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 09 [09:59:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [09:59:57]wFMCommunicate OK [09:59:57]SAM_PROTO_GetShiftState done [09:59:57]FM_GetShiftState done [09:59:57]req_shift_opened done [09:59:57]requested_item shift.open_date is exist - process it [09:59:57]req_shift_open_date [09:59:57]req_shift_open_date done [09:59:57]produce_requested_data done [09:59:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104330,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [09:59:57]process_action_free close_receipt [09:59:57]json_value_free [09:59:57]json_value_free done [09:59:57]process_json_proto returns [09:59:57]Send response to host [09:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104330,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [09:59:57]free response buf [09:59:57]execute_script done [09:59:57]execute_script returns [09:59:57]free content buf [09:59:57]Sock 9.Close socket [09:59:57]Sock 9.Thread stoped [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:55]accept exits with 7 [10:04:55]New connection [10:04:55]New thread 3067616612 created [10:04:55]Thread 3067473252 joined [10:04:55]Waiting for new connection... [10:04:55] Sock 7.Parse request [10:04:55]Sock 7.Check first char [10:04:55]Sock 7.First char is OK [10:04:55]request: POST /json_proto HTTP/1.0 [10:04:55]Method: POST [10:04:55]URL: /json_proto [10:04:55]Method is POST - this is cgi request [10:04:55]url: /json_proto [10:04:55]query_string will be loaded in cgi processing [10:04:55]execute_cgi json_proto POST (null) [10:04:55]execute_cgi path=json_proto method=POST [10:04:55]POST find Content-Length [10:04:55]Host: 172.17.38.133:8080 [10:04:55]Content-Length: 1169 [10:04:55]Content-Type: application/json [10:04:55] [10:04:55]POST finish read [10:04:55]Found Content-Length = 1169 [10:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673838\u000A22.06.2024 09:41\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 80.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 5912.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30078341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:55]execute_script... [10:04:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673838\u000A22.06.2024 09:41\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 80.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 5912.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30078341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:55]POST & json_proto [10:04:55]process_json_proto [10:04:55]json parsed OK: [10:04:55]protocol is kg_v1.0 [10:04:55]action value=print_text [10:04:55]process_action print_text [10:04:55]cmd_print_text [10:04:55]ExternCall_PrintAddStr [10:04:55]wPrintStart [10:04:55]Write to MH i2c: 01 00 00 6E 2D 9B [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 6E 2D 00 00 00 00 00 FF 0F B0 [10:04:55]RasterBufferAndPrint [10:04:55]line *****ТОВАРНЫЙ ЧЕК***** [10:04:55]line АЗС 120 [10:04:55]line Партнер нефть [10:04:55]line 02508201610067 [10:04:55]line Кассир : Байбугуева Г. [10:04:55]line Счет N : (1)673838 [10:04:55]line 22.06.2024 09:41 [10:04:55]line ПРОДАЖА [10:04:55]line ТРК (МРК, ГНК): 31 [10:04:55]line Вид ГСМ : 2710124500 [10:04:55]line Аи-95-К-5 [10:04:55]line 80.000 x 73.90 [10:04:55]line ИТОГ: 5912.00 [10:04:55]line Тип оплаты: Талоны: ТК ГПНА Online [10:04:55]line 30078341 [10:04:55]line ______________________ [10:04:55]line (подпись) [10:04:55]written 0, free lines is 4095 [10:04:55]Write to MH i2c: 01 00 00 82 2D AF [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 82 2D 00 00 00 00 00 12 0E D6 [10:04:55]RasterBufferAndPrint [10:04:55]line [10:04:55]line [10:04:55]line [10:04:55]line [10:04:55]line [10:04:55]written 0, free lines is 3604 [10:04:55]MH_Cut [10:04:55]Write to MH i2c: D1 01 00 89 2D 01 88 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: D1 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: D1 01 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: D1 01 00 89 2D 00 87 [10:04:55]Write to MH i2c: 01 00 00 8A 2D B7 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:56]*** Cut start [10:04:56]*** Partial cut [10:04:56]*** CUTSNS_PIN = 1 [10:04:56]*** CUTSNS_PIN = 0 [10:04:56]*** Brake cut motor [10:04:56]OFD Sender: No OFD packet to send [10:04:56]Read from MH i2c: 01 [10:04:56]MH_I2C_Read... [10:04:56]*** Stop cut motor [10:04:56]*** Cut end [10:04:56]Read from MH i2c: 01 07 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 07 00 8A 2D 00 00 00 00 00 FF 0F CC [10:04:56]process_action print_text done [10:04:56]requested_data is exist [10:04:56]produce_requested_data [10:04:56]requested_item fm.sn is exist - process it [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 11 00 00 [10:04:56]Write to MH i2c: E2 08 00 8B 2D 80 11 00 00 00 00 00 00 32 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 17 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 17 00 8B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [10:04: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:04:56]wFMCommunicate OK [10:04:56]requested_item fd.num is exist - process it [10:04:56]SAM_PROTO_GetFieldsCounters [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 13 00 00 [10:04:56]Write to MH i2c: E2 08 00 8C 2D 80 13 00 00 00 00 00 00 35 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 62 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 62 00 8C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A0 [10:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_GetFieldsCounters done [10:04:56]requested_item shift.num is exist - process it [10:04:56]requested_item shift.opened is exist - process it [10:04:56]req_shift_opened [10:04:56]FM_GetShiftState [10:04:56]SAM_PROTO_GetShiftState [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 13 01 00 [10:04:56]Write to MH i2c: E2 08 00 8D 2D 80 13 01 00 00 00 00 00 37 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 8D 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 29 [10:04:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_GetShiftState done [10:04:56]FM_GetShiftState done [10:04:56]req_shift_opened done [10:04:56]requested_item shift.open_date is exist - process it [10:04:56]req_shift_open_date [10:04:56]req_shift_open_date done [10:04:56]produce_requested_data done [10:04:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104330,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:04:56]process_action_free print_text [10:04:56]json_value_free [10:04:56]json_value_free done [10:04:56]process_json_proto returns [10:04:56]Send response to host [10:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104330,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:04:56]free response buf [10:04:56]execute_script done [10:04:56]execute_script returns [10:04:56]free content buf [10:04:56]Sock 7.Close socket [10:04:56]Sock 7.Thread stoped [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]accept exits with 9 [10:07:21]New connection [10:07:21]New thread 3067473252 created [10:07:21]Thread 3067616612 joined [10:07:21]Waiting for new connection... [10:07:21] Sock 9.Parse request [10:07:21]Sock 9.Check first char [10:07:21]Sock 9.First char is OK [10:07:21]request: POST /json_proto HTTP/1.0 [10:07:21]Method: POST [10:07:21]URL: /json_proto [10:07:21]Method is POST - this is cgi request [10:07:21]url: /json_proto [10:07:21]query_string will be loaded in cgi processing [10:07:21]execute_cgi json_proto POST (null) [10:07:21]execute_cgi path=json_proto method=POST [10:07:21]POST find Content-Length [10:07:21]Host: 172.17.38.133:8080 [10:07:21]Content-Length: 811 [10:07:21]Content-Type: application/json [10:07:21] [10:07:21]POST finish read [10:07:21]Found Content-Length = 811 [10:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673837", "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" : 150.000, "sum" : 10935.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" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]execute_script... [10:07: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)673837", "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" : 150.000, "sum" : 10935.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" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]POST & json_proto [10:07:21]process_json_proto [10:07:21]json parsed OK: [10:07:21]protocol is kg_v1.0 [10:07:21]action value=close_receipt [10:07:21]process_action close_receipt [10:07:21]cmd_close_receipt [10:07:21]MH_GetDate [10:07:21]Write to MH i2c: F0 00 00 8E 2D AA [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 8E 2D 00 5D A2 76 66 BD 8F 7C 64 BA [10:07:21]GetLastDocTimeStamp 1719050397 [10:07:21]current date 1719050845 [10:07:21]FM_GetShiftState [10:07:21]SAM_PROTO_GetShiftState [10:07:21]wFMCommunicate request_size=4 [10:07:21]MH_SAM_APDU [10:07:21]CAPDU: 80 13 01 00 [10:07:21]Write to MH i2c: E2 08 00 8F 2D 80 13 01 00 00 00 00 00 39 [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:21]Read from MH i2c: E2 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 8F 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2B [10:07:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:07:21]wFMCommunicate OK [10:07:21]SAM_PROTO_GetShiftState done [10:07:21]FM_GetShiftState done [10:07:21]opened in 1719016176 [10:07:21]opened+sec_in_day 1719102576 [10:07:21]quantity*price = 1093500 [10:07:21]sum+1 = 1093501 [10:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 22.06.2024 10:07 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104331 ФПД: 256139841493167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100725&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104331&fm=256139841493167&tin=02508201610067®Number=0000000000092785&sum=1093500 [10:07:22]StoreToDocumentArchive [10:07:22]shift 356 fd 104331 [10:07:22]save to /storage/0356/doc_00104331 [10:07:22]save last doc name /storage/0356/doc_00104331 to /storage/kkm_last_doc_name [10:07:22]save OK [10:07:22]Clear old archive folders... [10:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:07:22]tlvbuf is 0068AD50 [10:07:22]SAM_PROTO_ClearQueue [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 09 00 00 [10:07:22]Write to MH i2c: E2 08 00 9C 2D 80 09 00 00 00 00 00 00 3B [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 9C 2D 00 90 00 3D [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_ClearQueue done [10:07:22]KKMCreateOFDPacket [10:07:22]OFDProtocolAddRootSTLVToBuf [10:07:22]FM_MakeSignedData [10:07:22]FM_MakeSignedData [10:07:22]SAM_PROTO_SignData [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 01 02 [10:07:22]Write to MH i2c: E2 08 00 9D 2D 80 0D 01 02 00 00 00 00 43 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 9D 2D 00 90 00 3E [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=255 [10:07:22]MH_SAM_APDU [10:07: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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D A2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [10:07:22]Write to MH i2c: E2 02 01 9E 2D 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D A2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 07 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 9E 2D 00 90 00 3F [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=11 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 02 02 06 E8 F5 34 43 D8 AF [10:07:22]Write to MH i2c: E2 0E 00 9F 2D 80 0D 02 02 06 00 E8 F5 34 43 D8 AF 00 00 2D [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 9F 2D 00 90 00 40 [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 03 02 [10:07:22]Write to MH i2c: E2 08 00 A0 2D 80 0D 03 02 00 00 00 00 48 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0B 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0B 00 A0 2D 00 FA E9 C8 5F 17 4B 41 16 90 00 0C [10:07:22]RAPDU: FA E9 C8 5F 17 4B 41 16 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_SignData done [10:07:22]FM_MakeSignedData done [10:07:22]CreateOFDProtocolMessage [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 11 00 00 [10:07:22]Write to MH i2c: E2 08 00 A1 2D 80 11 00 00 00 00 00 00 48 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 17 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 17 00 A1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [10:07:22]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:22]wFMCommunicate OK [10:07:22]CreateOFDProtocolMessage done [10:07:22]OFDSenderStorePacket 104331 [10:07:22]StoreOFDPacket docnum=104331 [10:07: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 10 01 00 00 3C D5 08 01 5F 36 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D A2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 F5 34 43 D8 AF FA E9 C8 5F 17 4B 41 16 [10:07:22]CheckFolder [10:07:22]dirname=/storage/ofd_packets [10:07:22]CheckFolder done [10:07:22]ProducePacketName [10:07:22]name=ofd_packets/00104331 [10:07:22]NVStorageSaveData ofd_packets/00104331 [10:07:22]File name is /storage/ofd_packets/00104331 [10:07:22]Write 302 bytes [10:07:22]NVStorageSaveData done [10:07:22]OFDSenderStorePacket done [10:07:22]KKMCreateOFDPacket done [10:07:22]NVStorageSaveData kkm_last_timestamp [10:07:22]File name is /storage/kkm_last_timestamp [10:07:22]Write 4 bytes [10:07:22]NVStorageSaveData done [10:07:22]ExternCall_PrintAddStr [10:07:22]wPrintStart [10:07:22]Write to MH i2c: 01 00 00 A2 2D CF [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 07 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 07 00 A2 2D 00 00 00 00 00 FF 0F E4 [10:07:22]RasterBufferAndPrint [10:07:22]line Счет N : (1)673837 [10:07:22]line ИНН: 02508201610067 [10:07:22]line Контрольно-Кассовый Чек [10:07:22]line ПРОДАЖА [10:07:22]line ТРК (МРК, ГНК) : 21 [10:07:22]line Товар: 2710194210 [10:07:22]line ДТ(л)-К-5 [10:07:22]line 150.000 * 72.90 [10:07:22]line = 10935.00 [10:07:22]line НДС 12% НСП 1% [10:07:22]line > о реализуемом товаре [10:07:22]line ИТОГО: 10935.00 [10:07:22]line НСП 1% : 96.77 [10:07:22]line НДС 12% : 1161.24 [10:07:22]line Наличными: 0.00 [10:07:22]line Безнал.: 10935.00 [10:07:22]line Место: АЗС № 120 "Партнер Нефть" [10:07:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:07:22]line СНО: Общий режим [10:07:22]line Чек 64 22.06.2024 10:07 [10:07:22]line Смена: 356 ФФД: 1.0 [10:07:22]line ЗНМ: 0300000164 [10:07:22]line РНМ: 0000000000092785 [10:07:22]line Версия ККМ: 001 [10:07:22]line Платежная система: O! деньги [10:07:22]line ФМ: 0000000000875093 [10:07:22]line ФД: 104331 [10:07:22]line ФПД: 256139841493167 [10:07:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100725&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104331&fm=256139841493167&tin=02508201610067®Number=0000000000092785&sum=1093500 [10:07:23]OFD Sender: Processing packet 104331 [packets to send 17, broken 16] [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00104331 [10:07:23]OFD Sender: To server: pG, [10:07:23]CommunicateWithHost lk.salyk.kg:30040 [10:07:23]ConnectInit lk.salyk.kg [10:07:23]written 0, free lines is 4095 [10:07:23]Connected sock=10 [10:07: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 3C D5 08 01 5F 36 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 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D A2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 F5 34 43 D8 AF FA E9 C8 5F 17 4B 41 16 [10:07: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 A4 19 47 00 B6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 97 01 00 F4 03 04 00 DD 48 76 66 B6 04 01 00 00 BC 9D AA 0C 0C 54 3F 2F [10:07:23]CommunicateWithHost err = 0 [10:07:23]CheckOFDResponse [10:07:23]1017 (14) - 77093643461234 [10:07:23]1041 (16) - 0000000000875093 [10:07:23]1040 (4) - 104331 [10:07:23]1012 (4) - 22.06.2024 03:45 [10:07:23]1206 (1) - 0 [10:07:23]OFD Sender: Remove packet 104331 [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00104331 [10:07:23]NVStorageDeleteData [10:07:23]Write to MH i2c: 01 00 00 CC 2D F9 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 CC 2D 00 00 00 00 00 ED 0C F9 [10:07:23]RasterBufferAndPrint [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]written 0, free lines is 3314 [10:07:23]MH_Cut [10:07:23]Write to MH i2c: D1 01 00 D3 2D 01 D2 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 01 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 01 00 D3 2D 00 D1 [10:07:23]Write to MH i2c: 01 00 00 D4 2D 01 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:24]OFD Sender: No OFD packet to send [10:07:24]*** Cut start [10:07:24]*** Partial cut [10:07:24]*** CUTSNS_PIN = 1 [10:07:24]*** CUTSNS_PIN = 0 [10:07:24]*** Brake cut motor [10:07:25]Read from MH i2c: 01 [10:07:25]MH_I2C_Read... [10:07:25]*** Stop cut motor [10:07:25]*** Cut end [10:07:25]Read from MH i2c: 01 07 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: 01 07 00 D4 2D 00 00 00 00 00 FF 0F 16 [10:07:25]process_action close_receipt done [10:07:25]requested_data is exist [10:07:25]produce_requested_data [10:07:25]requested_item fm.sn is exist - process it [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 11 00 00 [10:07:25]Write to MH i2c: E2 08 00 D5 2D 80 11 00 00 00 00 00 00 7C [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 D5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [10:07:25]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:25]wFMCommunicate OK [10:07:25]requested_item fd.num is exist - process it [10:07:25]SAM_PROTO_GetFieldsCounters [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 00 00 [10:07:25]Write to MH i2c: E2 08 00 D6 2D 80 13 00 00 00 00 00 00 7F [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 D6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EE [10:07: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 8B 97 01 00 0E 04 04 00 64 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 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetFieldsCounters done [10:07:25]requested_item shift.num is exist - process it [10:07:25]requested_item shift.opened is exist - process it [10:07:25]req_shift_opened [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 73 [10:07:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]req_shift_opened done [10:07:25]requested_item shift.open_date is exist - process it [10:07:25]req_shift_open_date [10:07:25]req_shift_open_date done [10:07:25]produce_requested_data done [10:07:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104331,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:07:25]process_action_free close_receipt [10:07:25]json_value_free [10:07:25]json_value_free done [10:07:25]process_json_proto returns [10:07:25]Send response to host [10:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104331,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:07:25]free response buf [10:07:25]execute_script done [10:07:25]execute_script returns [10:07:25]free content buf [10:07:25]Sock 9.Close socket [10:07:25]Sock 9.Thread stoped [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:02]accept exits with 7 [10:11:02]New connection [10:11:02]New thread 3067616612 created [10:11:02]Thread 3067473252 joined [10:11:02]Waiting for new connection... [10:11:02] Sock 7.Parse request [10:11:02]Sock 7.Check first char [10:11:02]Sock 7.First char is OK [10:11:02]request: POST /json_proto HTTP/1.0 [10:11:02]Method: POST [10:11:02]URL: /json_proto [10:11:02]Method is POST - this is cgi request [10:11:02]url: /json_proto [10:11:02]query_string will be loaded in cgi processing [10:11:02]execute_cgi json_proto POST (null) [10:11:02]execute_cgi path=json_proto method=POST [10:11:02]POST find Content-Length [10:11:02]Host: 172.17.38.133:8080 [10:11:02]Content-Length: 1173 [10:11:02]Content-Type: application/json [10:11:02] [10:11:02]POST finish read [10:11:02]Found Content-Length = 1173 [10:11: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673839\u000A22.06.2024 09: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 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:02]execute_script... [10:11: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673839\u000A22.06.2024 09: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 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:02]POST & json_proto [10:11:02]process_json_proto [10:11:02]json parsed OK: [10:11:02]protocol is kg_v1.0 [10:11:02]action value=print_text [10:11:02]process_action print_text [10:11:02]cmd_print_text [10:11:02]ExternCall_PrintAddStr [10:11:02]wPrintStart [10:11:02]Write to MH i2c: 01 00 00 D8 2D 05 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 FF 0F 1A [10:11:02]RasterBufferAndPrint [10:11:02]line *****ТОВАРНЫЙ ЧЕК***** [10:11:02]line АЗС 120 [10:11:02]line Партнер нефть [10:11:02]line 02508201610067 [10:11:02]line Кассир : Байбугуева Г. [10:11:02]line Счет N : (1)673839 [10:11:02]line 22.06.2024 09:48 [10:11:02]line ПРОДАЖА [10:11:02]line ТРК (МРК, ГНК): 11 [10:11:02]line Вид ГСМ : 2710194210 [10:11:02]line ДТ(л)-К-5 [10:11:02]line 10.000 x 72.90 [10:11:02]line ИТОГ: 729.00 [10:11:02]line Тип оплаты: Талоны: ТК ГПНА Online [10:11:02]line 30101762 [10:11:02]line ______________________ [10:11:02]line (подпись) [10:11:02]written 0, free lines is 4095 [10:11:02]Write to MH i2c: 01 00 00 EC 2D 19 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 EC 2D 00 00 00 00 00 11 0E 3F [10:11:02]RasterBufferAndPrint [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]written 0, free lines is 3603 [10:11:02]MH_Cut [10:11:02]Write to MH i2c: D1 01 00 F3 2D 01 F2 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 F3 2D 00 F1 [10:11:02]Write to MH i2c: 01 00 00 F4 2D 21 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:03]*** Cut start [10:11:03]*** Partial cut [10:11:03]*** CUTSNS_PIN = 1 [10:11:03]*** CUTSNS_PIN = 0 [10:11:03]*** Brake cut motor [10:11:03]Read from MH i2c: 01 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: 01 07 00 [10:11:03]MH_I2C_Read... [10:11:03]*** Stop cut motor [10:11:03]*** Cut end [10:11:03]Read from MH i2c: 01 07 00 F4 2D 00 00 00 00 00 FF 0F 36 [10:11:03]process_action print_text done [10:11:03]requested_data is exist [10:11:03]produce_requested_data [10:11:03]requested_item fm.sn is exist - process it [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 11 00 00 [10:11:03]Write to MH i2c: E2 08 00 F5 2D 80 11 00 00 00 00 00 00 9C [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 F5 2D 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:11:03]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:03]wFMCommunicate OK [10:11:03]requested_item fd.num is exist - process it [10:11:03]SAM_PROTO_GetFieldsCounters [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 00 00 [10:11:03]Write to MH i2c: E2 08 00 F6 2D 80 13 00 00 00 00 00 00 9F [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 62 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 62 00 F6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0E [10:11: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 8B 97 01 00 0E 04 04 00 64 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 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_GetFieldsCounters done [10:11:04]requested_item shift.num is exist - process it [10:11:04]requested_item shift.opened is exist - process it [10:11:04]req_shift_opened [10:11:04]FM_GetShiftState [10:11:04]SAM_PROTO_GetShiftState [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 13 01 00 [10:11:04]Write to MH i2c: E2 08 00 F7 2D 80 13 01 00 00 00 00 00 A1 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 F7 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 93 [10:11:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_GetShiftState done [10:11:04]FM_GetShiftState done [10:11:04]req_shift_opened done [10:11:04]requested_item shift.open_date is exist - process it [10:11:04]req_shift_open_date [10:11:04]req_shift_open_date done [10:11:04]produce_requested_data done [10:11:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104331,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:11:04]process_action_free print_text [10:11:04]json_value_free [10:11:04]json_value_free done [10:11:04]process_json_proto returns [10:11:04]Send response to host [10:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104331,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:11:04]free response buf [10:11:04]execute_script done [10:11:04]execute_script returns [10:11:04]free content buf [10:11:04]Sock 7.Close socket [10:11:04]Sock 7.Thread stoped [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:57]accept exits with 10 [10:11:57]New connection [10:11:57]New thread 3067473252 created [10:11:57]Thread 3067616612 joined [10:11:57]Waiting for new connection... [10:11:57] Sock 10.Parse request [10:11:57]Sock 10.Check first char [10:11:57]Sock 10.First char is OK [10:11:57]request: POST /json_proto HTTP/1.0 [10:11:57]Method: POST [10:11:57]URL: /json_proto [10:11:57]Method is POST - this is cgi request [10:11:57]url: /json_proto [10:11:57]query_string will be loaded in cgi processing [10:11:57]execute_cgi json_proto POST (null) [10:11:57]execute_cgi path=json_proto method=POST [10:11:57]POST find Content-Length [10:11:57]Host: 172.17.38.133:8080 [10:11:57]Content-Length: 642 [10:11:57]Content-Type: application/json [10:11:57] [10:11:57]POST finish read [10:11:57]Found Content-Length = 642 [10:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673840", "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 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:57]execute_script... [10:11: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)673840", "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 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:57]POST & json_proto [10:11:57]process_json_proto [10:11:57]json parsed OK: [10:11:57]protocol is kg_v1.0 [10:11:57]action value=close_receipt [10:11:57]process_action close_receipt [10:11:57]cmd_close_receipt [10:11:57]MH_GetDate [10:11:57]Write to MH i2c: F0 00 00 F8 2D 14 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 09 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 09 00 F8 2D 00 72 A3 76 66 BD 8F 7C 64 3A [10:11:57]GetLastDocTimeStamp 1719050845 [10:11:57]current date 1719051122 [10:11:57]FM_GetShiftState [10:11:57]SAM_PROTO_GetShiftState [10:11:57]wFMCommunicate request_size=4 [10:11:57]MH_SAM_APDU [10:11:57]CAPDU: 80 13 01 00 [10:11:57]Write to MH i2c: E2 08 00 F9 2D 80 13 01 00 00 00 00 00 A3 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:57]Read from MH i2c: E2 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: E2 0E 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: E2 0E 00 F9 2D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 95 [10:11:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:11:57]wFMCommunicate OK [10:11:57]SAM_PROTO_GetShiftState done [10:11:57]FM_GetShiftState done [10:11:57]opened in 1719016176 [10:11:57]opened+sec_in_day 1719102576 [10:11:57]quantity*price = 132800 [10:11:57]sum+1 = 132801 [10:11:57]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 СНО: Общий режим Чек 65 22.06.2024 10:12 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104332 ФПД: 109247497712307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101202&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104332&fm=109247497712307&tin=02508201610067®Number=0000000000092785&sum=132800 [10:11:59]StoreToDocumentArchive [10:11:59]shift 356 fd 104332 [10:11:59]save to /storage/0356/doc_00104332 [10:11:59]save last doc name /storage/0356/doc_00104332 to /storage/kkm_last_doc_name [10:11:59]save OK [10:11:59]Clear old archive folders... [10:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:59]tlvbuf is 0067BCD0 [10:11:59]SAM_PROTO_ClearQueue [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 09 00 00 [10:11:59]Write to MH i2c: E2 08 00 06 2E 80 09 00 00 00 00 00 00 A6 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 06 2E 00 90 00 A8 [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_ClearQueue done [10:11:59]KKMCreateOFDPacket [10:11:59]OFDProtocolAddRootSTLVToBuf [10:11:59]FM_MakeSignedData [10:11:59]FM_MakeSignedData [10:11:59]SAM_PROTO_SignData [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 01 02 [10:11:59]Write to MH i2c: E2 08 00 07 2E 80 0D 01 02 00 00 00 00 AE [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 07 2E 00 90 00 A9 [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=255 [10:11:59]MH_SAM_APDU [10:11: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 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 41 00 00 00 F4 03 04 00 72 A3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 63 [10:11:59]Write to MH i2c: E2 02 01 08 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 41 00 00 00 F4 03 04 00 72 A3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 63 00 00 94 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]OFD Sender: No OFD packet to send [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 08 2E 00 90 00 AA [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=10 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 02 02 05 5C 2A 4B 32 B3 [10:11:59]Write to MH i2c: E2 0D 00 09 2E 80 0D 02 02 05 00 5C 2A 4B 32 B3 00 00 71 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 03 02 [10:11:59]Write to MH i2c: E2 08 00 0A 2E 80 0D 03 02 00 00 00 00 B3 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 0A 2E 00 F3 12 A6 37 BC 93 61 47 90 00 8D [10:11:59]RAPDU: F3 12 A6 37 BC 93 61 47 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_SignData done [10:11:59]FM_MakeSignedData done [10:11:59]CreateOFDProtocolMessage [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 11 00 00 [10:11:59]Write to MH i2c: E2 08 00 0B 2E 80 11 00 00 00 00 00 00 B3 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 0B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [10:11:59]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:59]wFMCommunicate OK [10:11:59]CreateOFDProtocolMessage done [10:11:59]OFDSenderStorePacket 104332 [10:11:59]StoreOFDPacket docnum=104332 [10:11: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 96 03 07 01 62 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 00 00 00 F4 03 04 00 72 A3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 63 5C 2A 4B 32 B3 F3 12 A6 37 BC 93 61 47 [10:11:59]CheckFolder [10:11:59]dirname=/storage/ofd_packets [10:11:59]CheckFolder done [10:11:59]ProducePacketName [10:11:59]name=ofd_packets/00104332 [10:11:59]NVStorageSaveData ofd_packets/00104332 [10:11:59]File name is /storage/ofd_packets/00104332 [10:11:59]Write 301 bytes [10:11:59]NVStorageSaveData done [10:11:59]OFDSenderStorePacket done [10:11:59]KKMCreateOFDPacket done [10:11:59]NVStorageSaveData kkm_last_timestamp [10:11:59]File name is /storage/kkm_last_timestamp [10:11:59]Write 4 bytes [10:11:59]NVStorageSaveData done [10:11:59]ExternCall_PrintAddStr [10:11:59]wPrintStart [10:11:59]Write to MH i2c: 01 00 00 0C 2E 3A [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 07 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 07 00 0C 2E 00 00 00 00 00 FF 0F 4F [10:11:59]RasterBufferAndPrint [10:11:59]line Счет N : (1)673840 [10:11:59]line ИНН: 02508201610067 [10:11:59]line Контрольно-Кассовый Чек [10:11:59]line ПРОДАЖА [10:11:59]line ТРК (МРК, ГНК) : 42 [10:11:59]line Товар: 2710124130 [10:11:59]line Аи-92-К-5 [10:11:59]line 20.000 * 66.40 [10:11:59]line = 1328.00 [10:11:59]line НДС 12% НСП 1% [10:11:59]line > о реализуемом товаре [10:11:59]line ИТОГО: 1328.00 [10:11:59]line НСП 1% : 11.75 [10:11:59]line НДС 12% : 141.03 [10:11:59]line Наличными: 1328.00 [10:11:59]line Безнал.: 0.00 [10:11:59]line Место: АЗС № 120 "Партнер Нефть" [10:11:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:11:59]line СНО: Общий режим [10:11:59]line Чек 65 22.06.2024 10:12 [10:11:59]line Смена: 356 ФФД: 1.0 [10:11:59]line ЗНМ: 0300000164 [10:11:59]line РНМ: 0000000000092785 [10:11:59]line Версия ККМ: 001 [10:11:59]line ФМ: 0000000000875093 [10:11:59]line ФД: 104332 [10:11:59]line ФПД: 109247497712307 [10:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101202&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104332&fm=109247497712307&tin=02508201610067®Number=0000000000092785&sum=132800 [10:11:59]OFD Sender: Processing packet 104332 [packets to send 17, broken 16] [10:11:59]ProducePacketName [10:11:59]name=ofd_packets/00104332 [10:11:59]OFD Sender: To server: pG, [10:11:59]CommunicateWithHost lk.salyk.kg:30040 [10:11:59]ConnectInit lk.salyk.kg [10:11:59]written 0, free lines is 4095 [10:12:00]Connected sock=9 [10:12: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 96 03 07 01 62 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 00 00 00 F4 03 04 00 72 A3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 63 5C 2A 4B 32 B3 F3 12 A6 37 BC 93 61 47 [10:12: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 90 95 47 00 5C 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 8C 97 01 00 F4 03 04 00 F1 49 76 66 B6 04 01 00 00 23 E8 33 19 7B 13 3F 83 [10:12:00]CommunicateWithHost err = 0 [10:12:00]CheckOFDResponse [10:12:00]1017 (14) - 77093643461234 [10:12:00]1041 (16) - 0000000000875093 [10:12:00]1040 (4) - 104332 [10:12:00]1012 (4) - 22.06.2024 03:50 [10:12:00]1206 (1) - 0 [10:12:00]OFD Sender: Remove packet 104332 [10:12:00]ProducePacketName [10:12:00]name=ofd_packets/00104332 [10:12:00]NVStorageDeleteData [10:12:00]Write to MH i2c: 01 00 00 34 2E 62 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 34 2E 00 00 00 00 00 0A 0D 80 [10:12:00]RasterBufferAndPrint [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]written 0, free lines is 3344 [10:12:00]MH_Cut [10:12:00]Write to MH i2c: D1 01 00 3B 2E 01 3B [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 01 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 01 00 3B 2E 00 3A [10:12:00]Write to MH i2c: 01 00 00 3C 2E 6A [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]OFD Sender: No OFD packet to send [10:12:01]*** Cut start [10:12:01]*** Partial cut [10:12:01]*** CUTSNS_PIN = 1 [10:12:01]*** CUTSNS_PIN = 0 [10:12:01]*** Brake cut motor [10:12:01]Read from MH i2c: 01 [10:12:01]MH_I2C_Read... [10:12:01]*** Stop cut motor [10:12:01]*** Cut end [10:12:01]Read from MH i2c: 01 07 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 FF 0F 7F [10:12:01]process_action close_receipt done [10:12:01]requested_data is exist [10:12:01]produce_requested_data [10:12:01]requested_item fm.sn is exist - process it [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 11 00 00 [10:12:01]Write to MH i2c: E2 08 00 3D 2E 80 11 00 00 00 00 00 00 E5 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 3D 2E 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:01]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:01]wFMCommunicate OK [10:12:01]requested_item fd.num is exist - process it [10:12:01]SAM_PROTO_GetFieldsCounters [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 13 00 00 [10:12:01]Write to MH i2c: E2 08 00 3E 2E 80 13 00 00 00 00 00 00 E8 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 3E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5B [10:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_GetFieldsCounters done [10:12:01]requested_item shift.num is exist - process it [10:12:01]requested_item shift.opened is exist - process it [10:12:01]req_shift_opened [10:12:01]FM_GetShiftState [10:12:01]SAM_PROTO_GetShiftState [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 13 01 00 [10:12:01]Write to MH i2c: E2 08 00 3F 2E 80 13 01 00 00 00 00 00 EA [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:02]Read from MH i2c: E2 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: E2 0E 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: E2 0E 00 3F 2E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DC [10:12:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:12:02]wFMCommunicate OK [10:12:02]SAM_PROTO_GetShiftState done [10:12:02]FM_GetShiftState done [10:12:02]req_shift_opened done [10:12:02]requested_item shift.open_date is exist - process it [10:12:02]req_shift_open_date [10:12:02]req_shift_open_date done [10:12:02]produce_requested_data done [10:12:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104332,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:12:02]process_action_free close_receipt [10:12:02]json_value_free [10:12:02]json_value_free done [10:12:02]process_json_proto returns [10:12:02]Send response to host [10:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104332,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:12:02]free response buf [10:12:02]execute_script done [10:12:02]execute_script returns [10:12:02]free content buf [10:12:02]Sock 10.Close socket [10:12:02]Sock 10.Thread stoped [10:12:04]accept exits with 7 [10:12:04]New connection [10:12:04]New thread 3067616612 created [10:12:04]Thread 3067473252 joined [10:12:04]Waiting for new connection... [10:12:04] Sock 7.Parse request [10:12:04]Sock 7.Check first char [10:12:04]Sock 7.First char is OK [10:12:04]request: POST /json_proto HTTP/1.0 [10:12:04]Method: POST [10:12:04]URL: /json_proto [10:12:04]Method is POST - this is cgi request [10:12:04]url: /json_proto [10:12:04]query_string will be loaded in cgi processing [10:12:04]execute_cgi json_proto POST (null) [10:12:04]execute_cgi path=json_proto method=POST [10:12:04]POST find Content-Length [10:12:04]Host: 172.17.38.133:8080 [10:12:04]Content-Length: 699 [10:12:04]Content-Type: application/json [10:12:04] [10:12:04]POST finish read [10:12:04]Found Content-Length = 699 [10:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104332, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673840", "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 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:04]execute_script... [10:12:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104332, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673840", "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 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:04]POST & json_proto [10:12:04]process_json_proto [10:12:04]json parsed OK: [10:12:04]protocol is kg_v1.0 [10:12:04]action value=close_receipt [10:12:04]process_action close_receipt [10:12:04]cmd_close_receipt [10:12:04]MH_GetDate [10:12:04]Write to MH i2c: F0 00 00 40 2E 5D [10:12:04]Write i2c OK [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: F0 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: F0 09 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: F0 09 00 40 2E 00 79 A3 76 66 BD 8F 7C 64 8A [10:12:04]GetLastDocTimeStamp 1719051122 [10:12:04]current date 1719051129 [10:12:04]FM_GetShiftState [10:12:04]SAM_PROTO_GetShiftState [10:12:04]wFMCommunicate request_size=4 [10:12:04]MH_SAM_APDU [10:12:04]CAPDU: 80 13 01 00 [10:12:04]Write to MH i2c: E2 08 00 41 2E 80 13 01 00 00 00 00 00 EC [10:12:04]Write i2c OK [10:12:04]MH_I2C_Read... [10:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:04]Read from MH i2c: E2 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 41 2E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DE [10:12:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:12:04]wFMCommunicate OK [10:12:04]SAM_PROTO_GetShiftState done [10:12:04]FM_GetShiftState done [10:12:04]opened in 1719016176 [10:12:04]opened+sec_in_day 1719102576 [10:12:04]quantity*price = 132800 [10:12:04]sum+1 = 132801 [10:12:04]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 СНО: Общий режим Чек 66 22.06.2024 10:12 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104332 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104333 ФПД: 164791577012546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101209&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104333&fm=164791577012546&tin=02508201610067®Number=0000000000092785&sum=132800 [10:12:06]StoreToDocumentArchive [10:12:06]shift 356 fd 104333 [10:12:06]save to /storage/0356/doc_00104333 [10:12:06]save last doc name /storage/0356/doc_00104333 to /storage/kkm_last_doc_name [10:12:06]save OK [10:12:06]Clear old archive folders... [10:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:12:06]tlvbuf is 0068A920 [10:12:06]SAM_PROTO_ClearQueue [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 09 00 00 [10:12:06]Write to MH i2c: E2 08 00 50 2E 80 09 00 00 00 00 00 00 F0 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 50 2E 00 90 00 F2 [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]SAM_PROTO_ClearQueue done [10:12:06]KKMCreateOFDPacket [10:12:06]OFDProtocolAddRootSTLVToBuf [10:12:06]FM_MakeSignedData [10:12:06]FM_MakeSignedData [10:12:06]SAM_PROTO_SignData [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 01 02 [10:12:06]Write to MH i2c: E2 08 00 51 2E 80 0D 01 02 00 00 00 00 F8 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 51 2E 00 90 00 F3 [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=255 [10:12:06]MH_SAM_APDU [10:12:06]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 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 42 00 00 00 F4 03 04 00 79 A3 76 66 0E 04 04 00 64 01 00 00 B9 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 8C 97 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 [10:12:06]Write to MH i2c: E2 02 01 52 2E 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 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 42 00 00 00 F4 03 04 00 79 A3 76 66 0E 04 04 00 64 01 00 00 B9 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 8C 97 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 E5 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=38 [10:12:06]MH_SAM_APDU [10:12: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 8D 97 01 00 35 04 06 00 95 E0 87 68 E9 42 [10:12:06]Write to MH i2c: E2 29 00 53 2E 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 8D 97 01 00 35 04 06 00 95 E0 87 68 E9 42 00 00 38 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724B7 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 33166413+1685884861=1719051274 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B A4 76 66 BD 8F 7C 64 B6 [10:14:35]Current date/time: 22.06.2024 10:14 [10:14:35]FM_Init [10:14:35]wFMConnect [10:14:35]MH_SAM_On [10:14:35]Write to MH i2c: E0 00 00 08 00 E7 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_init finished! [10:14:35]*** atr: [10:14:35]*** 0F 3B D5 18 FF 81 91 FE [10:14:35]*** 1F C3 80 73 C8 21 10 0A [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]*** 00 00 00 00 00 00 00 00 [10:14:35]Read from MH i2c: E0 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E0 10 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:14:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:14:35]wFMCommunicate request_size=10 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:14:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 11 00 00 [10:14:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [10:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:14:35]wFMCommunicate OK [10:14:35]Detected FM SN is 0000000000875093 [10:14:35]Stored FM SN is 0000000000875093 [10:14:35]wFMCommunicate request_size=9 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 16 00 00 04 D4 80 01 00 [10:14:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D4 80 01 00 00 00 E7 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]FM PIN OK [10:14:35]wFMCommunicate request_size=8 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 14 04 00 03 02 00 01 [10:14:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]wFMCommunicate request_size=13 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:14:35]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 11 00 00 [10:14:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [10:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:14:35]wFMCommunicate OK [10:14:35]DocumentArchiveInit [10:14:35]Start Httpd... [10:14:35]Httpd thread 3066879332 created [10:14:35]Write to MH i2c: 01 00 00 0F 00 0F [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:14:35]MH Int Process started [10:14:35]Allocated Socket 8 [10:14:35]Bind OK [10:14:35]Listen OK [10:14:35]httpd running on port 8080 [10:14:35]Waiting for new connection... [10:14:35]OFD Sender: Processing packet 104333 [packets to send 17, broken 16] [10:14:35]ProducePacketName [10:14:35]name=ofd_packets/00104333 [10:14:35]OFD Sender: To server: pG, [10:14:35]CommunicateWithHost lk.salyk.kg:30040 [10:14:35]ConnectInit lk.salyk.kg [10:14:35]Connected sock=6 [10:14: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 2B 01 00 00 01 5B 23 01 90 B0 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 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 42 00 00 00 F4 03 04 00 79 A3 76 66 0E 04 04 00 64 01 00 00 B9 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 8C 97 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 8D 97 01 00 35 04 06 00 95 E0 87 68 E9 42 46 F4 D7 45 16 17 74 A0 [10:14: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 9D 04 47 00 F9 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 8D 97 01 00 F4 03 04 00 89 4A 76 66 B6 04 01 00 00 BD 4E D8 E1 48 48 48 E5 [10:14:35]CommunicateWithHost err = 0 [10:14:35]CheckOFDResponse [10:14:35]1017 (14) - 77093643461234 [10:14:35]1041 (16) - 0000000000875093 [10:14:35]1040 (4) - 104333 [10:14:35]1012 (4) - 22.06.2024 03:52 [10:14:35]1206 (1) - 0 [10:14:35]OFD Sender: Remove packet 104333 [10:14:35]ProducePacketName [10:14:35]name=ofd_packets/00104333 [10:14:35]NVStorageDeleteData [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:53]int [10:14:53]Write to MH i2c: 01 00 00 10 00 10 [10:14:53]*** FLAG_PRN_PAP1 set [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 10 00 00 01 00 00 00 FF 0F 26 [10:14:53]state=0 [10:14:53]No paper [10:14:53]int [10:14:53]Write to MH i2c: 01 00 00 11 00 11 [10:14:53]*** FLAG_PRN_PAP2 set [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 11 00 00 03 00 00 00 FF 0F 29 [10:14:53]state=0 [10:14:53]No paper [10:14:53]Cover opened [10:14:56]OFD Sender: No OFD packet to send [10:14:58]Write to MH i2c: 01 00 00 12 00 12 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 12 00 00 03 00 00 00 FF 0F 2A [10:14:58]state=3 [10:14:58]No paper [10:14:58]Cover opened [10:15:01]OFD Sender: No OFD packet to send [10:15:03]int [10:15:03]Write to MH i2c: 01 00 00 13 00 13 [10:15:03]*** FLAG_PRN_PAP1 reset [10:15:03]*** FLAG_PRN_PAP2 reset [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: 01 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: 01 07 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 FF 0F 28 [10:15:03]state=3 [10:15:03]Cover closed [10:15:06]OFD Sender: No OFD packet to send [10:15:06]accept exits with 9 [10:15:06]New connection [10:15:06]New thread 3066592612 created [10:15:06]Waiting for new connection... [10:15:06] Sock 9.Parse request [10:15:06]Sock 9.Check first char [10:15:06]Sock 9.First char is OK [10:15:06]request: POST /json_proto HTTP/1.0 [10:15:06]Method: POST [10:15:06]URL: /json_proto [10:15:06]Method is POST - this is cgi request [10:15:06]url: /json_proto [10:15:06]query_string will be loaded in cgi processing [10:15:06]execute_cgi json_proto POST (null) [10:15:06]execute_cgi path=json_proto method=POST [10:15:06]POST find Content-Length [10:15:06]Host: 172.17.38.133:8080 [10:15:06]Content-Length: 215 [10:15:06]Content-Type: application/json [10:15:06] [10:15:06]POST finish read [10:15:06]Found Content-Length = 215 [10:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:06]execute_script... [10:15:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:06]POST & json_proto [10:15:06]process_json_proto [10:15:06]json parsed OK: [10:15:06]protocol is kg_v1.0 [10:15:06]action value=get_value [10:15:06]process_action get_value [10:15:06]cmd_get_value [10:15:06]process_action get_value done [10:15:06]requested_data is exist [10:15:06]produce_requested_data [10:15:06]requested_item kkm.sn is exist - process it [10:15:06]requested_item kkm.ver is exist - process it [10:15:06]requested_item fm.sn is exist - process it [10:15:06]wFMCommunicate request_size=4 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 11 00 00 [10:15:06]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [10: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 [10:15:07]wFMCommunicate OK [10:15:07]requested_item fd.num is exist - process it [10:15:07]SAM_PROTO_GetFieldsCounters [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 13 00 00 [10:15:07]Write to MH i2c: E2 08 00 15 00 80 13 00 00 00 00 00 00 91 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 62 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 62 00 15 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 08 [10:15: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 8D 97 01 00 0E 04 04 00 64 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 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_GetFieldsCounters done [10:15:07]requested_item shift.num is exist - process it [10:15:07]requested_item shift.opened is exist - process it [10:15:07]req_shift_opened [10:15:07]FM_GetShiftState [10:15:07]SAM_PROTO_GetShiftState [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 13 01 00 [10:15:07]Write to MH i2c: E2 08 00 16 00 80 13 01 00 00 00 00 00 93 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0E 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0E 00 16 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 85 [10:15:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_GetShiftState done [10:15:07]FM_GetShiftState done [10:15:07]req_shift_opened done [10:15:07]requested_item shift.open_date is exist - process it [10:15:07]req_shift_open_date [10:15:07]req_shift_open_date done [10:15:07]produce_requested_data done [10:15:07]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:15:07]process_action_free get_value [10:15:07]json_value_free [10:15:07]json_value_free done [10:15:07]process_json_proto returns [10:15:07]Send response to host [10:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:15:07]free response buf [10:15:07]execute_script done [10:15:07]execute_script returns [10:15:07]free content buf [10:15:07]Sock 9.Close socket [10:15:07]Sock 9.Thread stoped [10:15:07]accept exits with 7 [10:15:07]New connection [10:15:07]New thread 3066449252 created [10:15:07]Thread 3066592612 joined [10:15:07]Waiting for new connection... [10:15:07] Sock 7.Parse request [10:15:07]Sock 7.Check first char [10:15:07]Sock 7.First char is OK [10:15:07]request: POST /json_proto HTTP/1.0 [10:15:07]Method: POST [10:15:07]URL: /json_proto [10:15:07]Method is POST - this is cgi request [10:15:07]url: /json_proto [10:15:07]query_string will be loaded in cgi processing [10:15:07]execute_cgi json_proto POST (null) [10:15:07]execute_cgi path=json_proto method=POST [10:15:07]POST find Content-Length [10:15:07]Host: 172.17.38.133:8080 [10:15:07]Content-Length: 331 [10:15:07]Content-Type: application/json [10:15:07] [10:15:07]POST finish read [10:15:07]Found Content-Length = 331 [10:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:15:07]execute_script... [10:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:15:07]POST & json_proto [10:15:07]process_json_proto [10:15:07]json parsed OK: [10:15:07]protocol is kg_v1.0 [10:15:07]action value=get_value [10:15:07]process_action get_value [10:15:07]cmd_get_value [10:15:07]process_action get_value done [10:15:07]requested_data is exist [10:15:07]produce_requested_data [10:15:07]requested_item fm.sale.total is exist - process it [10:15:07]SAM_PROTO_GetFMData [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 13 03 00 [10:15:07]Write to MH i2c: E2 08 00 17 00 80 13 03 00 00 00 00 00 96 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 FD 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 FD 00 17 00 00 C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 62 [10:15:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 [10:15:07]wFMCommunicate OK [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 17 00 00 [10:15:07]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 18 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 C3 [10:15:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 [10:15:08]wFMCommunicate OK [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 17 00 00 [10:15:08]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 19 00 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 AB [10:15:08]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 [10:15:08]wFMCommunicate OK [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 17 00 00 [10:15:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 FD 00 1A 00 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 26 [10:15:08]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 [10:15:08]wFMCommunicate OK [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 17 00 00 [10:15:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 E2 00 [10:15:08]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 E2 00 1B 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [10:15:09]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 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_GetFMData done [10:15:09]requested_item fm.sale_refund.total is exist - process it [10:15:09]requested_item fm.buy.total is exist - process it [10:15:09]requested_item shift.sale.total is exist - process it [10:15:09]SAM_PROTO_GetShiftData [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 13 02 00 [10:15:09]Write to MH i2c: E2 08 00 1C 00 80 13 02 00 00 00 00 00 9A [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 FD 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 FD 00 1C 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 8F [10:15:09]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:15:09]wFMCommunicate OK [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 17 00 00 [10:15:09]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 FD 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 FD 00 1D 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 F7 [10:15:09]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [10:15:09]wFMCommunicate OK [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 17 00 00 [10:15:09]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 FD 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 FD 00 1E 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C6 [10:15:10]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [10:15:10]wFMCommunicate OK [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 17 00 00 [10:15:10]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 FD 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 FD 00 1F 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 17 [10:15:10]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [10:15:10]wFMCommunicate OK [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 17 00 00 [10:15:10]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 D6 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 D6 00 20 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [10:15:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:15:10]wFMCommunicate OK [10:15:10]SAM_PROTO_GetShiftData done [10:15:10]requested_item shift.sale.total_cash is exist - process it [10:15:10]requested_item shift.sale_refund.total is exist - process it [10:15:10]requested_item shift.sale_refund.total_cash is exist - process it [10:15:10]requested_item shift.buy.total is exist - process it [10:15:10]requested_item shift.buy.total_cash is exist - process it [10:15:10]produce_requested_data done [10:15:10]produce_requested_data return {"fm.sale.total":182879872.87,"fm.sale_refund.total":4068341.00,"fm.buy.total":0.00,"shift.sale.total":142995.64,"shift.sale.total_cash":102179.00,"shift.sale_refund.total":1328.00,"shift.sale_refund.total_cash":1328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:15:10]process_action_free get_value [10:15:10]json_value_free [10:15:10]json_value_free done [10:15:10]process_json_proto returns [10:15:10]Send response to host [10:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182879872.87,"fm.sale_refund.total":4068341.00,"fm.buy.total":0.00,"shift.sale.total":142995.64,"shift.sale.total_cash":102179.00,"shift.sale_refund.total":1328.00,"shift.sale_refund.total_cash":1328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:15:10]free response buf [10:15:10]execute_script done [10:15:10]execute_script returns [10:15:10]free content buf [10:15:10]Sock 7.Close socket [10:15:10]Sock 7.Thread stoped [10:15:10]accept exits with 9 [10:15:10]New connection [10:15:10]New thread 3066592612 created [10:15:10]Thread 3066449252 joined [10:15:10]Waiting for new connection... [10:15:10] Sock 9.Parse request [10:15:10]Sock 9.Check first char [10:15:10]Sock 9.First char is OK [10:15:10]request: POST /json_proto HTTP/1.0 [10:15:10]Method: POST [10:15:10]URL: /json_proto [10:15:10]Method is POST - this is cgi request [10:15:10]url: /json_proto [10:15:10]query_string will be loaded in cgi processing [10:15:10]execute_cgi json_proto POST (null) [10:15:10]execute_cgi path=json_proto method=POST [10:15:10]POST find Content-Length [10:15:10]Host: 172.17.38.133:8080 [10:15:10]Content-Length: 331 [10:15:10]Content-Type: application/json [10:15:10] [10:15:10]POST finish read [10:15:10]Found Content-Length = 331 [10:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:15:10]execute_script... [10:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:15:10]POST & json_proto [10:15:10]process_json_proto [10:15:10]json parsed OK: [10:15:10]protocol is kg_v1.0 [10:15:10]action value=get_value [10:15:10]process_action get_value [10:15:10]cmd_get_value [10:15:10]process_action get_value done [10:15:10]requested_data is exist [10:15:10]produce_requested_data [10:15:10]requested_item fm.sale.total is exist - process it [10:15:10]SAM_PROTO_GetFMData [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 13 03 00 [10:15:10]Write to MH i2c: E2 08 00 21 00 80 13 03 00 00 00 00 00 A0 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 21 00 00 C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 6C [10:15:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 [10:15:11]wFMCommunicate OK [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 17 00 00 [10:15:11]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]OFD Sender: No OFD packet to send [10:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 22 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 CD [10:15:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 [10:15:11]wFMCommunicate OK [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 17 00 00 [10:15:11]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 FD 00 23 00 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 B5 [10:15:11]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 [10:15:11]wFMCommunicate OK [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 17 00 00 [10:15:11]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:12]Read from MH i2c: E2 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 FD 00 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 FD 00 24 00 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 30 [10:15:12]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 [10:15:12]wFMCommunicate OK [10:15:12]wFMCommunicate request_size=4 [10:15:12]MH_SAM_APDU [10:15:12]CAPDU: 80 17 00 00 [10:15:12]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [10:15:12]Write i2c OK [10:15:12]MH_I2C_Read... [10:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:15:12]Read from MH i2c: E2 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 E2 00 [10:15:12]MH_I2C_Read... [10:15:12]Read from MH i2c: E2 E2 00 25 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [10:15:12]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 [10:15:12]wFMCommunicate OK [10:15:12]SAM_PROTO_GetFMData done [10:15:12]requested_item fm.sale_refund.total is exist - process it [10:15:12]requested_item fm.buy.total is exist - process it [10:15:12]requested_item shift.sale.total is exist - process it [10:15:12]SAM_PROTO_GetShiftData [10:15:12]wFMCommunicate request_size=4 [10:15:12]MH_SAM_APDU [10:15:12]CAPDU: 80 13 02 00 [10:15:12]Write to MH i2c: E2 08 00 26 00 80 13 02 00 00 00 00 00 A4 [10:15:12]Write i2c OK [10:15:12]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 26 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 99 [10:15:13]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:15:13]wFMCommunicate OK [10:15:13]wFMCommunicate request_size=4 [10:15:13]MH_SAM_APDU [10:15:13]CAPDU: 80 17 00 00 [10:15:13]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [10:15:13]Write i2c OK [10:15:13]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 27 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 01 [10:15:13]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [10:15:13]wFMCommunicate OK [10:15:13]wFMCommunicate request_size=4 [10:15:13]MH_SAM_APDU [10:15:13]CAPDU: 80 17 00 00 [10:15:13]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [10:15:13]Write i2c OK [10:15:13]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 FD 00 28 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 D0 [10:15:14]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [10:15:14]wFMCommunicate OK [10:15:14]wFMCommunicate request_size=4 [10:15:14]MH_SAM_APDU [10:15:14]CAPDU: 80 17 00 00 [10:15:14]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [10:15:14]Write i2c OK [10:15:14]MH_I2C_Read... [10:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:14]Read from MH i2c: E2 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 FD 00 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 FD 00 29 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 21 [10:15:14]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [10:15:14]wFMCommunicate OK [10:15:14]wFMCommunicate request_size=4 [10:15:14]MH_SAM_APDU [10:15:14]CAPDU: 80 17 00 00 [10:15:14]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [10:15:14]Write i2c OK [10:15:14]MH_I2C_Read... [10:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [10:15:14]Read from MH i2c: E2 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 D6 00 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 D6 00 2A 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [10:15:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:15:14]wFMCommunicate OK [10:15:14]SAM_PROTO_GetShiftData done [10:15:14]requested_item shift.sale.total_cash is exist - process it [10:15:14]requested_item shift.sale_refund.total is exist - process it [10:15:14]requested_item shift.sale_refund.total_cash is exist - process it [10:15:14]requested_item shift.buy.total is exist - process it [10:15:14]requested_item shift.buy.total_cash is exist - process it [10:15:14]produce_requested_data done [10:15:14]produce_requested_data return {"fm.sale.total":182879872.87,"fm.sale_refund.total":4068341.00,"fm.buy.total":0.00,"shift.sale.total":142995.64,"shift.sale.total_cash":102179.00,"shift.sale_refund.total":1328.00,"shift.sale_refund.total_cash":1328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:15:14]process_action_free get_value [10:15:14]json_value_free [10:15:14]json_value_free done [10:15:14]process_json_proto returns [10:15:14]Send response to host [10:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182879872.87,"fm.sale_refund.total":4068341.00,"fm.buy.total":0.00,"shift.sale.total":142995.64,"shift.sale.total_cash":102179.00,"shift.sale_refund.total":1328.00,"shift.sale_refund.total_cash":1328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:15:14]free response buf [10:15:14]execute_script done [10:15:14]execute_script returns [10:15:14]free content buf [10:15:14]Sock 9.Close socket [10:15:14]Sock 9.Thread stoped [10:15:14]accept exits with 7 [10:15:14]New connection [10:15:14]New thread 3066449252 created [10:15:14]Thread 3066592612 joined [10:15:14]Waiting for new connection... [10:15:14] Sock 7.Parse request [10:15:14]Sock 7.Check first char [10:15:14]Sock 7.First char is OK [10:15:14]request: POST /json_proto HTTP/1.0 [10:15:14]Method: POST [10:15:14]URL: /json_proto [10:15:14]Method is POST - this is cgi request [10:15:14]url: /json_proto [10:15:14]query_string will be loaded in cgi processing [10:15:14]execute_cgi json_proto POST (null) [10:15:14]execute_cgi path=json_proto method=POST [10:15:14]POST find Content-Length [10:15:14]Host: 172.17.38.133:8080 [10:15:14]Content-Length: 269 [10:15:14]Content-Type: application/json [10:15:14] [10:15:14]POST finish read [10:15:14]Found Content-Length = 269 [10:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:14]execute_script... [10:15:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:14]POST & json_proto [10:15:14]process_json_proto [10:15:14]json parsed OK: [10:15:14]protocol is kg_v1.0 [10:15:14]action value=x_report [10:15:14]process_action x_report [10:15:14]cmd_x_report [10:15:14]MH_GetDate [10:15:14]Write to MH i2c: F0 00 00 2B 00 1A [10:15:14]Write i2c OK [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: F0 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: F0 09 00 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: F0 09 00 2B 00 00 33 A4 76 66 BD 8F 7C 64 02 [10:15:14]GetLastDocTimeStamp 1719051129 [10:15:14]current date 1719051315 [10:15:14]FM_GetShiftState [10:15:14]SAM_PROTO_GetShiftState [10:15:14]wFMCommunicate request_size=4 [10:15:14]MH_SAM_APDU [10:15:14]CAPDU: 80 13 01 00 [10:15:14]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [10:15:14]Write i2c OK [10:15:14]MH_I2C_Read... [10:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:14]Read from MH i2c: E2 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 0E 00 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9B [10:15:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:15:14]wFMCommunicate OK [10:15:14]SAM_PROTO_GetShiftState done [10:15:14]FM_GetShiftState done [10:15:14]KKMCreateXReportDocument [10:15:14]Load OK [10:15:14]Malloc new data [10:15:14]MH_GetDate [10:15:14]Write to MH i2c: F0 00 00 2D 00 1C [10:15:14]Write i2c OK [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: F0 [10:15:14]MH_I2C_Read... [10:15:14]Read from MH i2c: F0 09 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 09 00 2D 00 00 33 A4 76 66 BD 8F 7C 64 04 [10:15:15]Malloc new data [10:15:15]Malloc new data [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 11 00 00 [10:15:15]Write to MH i2c: E2 08 00 2E 00 80 11 00 00 00 00 00 00 A8 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:15]Read from MH i2c: E2 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 17 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 17 00 2E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [10:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:15]wFMCommunicate OK [10:15:15]SAM_PROTO_GetFieldsCounters [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 13 00 00 [10:15:15]Write to MH i2c: E2 08 00 2F 00 80 13 00 00 00 00 00 00 AB [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:15]Read from MH i2c: E2 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 62 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 62 00 2F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 22 [10:15: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 8D 97 01 00 0E 04 04 00 64 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 [10:15:15]wFMCommunicate OK [10:15:15]SAM_PROTO_GetFieldsCounters done [10:15:15]Malloc new data [10:15:15]Malloc new data [10:15:15]Malloc new data [10:15:15]KKMCreateXReportDocument OK [10:15:15]KKMSetXReportData OK [10:15:15]KKMPrepareXReportFMData [10:15:15]SAM_PROTO_GetShiftData [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 13 02 00 [10:15:15]Write to MH i2c: E2 08 00 30 00 80 13 02 00 00 00 00 00 AE [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:15:15]Read from MH i2c: E2 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 FD 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 FD 00 30 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A3 [10:15:15]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 AC 31 DA 70 04 03 00 AC E9 9B 72 04 03 00 00 48 3E 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 A7 2C 17 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 58 EE 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 C0 06 02 70 04 03 00 C0 06 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 17 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:15:15]wFMCommunicate OK [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 17 00 00 [10:15:15]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 FD 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 FD 00 31 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 0B [10:15:16]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [10:15:16]wFMCommunicate OK [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 17 00 00 [10:15:16]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]OFD Sender: No OFD packet to send [10:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 FD 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 FD 00 32 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 DA [10:15:16]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [10:15:16]wFMCommunicate OK [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 17 00 00 [10:15:16]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 FD 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 FD 00 33 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 2B [10:15:17]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [10:15:17]wFMCommunicate OK [10:15:17]wFMCommunicate request_size=4 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 17 00 00 [10:15:17]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 D6 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 D6 00 34 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 96 [10:15:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:15:17]wFMCommunicate OK [10:15:17]SAM_PROTO_GetShiftData done [10:15:17]1194 (1205) - счетчики итогов смены [10:15:17] 1134 (4) - 66 - количество чеков со всеми признаками расчетов [10:15:17] 1129 (156) - счетчики операций «приход» [10:15:17] 1135 (4) - 65 - количество чеков по признаку расчетов [10:15:17] 1201 (3) - 142995.64 - общая итоговая сумма в чеках [10:15:17] 1136 (3) - 102179.00 - итоговая сумма в чеках наличными [10:15:17] 1138 (3) - 40816.64 - итоговая сумма в чеках безналичными [10:15:17] 1024 (123) - суммы налогов [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 0% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1006 (12) - суммы НДС [10:15:17] 1010 (1) - 12% - код ставки НДС [10:15:17] 1011 (3) - 15187.59 - сумма НДС по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (12) - суммы НСП [10:15:17] 1014 (1) - 1% - код ставки НСП [10:15:17] 1015 (3) - 1265.52 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 2% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 3% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 5% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1130 (151) - счетчики операций «возврат прихода» [10:15:17] 1135 (4) - 1 - количество чеков по признаку расчетов [10:15:17] 1201 (3) - 1328.00 - общая итоговая сумма в чеках [10:15:17] 1136 (3) - 1328.00 - итоговая сумма в чеках наличными [10:15:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:15:17] 1024 (121) - суммы налогов [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 0% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1006 (11) - суммы НДС [10:15:17] 1010 (1) - 12% - код ставки НДС [10:15:17] 1011 (2) - 141.03 - сумма НДС по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (11) - суммы НСП [10:15:17] 1014 (1) - 1% - код ставки НСП [10:15:17] 1015 (2) - 11.75 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 2% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 3% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 5% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1131 (141) - счетчики операций «расход» [10:15:17] 1135 (4) - 0 - количество чеков по признаку расчетов [10:15:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:15:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:15:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:15:17] 1024 (117) - суммы налогов [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 0% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 12% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 2% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 3% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 5% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1132 (141) - счетчики операций «возврат расхода» [10:15:17] 1135 (4) - 0 - количество чеков по признаку расчетов [10:15:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:15:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:15:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:15:17] 1024 (117) - суммы налогов [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 0% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1006 (9) - суммы НДС [10:15:17] 1010 (1) - 12% - код ставки НДС [10:15:17] 1011 (0) - 0.00 - сумма НДС по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 2% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 3% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 5% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 0,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1007 (9) - суммы НСП [10:15:17] 1014 (1) - 1,50% - код ставки НСП [10:15:17] 1015 (0) - 0.00 - сумма НСП по ставке [10:15:17] 1133 (588) - - счетчики коррекции - не используются [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1194 (04AA) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1134 (046E) [10:15:18]Malloc new data [10:15:18]Processing tag 1129 (0469) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1135 (046F) [10:15:18]Malloc new data [10:15:18]Processing tag 1201 (04B1) [10:15:18]Malloc new data [10:15:18]Processing tag 1136 (0470) [10:15:18]Malloc new data [10:15:18]Processing tag 1138 (0472) [10:15:18]Malloc new data [10:15:18]Processing tag 1024 (0400) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1130 (046A) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1135 (046F) [10:15:18]Malloc new data [10:15:18]Processing tag 1201 (04B1) [10:15:18]Malloc new data [10:15:18]Processing tag 1136 (0470) [10:15:18]Malloc new data [10:15:18]Processing tag 1138 (0472) [10:15:18]Malloc new data [10:15:18]Processing tag 1024 (0400) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1131 (046B) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1135 (046F) [10:15:18]Malloc new data [10:15:18]Processing tag 1201 (04B1) [10:15:18]Malloc new data [10:15:18]Processing tag 1136 (0470) [10:15:18]Malloc new data [10:15:18]Processing tag 1138 (0472) [10:15:18]Malloc new data [10:15:18]Processing tag 1024 (0400) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1132 (046C) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1135 (046F) [10:15:18]Malloc new data [10:15:18]Processing tag 1201 (04B1) [10:15:18]Malloc new data [10:15:18]Processing tag 1136 (0470) [10:15:18]Malloc new data [10:15:18]Processing tag 1138 (0472) [10:15:18]Malloc new data [10:15:18]Processing tag 1024 (0400) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1006 (03EE) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1010 (03F2) [10:15:18]Malloc new data [10:15:18]Processing tag 1011 (03F3) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1007 (03EF) [10:15:18]Load OK [10:15:18]SetTLVBufToDocument [10:15:18]Processing tag 1014 (03F6) [10:15:18]Malloc new data [10:15:18]Processing tag 1015 (03F7) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Processing tag 1133 (046D) [10:15:18]Malloc new data [10:15:18]SetTLVBufToDocument err=0 [10:15:18]SetTLVBufToDocument err=0 [10:15:18]Malloc new data [10:15:18]SAM_PROTO_GetFMData [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 13 03 00 [10:15:18]Write to MH i2c: E2 08 00 35 00 80 13 03 00 00 00 00 00 B4 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 FD 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 FD 00 35 00 00 C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 80 [10:15:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 02 EF 03 09 90 00 [10:15:19]wFMCommunicate OK [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 17 00 00 [10:15:19]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 FD 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 FD 00 36 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 E1 [10:15:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F F0 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 [10:15:19]wFMCommunicate OK [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 17 00 00 [10:15:19]Write to MH i2c: E2 08 00 37 00 80 17 00 00 00 00 00 00 B7 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 FD 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 FD 00 37 00 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 C9 [10:15:20]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 [10:15:20]wFMCommunicate OK [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 17 00 00 [10:15:20]Write to MH i2c: E2 08 00 38 00 80 17 00 00 00 00 00 00 B8 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 FD 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 FD 00 38 00 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 44 [10:15: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 [10:15:21]wFMCommunicate OK [10:15:21]wFMCommunicate request_size=4 [10:15:21]MH_SAM_APDU [10:15:21]CAPDU: 80 17 00 00 [10:15:21]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [10:15:21]Write i2c OK [10:15:21]MH_I2C_Read... [10:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:15:21]Read from MH i2c: E2 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 E2 00 [10:15:21]MH_I2C_Read... [10:15:21]Read from MH i2c: E2 E2 00 39 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [10:15:21]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 [10:15:21]wFMCommunicate OK [10:15:21]SAM_PROTO_GetFMData done [10:15:21]FM_GetFMData:85 04 C1 04 6E 04 04 00 C5 94 01 00 69 04 A3 00 6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [10:15:21]00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 AF B1 A5 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 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 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 4F F0 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 [10:15:22]oper:6F 04 04 00 65 90 01 00 B1 04 05 00 57 8A 0C 42 04 70 04 05 00 38 45 C3 5C 03 72 04 04 00 1F 45 49 E5 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 4D E9 C5 73 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 AF B1 A5 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 [10:15:22]total:57 8A 0C 42 04 [10:15:22]Malloc new data [10:15:22]oper:6F 04 04 00 60 04 00 00 B1 04 04 00 B4 CB 3F 18 70 04 04 00 B4 CB 3F 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 8C 47 93 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 4F F0 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 [10:15:22]total:B4 CB 3F 18 [10:15:22]Malloc new data [10:15:22]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 [10:15:22]total: [10:15:22]Malloc new data [10:15:22]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 [10:15:22]total: [10:15:22]Malloc new data [10:15:22]KKMPrepareXReportFMData err=0 [10:15:22]Х отчет ИНН: 02508201610067 Кассир: Байбугуева Г. 22.06.2024 10:15 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 66 ИТОГИ ПРИХОД Чеков: 65 Общий итог: 142995.64 Итого наличными: 102179.00 Итого безнал.: 40816.64 НДС 0% : 0.00 НДС 12% : 15187.59 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1265.52 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1328.00 Итого наличными: 1328.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 141.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 11.75 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 100851.00 НС Приход: 182879872.87 НС Возвр.Прихода: 4068341.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [10:15:22]StoreToDocumentArchive [10:15:22]MH_GetDate [10:15:22]Write to MH i2c: F0 00 00 3A 00 29 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 3A 00 00 3B A4 76 66 BD 8F 7C 64 19 [10:15:22]shift 266 fd 1719051323 [10:15:22]Create dir for shift 0266 [10:15:22]save to /storage/0266/doc_1719051323 [10:15:22]save last doc name /storage/0266/doc_1719051323 to /storage/kkm_last_doc_name [10:15:22]save OK [10:15:22]Clear old archive folders... [10:15:22]NVStorageSaveData kkm_last_timestamp [10:15:22]File name is /storage/kkm_last_timestamp [10:15:22]Write 4 bytes [10:15:22]NVStorageSaveData done [10:15:22]ExternCall_PrintAddStr [10:15:22]wPrintStart [10:15:22]Write to MH i2c: 01 00 00 3B 00 3B [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: 01 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: 01 07 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: 01 07 00 3B 00 00 00 00 00 00 FF 0F 50 [10:15:22]RasterBufferAndPrint [10:15:22]line Х отчет [10:15:22]line ИНН: 02508201610067 [10:15:22]line Кассир: Байбугуева Г. [10:15:22]line 22.06.2024 10:15 [10:15:22]line Смена: 266 [10:15:22]line РНМ: 0000000000092785 [10:15:22]line ЗНМ: 0300000164 [10:15:22]line СНО: Общий режим [10:15:22]line Всего чеков: 66 [10:15:22]line ИТОГИ ПРИХОД [10:15:22]line Чеков: 65 [10:15:22]line Общий итог: 142995.64 [10:15:22]line Итого наличными: 102179.00 [10:15:22]line Итого безнал.: 40816.64 [10:15:22]line НДС 0% : 0.00 [10:15:22]line НДС 12% : 15187.59 [10:15:22]line НСП 0% : 0.00 [10:15:22]line НСП 1,50% : 0.00 [10:15:22]line НСП 0,50% : 0.00 [10:15:22]line НСП 5% : 0.00 [10:15:22]line НСП 3% : 0.00 [10:15:22]line НСП 2% : 0.00 [10:15:22]line НСП 1% : 1265.52 [10:15:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [10:15:22]line Чеков: 1 [10:15:22]line Общий итог: 1328.00 [10:15:22]line Итого наличными: 1328.00 [10:15:22]line Итого безнал.: 0.00 [10:15:22]line НДС 0% : 0.00 [10:15:22]line НДС 12% : 141.03 [10:15:22]line НСП 0% : 0.00 [10:15:22]line НСП 1,50% : 0.00 [10:15:22]line НСП 0,50% : 0.00 [10:15:22]line НСП 5% : 0.00 [10:15:22]line НСП 3% : 0.00 [10:15:22]line НСП 2% : 0.00 [10:15:22]line НСП 1% : 11.75 [10:15:22]line ИТОГИ РАСХОД [10:15:22]line Чеков: 0 [10:15:22]line Общий итог: 0.00 [10:15:22]line Итого наличными: 0.00 [10:15:22]line Итого безнал.: 0.00 [10:15:22]line НДС 0% : 0.00 [10:15:22]line НДС 12% : 0.00 [10:15:22]line НСП 0% : 0.00 [10:15:22]line НСП 1,50% : 0.00 [10:15:22]line НСП 0,50% : 0.00 [10:15:22]line НСП 5% : 0.00 [10:15:22]line НСП 3% : 0.00 [10:15:22]line НСП 2% : 0.00 [10:15:22]line НСП 1% : 0.00 [10:15:22]line ИТОГИ ВОЗВРАТ РАСХОДА [10:15:22]line Чеков: 0 [10:15:22]line Общий итог: 0.00 [10:15:22]line Итого наличными: 0.00 [10:15:22]line Итого безнал.: 0.00 [10:15:22]line НДС 0% : 0.00 [10:15:22]line НДС 12% : 0.00 [10:15:22]line НСП 0% : 0.00 [10:15:22]line НСП 1,50% : 0.00 [10:15:22]line НСП 0,50% : 0.00 [10:15:22]line НСП 5% : 0.00 [10:15:22]line НСП 3% : 0.00 [10:15:22]line НСП 2% : 0.00 [10:15:22]line НСП 1% : 0.00 [10:15:22]line Сумма внесений: 0.00 [10:15:22]line Сумма выплат: 0.00 [10:15:22]line Нал. в кассе: 100851.00 [10:15:22]line НС Приход: 182879872.87 [10:15:22]line НС Возвр.Прихода: 4068341.00 [10:15:22]line НС Расход: 0.00 [10:15:22]line НС Возвр.Расхода: 0.00 [10:15:22]line ФМ: 0000000000875093 [10:15:22]written 0, free lines is 4095 [10:15:23]Write to MH i2c: 01 00 00 86 00 86 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 07 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 AA 0A 41 [10:15:23]RasterBufferAndPrint [10:15:23]line [10:15:23]line [10:15:23]line [10:15:23]line [10:15:23]line [10:15:23]written 0, free lines is 2763 [10:15:23]MH_Cut [10:15:23]Write to MH i2c: D1 01 00 8D 00 01 5F [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: D1 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: D1 01 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: D1 01 00 8D 00 00 5E [10:15:23]Write to MH i2c: 01 00 00 8E 00 8E [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:24]*** Cut start [10:15:24]*** Partial cut [10:15:24]*** CUTSNS_PIN = 1 [10:15:24]*** CUTSNS_PIN = 0 [10:15:24]*** Brake cut motor [10:15:25]Read from MH i2c: 01 [10:15:25]MH_I2C_Read... [10:15:25]*** Stop cut motor [10:15:25]*** Cut end [10:15:25]Read from MH i2c: 01 07 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 FF 0F A3 [10:15:25]process_action x_report done [10:15:25]requested_data is exist [10:15:25]produce_requested_data [10:15:25]requested_item fd.num is exist - process it [10:15:25]SAM_PROTO_GetFieldsCounters [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 13 00 00 [10:15:25]Write to MH i2c: E2 08 00 8F 00 80 13 00 00 00 00 00 00 0B [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 62 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 62 00 8F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 82 [10:15: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 8D 97 01 00 0E 04 04 00 64 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 [10:15:25]wFMCommunicate OK [10:15:25]SAM_PROTO_GetFieldsCounters done [10:15:25]requested_item shift.num is exist - process it [10:15:25]requested_item shift.opened is exist - process it [10:15:25]req_shift_opened [10:15:25]FM_GetShiftState [10:15:25]SAM_PROTO_GetShiftState [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 13 01 00 [10:15:25]Write to MH i2c: E2 08 00 90 00 80 13 01 00 00 00 00 00 0D [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 90 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FF [10:15:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:15:25]wFMCommunicate OK [10:15:25]SAM_PROTO_GetShiftState done [10:15:25]FM_GetShiftState done [10:15:25]req_shift_opened done [10:15:25]requested_item shift.open_date is exist - process it [10:15:25]req_shift_open_date [10:15:25]req_shift_open_date done [10:15:25]produce_requested_data done [10:15:25]produce_requested_data return {"fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:15:25]process_action_free x_report [10:15:25]json_value_free [10:15:25]json_value_free done [10:15:25]process_json_proto returns [10:15:25]Send response to host [10:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:15:25]free response buf [10:15:25]execute_script done [10:15:25]execute_script returns [10:15:25]free content buf [10:15:25]Sock 7.Close socket [10:15:25]Sock 7.Thread stoped [10:15:25]accept exits with 9 [10:15:25]New connection [10:15:25]New thread 3066592612 created [10:15:25]Thread 3066449252 joined [10:15:25]Waiting for new connection... [10:15:25] Sock 9.Parse request [10:15:25]Sock 9.Check first char [10:15:25]Sock 9.First char is OK [10:15:25]request: POST /json_proto HTTP/1.0 [10:15:25]Method: POST [10:15:25]URL: /json_proto [10:15:25]Method is POST - this is cgi request [10:15:25]url: /json_proto [10:15:25]query_string will be loaded in cgi processing [10:15:25]execute_cgi json_proto POST (null) [10:15:25]execute_cgi path=json_proto method=POST [10:15:25]POST find Content-Length [10:15:25]Host: 172.17.38.133:8080 [10:15:25]Content-Length: 1197 [10:15:25]Content-Type: application/json [10:15:25] [10:15:25]POST finish read [10:15:25]Found Content-Length = 1197 [10:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673841\u000A22.06.2024 09:52\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\u000A3586498\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:25]execute_script... [10:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673841\u000A22.06.2024 09:52\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\u000A3586498\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:25]POST & json_proto [10:15:25]process_json_proto [10:15:25]json parsed OK: [10:15:25]protocol is kg_v1.0 [10:15:25]action value=print_text [10:15:25]process_action print_text [10:15:25]cmd_print_text [10:15:25]ExternCall_PrintAddStr [10:15:25]wPrintStart [10:15:25]Write to MH i2c: 01 00 00 91 00 91 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: 01 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: 01 07 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: 01 07 00 91 00 00 00 00 00 00 FF 0F A6 [10:15:25]RasterBufferAndPrint [10:15:25]line *****ТОВАРНЫЙ ЧЕК***** [10:15:25]line АЗС 120 [10:15:25]line Партнер нефть [10:15:25]line 02508201610067 [10:15:25]line Кассир : Байбугуева Г. [10:15:25]line Счет N : (1)673841 [10:15:25]line 22.06.2024 09:52 [10:15:25]line ПРОДАЖА [10:15:25]line ТРК (МРК, ГНК): 42 [10:15:25]line Вид ГСМ : 2710124130 [10:15:25]line Аи-92-К-5 [10:15:25]line 20.000 x 66.40 [10:15:25]line ИТОГ: 1328.00 [10:15:25]line Тип оплаты: Талоны: Партнер нефть [10:15:25]line 3586498 [10:15:25]line ______________________ [10:15:25]line (подпись) [10:15:25]written 0, free lines is 4095 [10:15:26]Write to MH i2c: 01 00 00 A5 00 A5 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 07 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 18 0E D2 [10:15:26]RasterBufferAndPrint [10:15:26]line [10:15:26]line [10:15:26]line [10:15:26]line [10:15:26]line [10:15:26]written 0, free lines is 3632 [10:15:26]MH_Cut [10:15:26]Write to MH i2c: D1 01 00 AC 00 01 7E [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: D1 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: D1 01 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: D1 01 00 AC 00 00 7D [10:15:26]Write to MH i2c: 01 00 00 AD 00 AD [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]OFD Sender: No OFD packet to send [10:15:26]*** Cut start [10:15:26]*** Partial cut [10:15:26]*** CUTSNS_PIN = 1 [10:15:26]*** CUTSNS_PIN = 0 [10:15:26]*** Brake cut motor [10:15:27]Read from MH i2c: 01 [10:15:27]MH_I2C_Read... [10:15:27]*** Stop cut motor [10:15:27]*** Cut end [10:15:27]Read from MH i2c: 01 07 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [10:15:27]process_action print_text done [10:15:27]requested_data is exist [10:15:27]produce_requested_data [10:15:27]requested_item fm.sn is exist - process it [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 11 00 00 [10:15:27]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [10:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:27]wFMCommunicate OK [10:15:27]requested_item fd.num is exist - process it [10:15:27]SAM_PROTO_GetFieldsCounters [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 13 00 00 [10:15:27]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 62 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A2 [10:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [10:15:27]wFMCommunicate OK [10:15:27]SAM_PROTO_GetFieldsCounters done [10:15:27]requested_item shift.num is exist - process it [10:15:27]requested_item shift.opened is exist - process it [10:15:27]req_shift_opened [10:15:27]FM_GetShiftState [10:15:27]SAM_PROTO_GetShiftState [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 13 01 00 [10:15:27]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0E 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 1F [10:15:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:15:27]wFMCommunicate OK [10:15:27]SAM_PROTO_GetShiftState done [10:15:27]FM_GetShiftState done [10:15:27]req_shift_opened done [10:15:27]requested_item shift.open_date is exist - process it [10:15:27]req_shift_open_date [10:15:27]req_shift_open_date done [10:15:27]produce_requested_data done [10:15:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:15:27]process_action_free print_text [10:15:27]json_value_free [10:15:27]json_value_free done [10:15:27]process_json_proto returns [10:15:27]Send response to host [10:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:15:27]free response buf [10:15:27]execute_script done [10:15:27]execute_script returns [10:15:27]free content buf [10:15:27]Sock 9.Close socket [10:15:27]Sock 9.Thread stoped [10:15:28]accept exits with 7 [10:15:28]New connection [10:15:28]New thread 3066449252 created [10:15:28]Thread 3066592612 joined [10:15:28]Waiting for new connection... [10:15:28] Sock 7.Parse request [10:15:28]Sock 7.Check first char [10:15:28]Sock 7.First char is OK [10:15:28]request: POST /json_proto HTTP/1.0 [10:15:28]Method: POST [10:15:28]URL: /json_proto [10:15:28]Method is POST - this is cgi request [10:15:28]url: /json_proto [10:15:28]query_string will be loaded in cgi processing [10:15:28]execute_cgi json_proto POST (null) [10:15:28]execute_cgi path=json_proto method=POST [10:15:28]POST find Content-Length [10:15:28]Host: 172.17.38.133:8080 [10:15:28]Content-Length: 1205 [10:15:28]Content-Type: application/json [10:15:28] [10:15:28]POST finish read [10:15:28]Found Content-Length = 1205 [10:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673842\u000A22.06.2024 09:52\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3543781;3586499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:28]execute_script... [10:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673842\u000A22.06.2024 09:52\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3543781;3586499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:28]POST & json_proto [10:15:28]process_json_proto [10:15:28]json parsed OK: [10:15:28]protocol is kg_v1.0 [10:15:28]action value=print_text [10:15:28]process_action print_text [10:15:28]cmd_print_text [10:15:28]ExternCall_PrintAddStr [10:15:28]wPrintStart [10:15:28]Write to MH i2c: 01 00 00 B1 00 B1 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [10:15:28]RasterBufferAndPrint [10:15:28]line *****ТОВАРНЫЙ ЧЕК***** [10:15:28]line АЗС 120 [10:15:28]line Партнер нефть [10:15:28]line 02508201610067 [10:15:28]line Кассир : Байбугуева Г. [10:15:28]line Счет N : (1)673842 [10:15:28]line 22.06.2024 09:52 [10:15:28]line ПРОДАЖА [10:15:28]line ТРК (МРК, ГНК): 32 [10:15:28]line Вид ГСМ : 2710124130 [10:15:28]line Аи-92-К-5 [10:15:28]line 30.000 x 66.40 [10:15:28]line ИТОГ: 1992.00 [10:15:28]line Тип оплаты: Талоны: Партнер нефть [10:15:28]line 3543781;3586499 [10:15:28]line ______________________ [10:15:28]line (подпись) [10:15:28]written 0, free lines is 4095 [10:15:28]Write to MH i2c: 01 00 00 C5 00 C5 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 1D 0E F7 [10:15:28]RasterBufferAndPrint [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]line [10:15:28]written 0, free lines is 3636 [10:15:28]MH_Cut [10:15:28]Write to MH i2c: D1 01 00 CC 00 01 9E [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: D1 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: D1 01 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: D1 01 00 CC 00 00 9D [10:15:28]Write to MH i2c: 01 00 00 CD 00 CD [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:29]*** Cut start [10:15:29]*** Partial cut [10:15:29]*** CUTSNS_PIN = 1 [10:15:29]*** CUTSNS_PIN = 0 [10:15:29]*** Brake cut motor [10:15:29]Read from MH i2c: 01 [10:15:29]MH_I2C_Read... [10:15:29]*** Stop cut motor [10:15:29]*** Cut end [10:15:29]Read from MH i2c: 01 07 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 FF 0F E2 [10:15:29]process_action print_text done [10:15:29]requested_data is exist [10:15:29]produce_requested_data [10:15:29]requested_item fm.sn is exist - process it [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 11 00 00 [10:15:29]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 17 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [10:15: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:15:29]wFMCommunicate OK [10:15:29]requested_item fd.num is exist - process it [10:15:29]SAM_PROTO_GetFieldsCounters [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 13 00 00 [10:15:29]Write to MH i2c: E2 08 00 CF 00 80 13 00 00 00 00 00 00 4B [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 62 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 62 00 CF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C2 [10:15: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 8D 97 01 00 0E 04 04 00 64 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 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_GetFieldsCounters done [10:15:30]requested_item shift.num is exist - process it [10:15:30]requested_item shift.opened is exist - process it [10:15:30]req_shift_opened [10:15:30]FM_GetShiftState [10:15:30]SAM_PROTO_GetShiftState [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 13 01 00 [10:15:30]Write to MH i2c: E2 08 00 D0 00 80 13 01 00 00 00 00 00 4D [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0E 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0E 00 D0 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3F [10:15:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_GetShiftState done [10:15:30]FM_GetShiftState done [10:15:30]req_shift_opened done [10:15:30]requested_item shift.open_date is exist - process it [10:15:30]req_shift_open_date [10:15:30]req_shift_open_date done [10:15:30]produce_requested_data done [10:15:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:15:30]process_action_free print_text [10:15:30]json_value_free [10:15:30]json_value_free done [10:15:30]process_json_proto returns [10:15:30]Send response to host [10:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:15:30]free response buf [10:15:30]execute_script done [10:15:30]execute_script returns [10:15:30]free content buf [10:15:30]Sock 7.Close socket [10:15:30]Sock 7.Thread stoped [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:15]accept exits with 10 [10:16:15]New connection [10:16:15]New thread 3066592612 created [10:16:15]Thread 3066449252 joined [10:16:15]Waiting for new connection... [10:16:15] Sock 10.Parse request [10:16:15]Sock 10.Check first char [10:16:15]Sock 10.First char is OK [10:16:15]request: POST /json_proto HTTP/1.0 [10:16:15]Method: POST [10:16:15]URL: /json_proto [10:16:15]Method is POST - this is cgi request [10:16:15]url: /json_proto [10:16:15]query_string will be loaded in cgi processing [10:16:15]execute_cgi json_proto POST (null) [10:16:15]execute_cgi path=json_proto method=POST [10:16:15]POST find Content-Length [10:16:15]Host: 172.17.38.133:8080 [10:16:15]Content-Length: 1206 [10:16:15]Content-Type: application/json [10:16:15] [10:16:15]POST finish read [10:16:15]Found Content-Length = 1206 [10:16: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673843\u000A22.06.2024 09: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 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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:15]execute_script... [10:16: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673843\u000A22.06.2024 09: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 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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:15]POST & json_proto [10:16:15]process_json_proto [10:16:15]json parsed OK: [10:16:15]protocol is kg_v1.0 [10:16:15]action value=print_text [10:16:15]process_action print_text [10:16:15]cmd_print_text [10:16:15]ExternCall_PrintAddStr [10:16:15]wPrintStart [10:16:15]Write to MH i2c: 01 00 00 D1 00 D1 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [10:16:15]RasterBufferAndPrint [10:16:15]line *****ТОВАРНЫЙ ЧЕК***** [10:16:15]line АЗС 120 [10:16:15]line Партнер нефть [10:16:15]line 02508201610067 [10:16:15]line Кассир : Байбугуева Г. [10:16:15]line Счет N : (1)673843 [10:16:15]line 22.06.2024 09:53 [10:16:15]line ПРОДАЖА [10:16:15]line ТРК (МРК, ГНК): 42 [10:16:15]line Вид ГСМ : 2710124130 [10:16:15]line Аи-92-К-5 [10:16:15]line 10.000 x 66.40 [10:16:15]line ИТОГ: 664.00 [10:16:15]line Тип оплаты: Талоны: Топливная Карта [10:16:15]line 00562 [10:16:15]line ______________________ [10:16:15]line (подпись) [10:16:15]written 0, free lines is 4095 [10:16:15]Write to MH i2c: 01 00 00 E5 00 E5 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 12 0E 0C [10:16:15]RasterBufferAndPrint [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]written 0, free lines is 3604 [10:16:15]MH_Cut [10:16:15]Write to MH i2c: D1 01 00 EC 00 01 BE [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 01 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 01 00 EC 00 00 BD [10:16:15]Write to MH i2c: 01 00 00 ED 00 ED [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]*** Cut start [10:16:15]*** Partial cut [10:16:15]*** CUTSNS_PIN = 1 [10:16:15]*** CUTSNS_PIN = 0 [10:16:16]*** Brake cut motor [10:16:16]Read from MH i2c: 01 [10:16:16]MH_I2C_Read... [10:16:16]*** Stop cut motor [10:16:16]*** Cut end [10:16:16]Read from MH i2c: 01 07 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [10:16:16]process_action print_text done [10:16:16]requested_data is exist [10:16:16]produce_requested_data [10:16:16]requested_item fm.sn is exist - process it [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 11 00 00 [10:16:16]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [10:16: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:16:16]wFMCommunicate OK [10:16:16]requested_item fd.num is exist - process it [10:16:16]SAM_PROTO_GetFieldsCounters [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 13 00 00 [10:16:16]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 62 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E2 [10:16: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 97 01 00 0E 04 04 00 64 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 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_GetFieldsCounters done [10:16:16]requested_item shift.num is exist - process it [10:16:16]requested_item shift.opened is exist - process it [10:16:16]req_shift_opened [10:16:16]FM_GetShiftState [10:16:16]SAM_PROTO_GetShiftState [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 13 01 00 [10:16:16]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0E 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5F [10:16:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_GetShiftState done [10:16:16]FM_GetShiftState done [10:16:16]req_shift_opened done [10:16:16]requested_item shift.open_date is exist - process it [10:16:16]req_shift_open_date [10:16:16]req_shift_open_date done [10:16:16]produce_requested_data done [10:16:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:16:16]process_action_free print_text [10:16:16]json_value_free [10:16:16]json_value_free done [10:16:16]process_json_proto returns [10:16:16]Send response to host [10:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:16:16]free response buf [10:16:16]execute_script done [10:16:16]execute_script returns [10:16:16]free content buf [10:16:16]Sock 10.Close socket [10:16:16]Sock 10.Thread stoped [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:42]accept exits with 7 [10:16:42]New connection [10:16:42]New thread 3066449252 created [10:16:42]Thread 3066592612 joined [10:16:42]Waiting for new connection... [10:16:42] Sock 7.Parse request [10:16:42]Sock 7.Check first char [10:16:42]Sock 7.First char is OK [10:16:42]request: POST /json_proto HTTP/1.0 [10:16:42]Method: POST [10:16:42]URL: /json_proto [10:16:42]Method is POST - this is cgi request [10:16:42]url: /json_proto [10:16:42]query_string will be loaded in cgi processing [10:16:42]execute_cgi json_proto POST (null) [10:16:42]execute_cgi path=json_proto method=POST [10:16:42]POST find Content-Length [10:16:42]Host: 172.17.38.133:8080 [10:16:42]Content-Length: 1196 [10:16:42]Content-Type: application/json [10:16:42] [10:16:42]POST finish read [10:16:42]Found Content-Length = 1196 [10:16: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673844\u000A22.06.2024 09:53\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\u000A3543776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:42]execute_script... [10:16: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673844\u000A22.06.2024 09:53\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\u000A3543776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:42]POST & json_proto [10:16:42]process_json_proto [10:16:42]json parsed OK: [10:16:42]protocol is kg_v1.0 [10:16:42]action value=print_text [10:16:42]process_action print_text [10:16:42]cmd_print_text [10:16:42]ExternCall_PrintAddStr [10:16:42]wPrintStart [10:16:42]Write to MH i2c: 01 00 00 F1 00 F1 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [10:16:42]RasterBufferAndPrint [10:16:42]line *****ТОВАРНЫЙ ЧЕК***** [10:16:42]line АЗС 120 [10:16:42]line Партнер нефть [10:16:42]line 02508201610067 [10:16:42]line Кассир : Байбугуева Г. [10:16:42]line Счет N : (1)673844 [10:16:42]line 22.06.2024 09:53 [10:16:42]line ПРОДАЖА [10:16:42]line ТРК (МРК, ГНК): 32 [10:16:42]line Вид ГСМ : 2710124130 [10:16:42]line Аи-92-К-5 [10:16:42]line 10.000 x 66.40 [10:16:42]line ИТОГ: 664.00 [10:16:42]line Тип оплаты: Талоны: Партнер нефть [10:16:42]line 3543776 [10:16:42]line ______________________ [10:16:42]line (подпись) [10:16:42]written 0, free lines is 4095 [10:16:42]Write to MH i2c: 01 00 00 05 01 06 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 12 0E 2D [10:16:42]RasterBufferAndPrint [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]written 0, free lines is 3604 [10:16:42]MH_Cut [10:16:42]Write to MH i2c: D1 01 00 0C 01 01 DF [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 0C 01 00 DE [10:16:42]Write to MH i2c: 01 00 00 0D 01 0E [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:43]*** Cut start [10:16:43]*** Partial cut [10:16:43]*** CUTSNS_PIN = 1 [10:16:43]*** CUTSNS_PIN = 0 [10:16:43]*** Brake cut motor [10:16:43]Read from MH i2c: 01 [10:16:43]MH_I2C_Read... [10:16:43]*** Stop cut motor [10:16:43]*** Cut end [10:16:43]Read from MH i2c: 01 07 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [10:16:43]process_action print_text done [10:16:43]requested_data is exist [10:16:43]produce_requested_data [10:16:43]requested_item fm.sn is exist - process it [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 11 00 00 [10:16:43]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 17 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 17 00 0E 01 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:16: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:16:43]wFMCommunicate OK [10:16:43]requested_item fd.num is exist - process it [10:16:43]SAM_PROTO_GetFieldsCounters [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 13 00 00 [10:16:43]Write to MH i2c: E2 08 00 0F 01 80 13 00 00 00 00 00 00 8C [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 62 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 62 00 0F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 03 [10:16: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 8D 97 01 00 0E 04 04 00 64 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 [10:16:43]wFMCommunicate OK [10:16:43]SAM_PROTO_GetFieldsCounters done [10:16:43]requested_item shift.num is exist - process it [10:16:43]requested_item shift.opened is exist - process it [10:16:43]req_shift_opened [10:16:43]FM_GetShiftState [10:16:43]SAM_PROTO_GetShiftState [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 13 01 00 [10:16:43]Write to MH i2c: E2 08 00 10 01 80 13 01 00 00 00 00 00 8E [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 0E 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 0E 00 10 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 80 [10:16:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:16:43]wFMCommunicate OK [10:16:43]SAM_PROTO_GetShiftState done [10:16:43]FM_GetShiftState done [10:16:43]req_shift_opened done [10:16:43]requested_item shift.open_date is exist - process it [10:16:43]req_shift_open_date [10:16:43]req_shift_open_date done [10:16:43]produce_requested_data done [10:16:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:16:43]process_action_free print_text [10:16:43]json_value_free [10:16:43]json_value_free done [10:16:43]process_json_proto returns [10:16:43]Send response to host [10:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:16:43]free response buf [10:16:43]execute_script done [10:16:43]execute_script returns [10:16:43]free content buf [10:16:43]Sock 7.Close socket [10:16:43]Sock 7.Thread stoped [10:16:46]OFD Sender: No OFD packet to send [10:16:51]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]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:09]accept exits with 9 [10:19:09]New connection [10:19:09]New thread 3066592612 created [10:19:09]Thread 3066449252 joined [10:19:09]Waiting for new connection... [10:19:09] Sock 9.Parse request [10:19:09]Sock 9.Check first char [10:19:09]Sock 9.First char is OK [10:19:09]request: POST /json_proto HTTP/1.0 [10:19:09]Method: POST [10:19:09]URL: /json_proto [10:19:09]Method is POST - this is cgi request [10:19:09]url: /json_proto [10:19:09]query_string will be loaded in cgi processing [10:19:09]execute_cgi json_proto POST (null) [10:19:09]execute_cgi path=json_proto method=POST [10:19:09]POST find Content-Length [10:19:09]Host: 172.17.38.133:8080 [10:19:09]Content-Length: 1202 [10:19:09]Content-Type: application/json [10:19:09] [10:19:09]POST finish read [10:19:09]Found Content-Length = 1202 [10:19: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673845\u000A22.06.2024 09:56\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 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\u000A3787949\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]execute_script... [10:19: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673845\u000A22.06.2024 09:56\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 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\u000A3787949\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]POST & json_proto [10:19:09]process_json_proto [10:19:09]json parsed OK: [10:19:09]protocol is kg_v1.0 [10:19:09]action value=print_text [10:19:09]process_action print_text [10:19:09]cmd_print_text [10:19:09]ExternCall_PrintAddStr [10:19:09]wPrintStart [10:19:09]Write to MH i2c: 01 00 00 11 01 12 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [10:19:09]RasterBufferAndPrint [10:19:09]line *****ТОВАРНЫЙ ЧЕК***** [10:19:09]line АЗС 120 [10:19:09]line Партнер нефть [10:19:09]line 02508201610067 [10:19:09]line Кассир : Байбугуева Г. [10:19:09]line Счет N : (1)673845 [10:19:09]line 22.06.2024 09:56 [10:19:09]line ПРОДАЖА [10:19:09]line ТРК (МРК, ГНК): 21 [10:19:09]line Вид ГСМ : 2710194210 [10:19:09]line ДТ(л)-К-5 [10:19:09]line 20.000 x 72.90 [10:19:09]line ИТОГ: 1458.00 [10:19:09]line Тип оплаты: Талоны: Партнер нефть [10:19:09]line 3787949 [10:19:09]line ______________________ [10:19:09]line (подпись) [10:19:09]written 0, free lines is 4095 [10:19:09]Write to MH i2c: 01 00 00 25 01 26 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 12 0E 4D [10:19:09]RasterBufferAndPrint [10:19:09]line [10:19:09]line [10:19:09]line [10:19:09]line [10:19:09]line [10:19:09]written 0, free lines is 3604 [10:19:09]MH_Cut [10:19:09]Write to MH i2c: D1 01 00 2C 01 01 FF [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: D1 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: D1 01 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: D1 01 00 2C 01 00 FE [10:19:09]Write to MH i2c: 01 00 00 2D 01 2E [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:10]*** Cut start [10:19:10]*** Partial cut [10:19:10]*** CUTSNS_PIN = 1 [10:19:10]*** CUTSNS_PIN = 0 [10:19:10]*** Brake cut motor [10:19:11]Read from MH i2c: 01 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 [10:19:11]MH_I2C_Read... [10:19:11]*** Stop cut motor [10:19:11]*** Cut end [10:19:11]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [10:19:11]process_action print_text done [10:19:11]requested_data is exist [10:19:11]produce_requested_data [10:19:11]requested_item fm.sn is exist - process it [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 11 00 00 [10:19:11]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [10:19: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:19:11]wFMCommunicate OK [10:19:11]requested_item fd.num is exist - process it [10:19:11]SAM_PROTO_GetFieldsCounters [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 00 00 [10:19:11]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 23 [10:19: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 8D 97 01 00 0E 04 04 00 64 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 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetFieldsCounters done [10:19:11]requested_item shift.num is exist - process it [10:19:11]requested_item shift.opened is exist - process it [10:19:11]req_shift_opened [10:19:11]FM_GetShiftState [10:19:11]SAM_PROTO_GetShiftState [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 01 00 [10:19:11]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A0 [10:19:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetShiftState done [10:19:11]FM_GetShiftState done [10:19:11]req_shift_opened done [10:19:11]requested_item shift.open_date is exist - process it [10:19:11]req_shift_open_date [10:19:11]req_shift_open_date done [10:19:11]produce_requested_data done [10:19:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:19:11]process_action_free print_text [10:19:11]json_value_free [10:19:11]json_value_free done [10:19:11]process_json_proto returns [10:19:11]Send response to host [10:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104333,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:19:11]free response buf [10:19:11]execute_script done [10:19:11]execute_script returns [10:19:11]free content buf [10:19:11]Sock 9.Close socket [10:19:11]Sock 9.Thread stoped [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:48]accept exits with 7 [10:25:48]New connection [10:25:48]New thread 3066449252 created [10:25:48]Thread 3066592612 joined [10:25:48]Waiting for new connection... [10:25:48] Sock 7.Parse request [10:25:48]Sock 7.Check first char [10:25:48]Sock 7.First char is OK [10:25:48]request: POST /json_proto HTTP/1.0 [10:25:48]Method: POST [10:25:48]URL: /json_proto [10:25:48]Method is POST - this is cgi request [10:25:48]url: /json_proto [10:25:48]query_string will be loaded in cgi processing [10:25:48]execute_cgi json_proto POST (null) [10:25:48]execute_cgi path=json_proto method=POST [10:25:48]POST find Content-Length [10:25:48]Host: 172.17.38.133:8080 [10:25:48]Content-Length: 687 [10:25:48]Content-Type: application/json [10:25:48] [10:25:48]POST finish read [10:25:48]Found Content-Length = 687 [10:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673846", "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" ] } } [10:25:48]execute_script... [10:25: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)673846", "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" ] } } [10:25:48]POST & json_proto [10:25:48]process_json_proto [10:25:48]json parsed OK: [10:25:48]protocol is kg_v1.0 [10:25:48]action value=close_receipt [10:25:48]process_action close_receipt [10:25:48]cmd_close_receipt [10:25:48]MH_GetDate [10:25:48]Write to MH i2c: F0 00 00 31 01 21 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: F0 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: F0 09 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: F0 09 00 31 01 00 AC A6 76 66 BD 8F 7C 64 84 [10:25:48]GetLastDocTimeStamp 1719051315 [10:25:48]current date 1719051948 [10:25:48]FM_GetShiftState [10:25:48]SAM_PROTO_GetShiftState [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 13 01 00 [10:25:48]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0E 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A2 [10:25:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:25:48]wFMCommunicate OK [10:25:48]SAM_PROTO_GetShiftState done [10:25:48]FM_GetShiftState done [10:25:48]opened in 1719016176 [10:25:48]opened+sec_in_day 1719102576 [10:25:48]quantity*price = 100018 [10:25:48]sum+1 = 100020 [10:25:48]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 СНО: Общий режим Чек 67 22.06.2024 10:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104334 ФПД: 67061500401451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104334&fm=67061500401451&tin=02508201610067®Number=0000000000092785&sum=100000 [10:25:49]StoreToDocumentArchive [10:25:49]shift 356 fd 104334 [10:25:49]save to /storage/0356/doc_00104334 [10:25:49]save last doc name /storage/0356/doc_00104334 to /storage/kkm_last_doc_name [10:25:49]save OK [10:25:49]Clear old archive folders... [10:25:49]Remove dir /storage/0266 [10:25:49]opendir ok [10:25:49]file . [10:25:49]file .. [10:25:49]file doc_1719051323 [10:25:49]remove file /storage/0266/doc_1719051323 [10:25:49]remove dir /storage/0266 [10:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:25:49]tlvbuf is 00FDE860 [10:25:49]SAM_PROTO_ClearQueue [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 09 00 00 [10:25:49]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [10:25:49]RAPDU: 90 00 [10:25:49]wFMCommunicate OK [10:25:49]SAM_PROTO_ClearQueue done [10:25:49]KKMCreateOFDPacket [10:25:49]OFDProtocolAddRootSTLVToBuf [10:25:49]FM_MakeSignedData [10:25:49]FM_MakeSignedData [10:25:49]SAM_PROTO_SignData [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 0D 01 02 [10:25:49]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [10:25:49]RAPDU: 90 00 [10:25:49]wFMCommunicate OK [10:25:49]wFMCommunicate request_size=255 [10:25:49]MH_SAM_APDU [10:25: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 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 43 00 00 00 F4 03 04 00 AC A6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [10:25:49]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 43 00 00 00 F4 03 04 00 AC A6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 0A [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [10:25:49]RAPDU: 90 00 [10:25:49]wFMCommunicate OK [10:25:49]wFMCommunicate request_size=11 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 0D 02 02 06 3C FD F8 E8 D7 2B [10:25:49]Write to MH i2c: E2 0E 00 42 01 80 0D 02 02 06 00 3C FD F8 E8 D7 2B 00 00 E4 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [10:25:49]RAPDU: 90 00 [10:25:49]wFMCommunicate OK [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 0D 03 02 [10:25:49]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 0B 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 0B 00 43 01 00 84 5A 55 55 0D C2 05 77 90 00 93 [10:25:49]RAPDU: 84 5A 55 55 0D C2 05 77 90 00 [10:25:49]wFMCommunicate OK [10:25:49]SAM_PROTO_SignData done [10:25:49]FM_MakeSignedData done [10:25:49]CreateOFDProtocolMessage [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 11 00 00 [10:25:49]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 17 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [10: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 [10:25:49]wFMCommunicate OK [10:25:49]CreateOFDProtocolMessage done [10:25:49]OFDSenderStorePacket 104334 [10:25:49]StoreOFDPacket docnum=104334 [10:25: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 10 01 00 00 53 4F 08 01 9B 10 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 43 00 00 00 F4 03 04 00 AC A6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3C FD F8 E8 D7 2B 84 5A 55 55 0D C2 05 77 [10:25:49]CheckFolder [10:25:49]dirname=/storage/ofd_packets [10:25:49]CheckFolder done [10:25:49]ProducePacketName [10:25:49]name=ofd_packets/00104334 [10:25:49]NVStorageSaveData ofd_packets/00104334 [10:25:49]File name is /storage/ofd_packets/00104334 [10:25:49]Write 302 bytes [10:25:49]NVStorageSaveData done [10:25:49]OFDSenderStorePacket done [10:25:49]KKMCreateOFDPacket done [10:25:49]NVStorageSaveData kkm_last_timestamp [10:25:49]File name is /storage/kkm_last_timestamp [10:25:49]Write 4 bytes [10:25:49]NVStorageSaveData done [10:25:49]ExternCall_PrintAddStr [10:25:49]wPrintStart [10:25:49]Write to MH i2c: 01 00 00 45 01 46 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 07 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [10:25:49]RasterBufferAndPrint [10:25:49]line Счет N : (1)673846 [10:25:49]line ИНН: 02508201610067 [10:25:49]line Контрольно-Кассовый Чек [10:25:49]line ПРОДАЖА [10:25:49]line ТРК (МРК, ГНК) : 21 [10:25:49]line Товар: 2710194210 [10:25:49]line ДТ(л)-К-5 [10:25:49]line 13.720 * 72.90 [10:25:49]line = 1000.19 [10:25:49]line НДС 12% НСП 1% [10:25:49]line > о реализуемом товаре [10:25:49]line ОКРУГЛЕНИЕ: -0.19 [10:25:49]line ИТОГО: 1000.00 [10:25:49]line Внесено: 1000.00 [10:25:49]line СДАЧА: 0.00 [10:25:49]line НСП 1% : 8.85 [10:25:49]line НДС 12% : 106.21 [10:25:49]line Наличными: 1000.00 [10:25:49]line Безнал.: 0.00 [10:25:49]line Место: АЗС № 120 "Партнер Нефть" [10:25:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:25:49]line СНО: Общий режим [10:25:49]line Чек 67 22.06.2024 10:25 [10:25:49]line Смена: 356 ФФД: 1.0 [10:25:49]line ЗНМ: 0300000164 [10:25:49]line РНМ: 0000000000092785 [10:25:49]line Версия ККМ: 001 [10:25:49]line ФМ: 0000000000875093 [10:25:49]line ФД: 104334 [10:25:49]line ФПД: 67061500401451 [10:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104334&fm=67061500401451&tin=02508201610067®Number=0000000000092785&sum=100000 [10:25:50]OFD Sender: Processing packet 104334 [packets to send 17, broken 16] [10:25:50]ProducePacketName [10:25:50]name=ofd_packets/00104334 [10:25:50]OFD Sender: To server: pG, [10:25:50]CommunicateWithHost lk.salyk.kg:30040 [10:25:50]ConnectInit lk.salyk.kg [10:25:50]written 0, free lines is 4095 [10:25:50]Connected sock=10 [10:25: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 53 4F 08 01 9B 10 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 43 00 00 00 F4 03 04 00 AC A6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3C FD F8 E8 D7 2B 84 5A 55 55 0D C2 05 77 [10:25: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 DD 69 47 00 7D 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 97 01 00 F4 03 04 00 2C 4D 76 66 B6 04 01 00 00 21 C7 2A 90 D5 6E 31 C2 [10:25:50]CommunicateWithHost err = 0 [10:25:50]CheckOFDResponse [10:25:50]1017 (14) - 77093643461234 [10:25:50]1041 (16) - 0000000000875093 [10:25:50]1040 (4) - 104334 [10:25:50]1012 (4) - 22.06.2024 04:03 [10:25:50]1206 (1) - 0 [10:25:50]OFD Sender: Remove packet 104334 [10:25:50]ProducePacketName [10:25:50]name=ofd_packets/00104334 [10:25:50]NVStorageDeleteData [10:25:50]Write to MH i2c: 01 00 00 70 01 71 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 CF 0C 53 [10:25:50]RasterBufferAndPrint [10:25:50]line [10:25:50]line [10:25:50]line [10:25:50]line [10:25:50]line [10:25:50]written 0, free lines is 3285 [10:25:50]MH_Cut [10:25:50]Write to MH i2c: D1 01 00 77 01 01 4A [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D1 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D1 01 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D1 01 00 77 01 00 49 [10:25:50]Write to MH i2c: 01 00 00 78 01 79 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:51]OFD Sender: No OFD packet to send [10:25:51]*** Cut start [10:25:51]*** Partial cut [10:25:51]*** CUTSNS_PIN = 1 [10:25:51]*** CUTSNS_PIN = 0 [10:25:51]*** Brake cut motor [10:25:51]Read from MH i2c: 01 [10:25:51]MH_I2C_Read... [10:25:51]*** Stop cut motor [10:25:51]*** Cut end [10:25:51]Read from MH i2c: 01 07 00 [10:25:51]MH_I2C_Read... [10:25:51]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [10:25:51]process_action close_receipt done [10:25:51]requested_data is exist [10:25:51]produce_requested_data [10:25:51]requested_item fm.sn is exist - process it [10:25:51]wFMCommunicate request_size=4 [10:25:51]MH_SAM_APDU [10:25:51]CAPDU: 80 11 00 00 [10:25:51]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [10:25:51]Write i2c OK [10:25:51]MH_I2C_Read... [10:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:52]Read from MH i2c: E2 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 17 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [10:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:25:52]wFMCommunicate OK [10:25:52]requested_item fd.num is exist - process it [10:25:52]SAM_PROTO_GetFieldsCounters [10:25:52]wFMCommunicate request_size=4 [10:25:52]MH_SAM_APDU [10:25:52]CAPDU: 80 13 00 00 [10:25:52]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:52]Read from MH i2c: E2 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 62 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 72 [10:25: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 8E 97 01 00 0E 04 04 00 64 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 [10:25:52]wFMCommunicate OK [10:25:52]SAM_PROTO_GetFieldsCounters done [10:25:52]requested_item shift.num is exist - process it [10:25:52]requested_item shift.opened is exist - process it [10:25:52]req_shift_opened [10:25:52]FM_GetShiftState [10:25:52]SAM_PROTO_GetShiftState [10:25:52]wFMCommunicate request_size=4 [10:25:52]MH_SAM_APDU [10:25:52]CAPDU: 80 13 01 00 [10:25:52]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:52]Read from MH i2c: E2 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 0E 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 EB [10:25:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:25:52]wFMCommunicate OK [10:25:52]SAM_PROTO_GetShiftState done [10:25:52]FM_GetShiftState done [10:25:52]req_shift_opened done [10:25:52]requested_item shift.open_date is exist - process it [10:25:52]req_shift_open_date [10:25:52]req_shift_open_date done [10:25:52]produce_requested_data done [10:25:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104334,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:25:52]process_action_free close_receipt [10:25:52]json_value_free [10:25:52]json_value_free done [10:25:52]process_json_proto returns [10:25:52]Send response to host [10:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104334,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:25:52]free response buf [10:25:52]execute_script done [10:25:52]execute_script returns [10:25:52]free content buf [10:25:52]Sock 7.Close socket [10:25:52]Sock 7.Thread stoped [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:55]accept exits with 9 [10:27:55]New connection [10:27:55]New thread 3066592612 created [10:27:55]Thread 3066449252 joined [10:27:55]Waiting for new connection... [10:27:55] Sock 9.Parse request [10:27:55]Sock 9.Check first char [10:27:55]Sock 9.First char is OK [10:27:55]request: POST /json_proto HTTP/1.0 [10:27:55]Method: POST [10:27:55]URL: /json_proto [10:27:55]Method is POST - this is cgi request [10:27:55]url: /json_proto [10:27:55]query_string will be loaded in cgi processing [10:27:55]execute_cgi json_proto POST (null) [10:27:55]execute_cgi path=json_proto method=POST [10:27:55]POST find Content-Length [10:27:55]Host: 172.17.38.133:8080 [10:27:55]Content-Length: 678 [10:27:55]Content-Type: application/json [10:27:55] [10:27:55]POST finish read [10:27:55]Found Content-Length = 678 [10:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673847", "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" ] } } [10:27:55]execute_script... [10:27: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)673847", "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" ] } } [10:27:55]POST & json_proto [10:27:55]process_json_proto [10:27:55]json parsed OK: [10:27:55]protocol is kg_v1.0 [10:27:55]action value=close_receipt [10:27:55]process_action close_receipt [10:27:55]cmd_close_receipt [10:27:55]MH_GetDate [10:27:55]Write to MH i2c: F0 00 00 7C 01 6C [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 09 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 09 00 7C 01 00 2B A7 76 66 BD 8F 7C 64 4F [10:27:55]GetLastDocTimeStamp 1719051948 [10:27:55]current date 1719052075 [10:27:55]FM_GetShiftState [10:27:55]SAM_PROTO_GetShiftState [10:27:55]wFMCommunicate request_size=4 [10:27:55]MH_SAM_APDU [10:27:55]CAPDU: 80 13 01 00 [10:27:55]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:55]Read from MH i2c: E2 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 ED [10:27:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:27:55]wFMCommunicate OK [10:27:55]SAM_PROTO_GetShiftState done [10:27:55]FM_GetShiftState done [10:27:55]opened in 1719016176 [10:27:55]opened+sec_in_day 1719102576 [10:27:55]quantity*price = 90038 [10:27:55]sum+1 = 90039 [10:27:55]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 СНО: Общий режим Чек 68 22.06.2024 10:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104335 ФПД: 214628905749132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104335&fm=214628905749132&tin=02508201610067®Number=0000000000092785&sum=90000 [10:27:56]StoreToDocumentArchive [10:27:56]shift 356 fd 104335 [10:27:56]save to /storage/0356/doc_00104335 [10:27:56]save last doc name /storage/0356/doc_00104335 to /storage/kkm_last_doc_name [10:27:56]save OK [10:27:56]Clear old archive folders... [10:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:56]tlvbuf is 00FD4A10 [10:27:56]SAM_PROTO_ClearQueue [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 09 00 00 [10:27:56]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [10:27:56]RAPDU: 90 00 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_ClearQueue done [10:27:56]KKMCreateOFDPacket [10:27:56]OFDProtocolAddRootSTLVToBuf [10:27:56]FM_MakeSignedData [10:27:56]FM_MakeSignedData [10:27:56]SAM_PROTO_SignData [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 0D 01 02 [10:27:56]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [10:27:56]RAPDU: 90 00 [10:27:56]wFMCommunicate OK [10:27:56]wFMCommunicate request_size=255 [10:27:56]MH_SAM_APDU [10:27: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 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 44 00 00 00 F4 03 04 00 2B A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 [10:27:56]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 2B A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 00 00 20 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [10:27:56]RAPDU: 90 00 [10:27:56]wFMCommunicate OK [10:27:56]wFMCommunicate request_size=10 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 0D 02 02 05 34 2F AF 8A 8C [10:27:56]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 34 2F AF 8A 8C 00 00 3A [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [10:27:56]RAPDU: 90 00 [10:27:56]wFMCommunicate OK [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 0D 03 02 [10:27:56]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0B 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0B 00 8E 01 00 75 3F D5 1B 3A F3 C7 B7 90 00 5A [10:27:56]RAPDU: 75 3F D5 1B 3A F3 C7 B7 90 00 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_SignData done [10:27:56]FM_MakeSignedData done [10:27:56]CreateOFDProtocolMessage [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 11 00 00 [10:27:56]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 17 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [10:27: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:27:56]wFMCommunicate OK [10:27:56]CreateOFDProtocolMessage done [10:27:56]OFDSenderStorePacket 104335 [10:27:56]StoreOFDPacket docnum=104335 [10:27: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 83 91 07 01 C5 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 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 44 00 00 00 F4 03 04 00 2B A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 34 2F AF 8A 8C 75 3F D5 1B 3A F3 C7 B7 [10:27:56]CheckFolder [10:27:56]dirname=/storage/ofd_packets [10:27:56]CheckFolder done [10:27:56]ProducePacketName [10:27:56]name=ofd_packets/00104335 [10:27:56]NVStorageSaveData ofd_packets/00104335 [10:27:56]File name is /storage/ofd_packets/00104335 [10:27:56]Write 301 bytes [10:27:56]NVStorageSaveData done [10:27:56]OFDSenderStorePacket done [10:27:56]KKMCreateOFDPacket done [10:27:56]NVStorageSaveData kkm_last_timestamp [10:27:56]File name is /storage/kkm_last_timestamp [10:27:56]Write 4 bytes [10:27:56]NVStorageSaveData done [10:27:56]ExternCall_PrintAddStr [10:27:56]wPrintStart [10:27:56]Write to MH i2c: 01 00 00 90 01 91 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: 01 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: 01 07 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [10:27:56]RasterBufferAndPrint [10:27:56]line Счет N : (1)673847 [10:27:56]line ИНН: 02508201610067 [10:27:56]line Контрольно-Кассовый Чек [10:27:56]line ПРОДАЖА [10:27:56]line ТРК (МРК, ГНК) : 32 [10:27:56]line Товар: 2710124130 [10:27:56]line Аи-92-К-5 [10:27:56]line 13.560 * 66.40 [10:27:56]line = 900.38 [10:27:56]line НДС 12% НСП 1% [10:27:56]line > о реализуемом товаре [10:27:56]line ОКРУГЛЕНИЕ: -0.38 [10:27:56]line ИТОГО: 900.00 [10:27:56]line Внесено: 900.00 [10:27:56]line СДАЧА: 0.00 [10:27:56]line НСП 1% : 7.97 [10:27:56]line НДС 12% : 95.62 [10:27:56]line Наличными: 900.00 [10:27:56]line Безнал.: 0.00 [10:27:56]line Место: АЗС № 120 "Партнер Нефть" [10:27:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:27:56]line СНО: Общий режим [10:27:56]line Чек 68 22.06.2024 10:27 [10:27:56]line Смена: 356 ФФД: 1.0 [10:27:56]line ЗНМ: 0300000164 [10:27:56]line РНМ: 0000000000092785 [10:27:56]line Версия ККМ: 001 [10:27:56]line ФМ: 0000000000875093 [10:27:56]line ФД: 104335 [10:27:56]line ФПД: 214628905749132 [10:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104335&fm=214628905749132&tin=02508201610067®Number=0000000000092785&sum=90000 [10:27:57]OFD Sender: Processing packet 104335 [packets to send 17, broken 16] [10:27:57]ProducePacketName [10:27:57]name=ofd_packets/00104335 [10:27:57]OFD Sender: To server: pG, [10:27:57]CommunicateWithHost lk.salyk.kg:30040 [10:27:57]ConnectInit lk.salyk.kg [10:27:57]written 0, free lines is 4095 [10:27:57]Connected sock=10 [10:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 83 91 07 01 C5 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 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 44 00 00 00 F4 03 04 00 2B A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C3 34 2F AF 8A 8C 75 3F D5 1B 3A F3 C7 B7 [10:27: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 FF 00 47 00 CC 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 97 01 00 F4 03 04 00 AB 4D 76 66 B6 04 01 00 00 C2 3E 88 38 45 4C 76 35 [10:27:57]CommunicateWithHost err = 0 [10:27:57]CheckOFDResponse [10:27:57]1017 (14) - 77093643461234 [10:27:57]1041 (16) - 0000000000875093 [10:27:57]1040 (4) - 104335 [10:27:57]1012 (4) - 22.06.2024 04:06 [10:27:57]1206 (1) - 0 [10:27:57]OFD Sender: Remove packet 104335 [10:27:57]ProducePacketName [10:27:57]name=ofd_packets/00104335 [10:27:57]NVStorageDeleteData [10:27:57]Write to MH i2c: 01 00 00 BB 01 BC [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 07 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 D3 0C A2 [10:27:57]RasterBufferAndPrint [10:27:57]line [10:27:57]line [10:27:57]line [10:27:57]line [10:27:57]line [10:27:57]written 0, free lines is 3290 [10:27:57]MH_Cut [10:27:57]Write to MH i2c: D1 01 00 C2 01 01 95 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: D1 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: D1 01 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: D1 01 00 C2 01 00 94 [10:27:57]Write to MH i2c: 01 00 00 C3 01 C4 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:58]OFD Sender: No OFD packet to send [10:27:58]*** Cut start [10:27:58]*** Partial cut [10:27:58]*** CUTSNS_PIN = 1 [10:27:58]*** CUTSNS_PIN = 0 [10:27:58]*** Brake cut motor [10:27:58]Read from MH i2c: 01 [10:27:58]MH_I2C_Read... [10:27:58]*** Stop cut motor [10:27:58]*** Cut end [10:27:58]Read from MH i2c: 01 07 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [10:27:58]process_action close_receipt done [10:27:58]requested_data is exist [10:27:58]produce_requested_data [10:27:58]requested_item fm.sn is exist - process it [10:27:58]wFMCommunicate request_size=4 [10:27:58]MH_SAM_APDU [10:27:58]CAPDU: 80 11 00 00 [10:27:58]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 17 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [10:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:27:59]wFMCommunicate OK [10:27:59]requested_item fd.num is exist - process it [10:27:59]SAM_PROTO_GetFieldsCounters [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 13 00 00 [10:27:59]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 62 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C1 [10:27: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 8F 97 01 00 0E 04 04 00 64 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 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_GetFieldsCounters done [10:27:59]requested_item shift.num is exist - process it [10:27:59]requested_item shift.opened is exist - process it [10:27:59]req_shift_opened [10:27:59]FM_GetShiftState [10:27:59]SAM_PROTO_GetShiftState [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 13 01 00 [10:27:59]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 36 [10:27:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_GetShiftState done [10:27:59]FM_GetShiftState done [10:27:59]req_shift_opened done [10:27:59]requested_item shift.open_date is exist - process it [10:27:59]req_shift_open_date [10:27:59]req_shift_open_date done [10:27:59]produce_requested_data done [10:27:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:27:59]process_action_free close_receipt [10:27:59]json_value_free [10:27:59]json_value_free done [10:27:59]process_json_proto returns [10:27:59]Send response to host [10:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:27:59]free response buf [10:27:59]execute_script done [10:27:59]execute_script returns [10:27:59]free content buf [10:27:59]Sock 9.Close socket [10:27:59]Sock 9.Thread stoped [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:22]accept exits with 7 [10:28:22]New connection [10:28:22]New thread 3066449252 created [10:28:22]Thread 3066592612 joined [10:28:22]Waiting for new connection... [10:28:22] Sock 7.Parse request [10:28:22]Sock 7.Check first char [10:28:22]Sock 7.First char is OK [10:28:22]request: POST /json_proto HTTP/1.0 [10:28:22]Method: POST [10:28:22]URL: /json_proto [10:28:22]Method is POST - this is cgi request [10:28:22]url: /json_proto [10:28:22]query_string will be loaded in cgi processing [10:28:22]execute_cgi json_proto POST (null) [10:28:22]execute_cgi path=json_proto method=POST [10:28:22]POST find Content-Length [10:28:22]Host: 172.17.38.133:8080 [10:28:22]Content-Length: 1205 [10:28:22]Content-Type: application/json [10:28:22] [10:28:22]POST finish read [10:28:22]Found Content-Length = 1205 [10:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673848\u000A22.06.2024 10:05\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\u000A3543822;3543821\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:22]execute_script... [10:28:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673848\u000A22.06.2024 10:05\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\u000A3543822;3543821\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:22]POST & json_proto [10:28:22]process_json_proto [10:28:22]json parsed OK: [10:28:22]protocol is kg_v1.0 [10:28:22]action value=print_text [10:28:22]process_action print_text [10:28:22]cmd_print_text [10:28:22]ExternCall_PrintAddStr [10:28:22]wPrintStart [10:28:22]Write to MH i2c: 01 00 00 C7 01 C8 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 FF 0F DD [10:28:22]RasterBufferAndPrint [10:28:22]line *****ТОВАРНЫЙ ЧЕК***** [10:28:22]line АЗС 120 [10:28:22]line Партнер нефть [10:28:22]line 02508201610067 [10:28:22]line Кассир : Байбугуева Г. [10:28:22]line Счет N : (1)673848 [10:28:22]line 22.06.2024 10:05 [10:28:22]line ПРОДАЖА [10:28:22]line ТРК (МРК, ГНК): 42 [10:28:22]line Вид ГСМ : 2710124130 [10:28:22]line Аи-92-К-5 [10:28:22]line 20.000 x 66.40 [10:28:22]line ИТОГ: 1328.00 [10:28:22]line Тип оплаты: Талоны: Партнер нефть [10:28:22]line 3543822;3543821 [10:28:22]line ______________________ [10:28:22]line (подпись) [10:28:22]written 0, free lines is 4095 [10:28:22]Write to MH i2c: 01 00 00 DB 01 DC [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 18 0E 09 [10:28:22]RasterBufferAndPrint [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]written 0, free lines is 3610 [10:28:22]MH_Cut [10:28:22]Write to MH i2c: D1 01 00 E2 01 01 B5 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 E2 01 00 B4 [10:28:22]Write to MH i2c: 01 00 00 E3 01 E4 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:23]OFD Sender: No OFD packet to send [10:28:23]*** Cut start [10:28:23]*** Partial cut [10:28:23]*** CUTSNS_PIN = 1 [10:28:23]*** CUTSNS_PIN = 0 [10:28:23]*** Brake cut motor [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]*** Stop cut motor [10:28:23]*** Cut end [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 FF 0F F9 [10:28:23]process_action print_text done [10:28:23]requested_data is exist [10:28:23]produce_requested_data [10:28:23]requested_item fm.sn is exist - process it [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 11 00 00 [10:28:23]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [10:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:28:24]wFMCommunicate OK [10:28:24]requested_item fd.num is exist - process it [10:28:24]SAM_PROTO_GetFieldsCounters [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 00 00 [10:28:24]Write to MH i2c: E2 08 00 E5 01 80 13 00 00 00 00 00 00 62 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 E5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E1 [10:28: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 8F 97 01 00 0E 04 04 00 64 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 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetFieldsCounters done [10:28:24]requested_item shift.num is exist - process it [10:28:24]requested_item shift.opened is exist - process it [10:28:24]req_shift_opened [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 56 [10:28:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]req_shift_opened done [10:28:24]requested_item shift.open_date is exist - process it [10:28:24]req_shift_open_date [10:28:24]req_shift_open_date done [10:28:24]produce_requested_data done [10:28:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:28:24]process_action_free print_text [10:28:24]json_value_free [10:28:24]json_value_free done [10:28:24]process_json_proto returns [10:28:24]Send response to host [10:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:28:24]free response buf [10:28:24]execute_script done [10:28:24]execute_script returns [10:28:24]free content buf [10:28:24]Sock 7.Close socket [10:28:24]Sock 7.Thread stoped [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:26]accept exits with 9 [10:29:26]New connection [10:29:26]New thread 3066592612 created [10:29:26]Thread 3066449252 joined [10:29:26]Waiting for new connection... [10:29:26] Sock 9.Parse request [10:29:26]Sock 9.Check first char [10:29:26]Sock 9.First char is OK [10:29:26]request: POST /json_proto HTTP/1.0 [10:29:26]Method: POST [10:29:26]URL: /json_proto [10:29:26]Method is POST - this is cgi request [10:29:26]url: /json_proto [10:29:26]query_string will be loaded in cgi processing [10:29:26]execute_cgi json_proto POST (null) [10:29:26]execute_cgi path=json_proto method=POST [10:29:26]POST find Content-Length [10:29:26]Host: 172.17.38.133:8080 [10:29:26]Content-Length: 1205 [10:29:26]Content-Type: application/json [10:29:26] [10:29:26]POST finish read [10:29:26]Found Content-Length = 1205 [10:29: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673849\u000A22.06.2024 10:06\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\u000A3543820;3543819\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:26]execute_script... [10:29: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673849\u000A22.06.2024 10:06\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\u000A3543820;3543819\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:26]POST & json_proto [10:29:26]process_json_proto [10:29:26]json parsed OK: [10:29:26]protocol is kg_v1.0 [10:29:26]action value=print_text [10:29:26]process_action print_text [10:29:26]cmd_print_text [10:29:26]ExternCall_PrintAddStr [10:29:26]wPrintStart [10:29:26]Write to MH i2c: 01 00 00 E7 01 E8 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 FF 0F FD [10:29:26]RasterBufferAndPrint [10:29:26]line *****ТОВАРНЫЙ ЧЕК***** [10:29:26]line АЗС 120 [10:29:26]line Партнер нефть [10:29:26]line 02508201610067 [10:29:26]line Кассир : Байбугуева Г. [10:29:26]line Счет N : (1)673849 [10:29:26]line 22.06.2024 10:06 [10:29:26]line ПРОДАЖА [10:29:26]line ТРК (МРК, ГНК): 42 [10:29:26]line Вид ГСМ : 2710124130 [10:29:26]line Аи-92-К-5 [10:29:26]line 20.000 x 66.40 [10:29:26]line ИТОГ: 1328.00 [10:29:26]line Тип оплаты: Талоны: Партнер нефть [10:29:26]line 3543820;3543819 [10:29:26]line ______________________ [10:29:26]line (подпись) [10:29:26]written 0, free lines is 4095 [10:29:26]Write to MH i2c: 01 00 00 FB 01 FC [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 18 0E 29 [10:29:26]RasterBufferAndPrint [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]written 0, free lines is 3610 [10:29:26]MH_Cut [10:29:26]Write to MH i2c: D1 01 00 02 02 01 D6 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 02 02 00 D5 [10:29:26]Write to MH i2c: 01 00 00 03 02 05 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:27]*** Cut start [10:29:27]*** Partial cut [10:29:27]*** CUTSNS_PIN = 1 [10:29:27]*** CUTSNS_PIN = 0 [10:29:27]*** Brake cut motor [10:29:28]Read from MH i2c: 01 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 [10:29:28]MH_I2C_Read... [10:29:28]*** Stop cut motor [10:29:28]*** Cut end [10:29:28]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 FF 0F 1A [10:29:28]process_action print_text done [10:29:28]requested_data is exist [10:29:28]produce_requested_data [10:29:28]requested_item fm.sn is exist - process it [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 11 00 00 [10:29:28]Write to MH i2c: E2 08 00 04 02 80 11 00 00 00 00 00 00 80 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 04 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [10:29: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:29:28]wFMCommunicate OK [10:29:28]requested_item fd.num is exist - process it [10:29:28]SAM_PROTO_GetFieldsCounters [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 00 00 [10:29:28]Write to MH i2c: E2 08 00 05 02 80 13 00 00 00 00 00 00 83 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]OFD Sender: No OFD packet to send [10:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 05 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 02 [10:29: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 8F 97 01 00 0E 04 04 00 64 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 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetFieldsCounters done [10:29:28]requested_item shift.num is exist - process it [10:29:28]requested_item shift.opened is exist - process it [10:29:28]req_shift_opened [10:29:28]FM_GetShiftState [10:29:28]SAM_PROTO_GetShiftState [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 01 00 [10:29:28]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 77 [10:29:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetShiftState done [10:29:28]FM_GetShiftState done [10:29:28]req_shift_opened done [10:29:28]requested_item shift.open_date is exist - process it [10:29:28]req_shift_open_date [10:29:28]req_shift_open_date done [10:29:28]produce_requested_data done [10:29:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:29:28]process_action_free print_text [10:29:28]json_value_free [10:29:28]json_value_free done [10:29:28]process_json_proto returns [10:29:28]Send response to host [10:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104335,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:29:28]free response buf [10:29:28]execute_script done [10:29:28]execute_script returns [10:29:28]free content buf [10:29:28]Sock 9.Close socket [10:29:28]Sock 9.Thread stoped [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:16]accept exits with 7 [10:30:16]New connection [10:30:16]New thread 3066449252 created [10:30:16]Thread 3066592612 joined [10:30:16]Waiting for new connection... [10:30:16] Sock 7.Parse request [10:30:16]Sock 7.Check first char [10:30:16]Sock 7.First char is OK [10:30:16]request: POST /json_proto HTTP/1.0 [10:30:16]Method: POST [10:30:16]URL: /json_proto [10:30:16]Method is POST - this is cgi request [10:30:16]url: /json_proto [10:30:16]query_string will be loaded in cgi processing [10:30:16]execute_cgi json_proto POST (null) [10:30:16]execute_cgi path=json_proto method=POST [10:30:16]POST find Content-Length [10:30:16]Host: 172.17.38.133:8080 [10:30:16]Content-Length: 678 [10:30:16]Content-Type: application/json [10:30:16] [10:30:16]POST finish read [10:30:16]Found Content-Length = 678 [10:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673850", "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" ] } } [10:30:16]execute_script... [10:30: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)673850", "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" ] } } [10:30:16]POST & json_proto [10:30:16]process_json_proto [10:30:16]json parsed OK: [10:30:16]protocol is kg_v1.0 [10:30:16]action value=close_receipt [10:30:16]process_action close_receipt [10:30:16]cmd_close_receipt [10:30:16]MH_GetDate [10:30:16]Write to MH i2c: F0 00 00 07 02 F8 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: F0 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: F0 09 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: F0 09 00 07 02 00 B8 A7 76 66 BD 8F 7C 64 68 [10:30:16]GetLastDocTimeStamp 1719052075 [10:30:16]current date 1719052216 [10:30:16]FM_GetShiftState [10:30:16]SAM_PROTO_GetShiftState [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 13 01 00 [10:30:16]Write to MH i2c: E2 08 00 08 02 80 13 01 00 00 00 00 00 87 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0E 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0E 00 08 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [10:30:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_GetShiftState done [10:30:16]FM_GetShiftState done [10:30:16]opened in 1719016176 [10:30:16]opened+sec_in_day 1719102576 [10:30:16]quantity*price = 70052 [10:30:16]sum+1 = 70053 [10:30:16]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 СНО: Общий режим Чек 69 22.06.2024 10:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104336 ФПД: 16638254866678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103016&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104336&fm=16638254866678&tin=02508201610067®Number=0000000000092785&sum=70000 [10:30:17]StoreToDocumentArchive [10:30:17]shift 356 fd 104336 [10:30:17]save to /storage/0356/doc_00104336 [10:30:17]save last doc name /storage/0356/doc_00104336 to /storage/kkm_last_doc_name [10:30:17]save OK [10:30:17]Clear old archive folders... [10:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:17]tlvbuf is 00FB2780 [10:30:17]SAM_PROTO_ClearQueue [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 09 00 00 [10:30:17]Write to MH i2c: E2 08 00 15 02 80 09 00 00 00 00 00 00 89 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_ClearQueue done [10:30:17]KKMCreateOFDPacket [10:30:17]OFDProtocolAddRootSTLVToBuf [10:30:17]FM_MakeSignedData [10:30:17]FM_MakeSignedData [10:30:17]SAM_PROTO_SignData [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 01 02 [10:30:17]Write to MH i2c: E2 08 00 16 02 80 0D 01 02 00 00 00 00 91 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=255 [10:30:17]MH_SAM_APDU [10:30: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 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 45 00 00 00 F4 03 04 00 B8 A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0F [10:30:17]Write to MH i2c: E2 02 01 17 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 B8 A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0F 00 00 79 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=10 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 02 02 05 21 E5 45 60 F6 [10:30:17]Write to MH i2c: E2 0D 00 18 02 80 0D 02 02 05 00 21 E5 45 60 F6 00 00 3F [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 03 02 [10:30:17]Write to MH i2c: E2 08 00 19 02 80 0D 03 02 00 00 00 00 96 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 19 02 00 9F D5 31 83 F0 F8 8F 26 90 00 5C [10:30:17]RAPDU: 9F D5 31 83 F0 F8 8F 26 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_SignData done [10:30:17]FM_MakeSignedData done [10:30:17]CreateOFDProtocolMessage [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 11 00 00 [10:30:17]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [10:30: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:30:17]wFMCommunicate OK [10:30:17]CreateOFDProtocolMessage done [10:30:17]OFDSenderStorePacket 104336 [10:30:17]StoreOFDPacket docnum=104336 [10:30: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 1B 96 07 01 83 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 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 45 00 00 00 F4 03 04 00 B8 A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0F 21 E5 45 60 F6 9F D5 31 83 F0 F8 8F 26 [10:30:17]CheckFolder [10:30:17]dirname=/storage/ofd_packets [10:30:17]CheckFolder done [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00104336 [10:30:17]NVStorageSaveData ofd_packets/00104336 [10:30:17]File name is /storage/ofd_packets/00104336 [10:30:17]Write 301 bytes [10:30:17]NVStorageSaveData done [10:30:17]OFDSenderStorePacket done [10:30:17]KKMCreateOFDPacket done [10:30:17]NVStorageSaveData kkm_last_timestamp [10:30:17]File name is /storage/kkm_last_timestamp [10:30:17]Write 4 bytes [10:30:17]NVStorageSaveData done [10:30:17]ExternCall_PrintAddStr [10:30:17]wPrintStart [10:30:17]Write to MH i2c: 01 00 00 1B 02 1D [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [10:30:17]RasterBufferAndPrint [10:30:17]line Счет N : (1)673850 [10:30:17]line ИНН: 02508201610067 [10:30:17]line Контрольно-Кассовый Чек [10:30:17]line ПРОДАЖА [10:30:17]line ТРК (МРК, ГНК) : 32 [10:30:17]line Товар: 2710124130 [10:30:17]line Аи-92-К-5 [10:30:17]line 10.550 * 66.40 [10:30:17]line = 700.52 [10:30:17]line НДС 12% НСП 1% [10:30:17]line > о реализуемом товаре [10:30:17]line ОКРУГЛЕНИЕ: -0.52 [10:30:17]line ИТОГО: 700.00 [10:30:17]line Внесено: 700.00 [10:30:17]line СДАЧА: 0.00 [10:30:17]line НСП 1% : 6.20 [10:30:17]line НДС 12% : 74.39 [10:30:17]line Наличными: 700.00 [10:30:17]line Безнал.: 0.00 [10:30:17]line Место: АЗС № 120 "Партнер Нефть" [10:30:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:30:17]line СНО: Общий режим [10:30:17]line Чек 69 22.06.2024 10:30 [10:30:17]line Смена: 356 ФФД: 1.0 [10:30:17]line ЗНМ: 0300000164 [10:30:17]line РНМ: 0000000000092785 [10:30:17]line Версия ККМ: 001 [10:30:17]line ФМ: 0000000000875093 [10:30:17]line ФД: 104336 [10:30:17]line ФПД: 16638254866678 [10:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103016&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104336&fm=16638254866678&tin=02508201610067®Number=0000000000092785&sum=70000 [10:30:18]written 0, free lines is 4095 [10:30:18]OFD Sender: Processing packet 104336 [packets to send 17, broken 16] [10:30:18]ProducePacketName [10:30:18]name=ofd_packets/00104336 [10:30:18]OFD Sender: To server: pG, [10:30:18]CommunicateWithHost lk.salyk.kg:30040 [10:30:18]ConnectInit lk.salyk.kg [10:30:18]Connected sock=10 [10:30: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 1B 96 07 01 83 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 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 45 00 00 00 F4 03 04 00 B8 A7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0F 21 E5 45 60 F6 9F D5 31 83 F0 F8 8F 26 [10:30: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 3E E0 47 00 49 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 90 97 01 00 F4 03 04 00 38 4E 76 66 B6 04 01 00 00 FC A1 FD B3 DE 63 E9 2E [10:30:18]CommunicateWithHost err = 0 [10:30:18]CheckOFDResponse [10:30:18]1017 (14) - 77093643461234 [10:30:18]1041 (16) - 0000000000875093 [10:30:18]1040 (4) - 104336 [10:30:18]1012 (4) - 22.06.2024 04:08 [10:30:18]1206 (1) - 0 [10:30:18]OFD Sender: Remove packet 104336 [10:30:18]ProducePacketName [10:30:18]name=ofd_packets/00104336 [10:30:18]NVStorageDeleteData [10:30:18]Write to MH i2c: 01 00 00 46 02 48 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 CD 0C 28 [10:30:18]RasterBufferAndPrint [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]written 0, free lines is 3283 [10:30:18]MH_Cut [10:30:18]Write to MH i2c: D1 01 00 4D 02 01 21 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 01 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 01 00 4D 02 00 20 [10:30:18]Write to MH i2c: 01 00 00 4E 02 50 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:19]OFD Sender: No OFD packet to send [10:30:19]*** Cut start [10:30:19]*** Partial cut [10:30:19]*** CUTSNS_PIN = 1 [10:30:19]*** CUTSNS_PIN = 0 [10:30:19]*** Brake cut motor [10:30:20]Read from MH i2c: 01 [10:30:20]MH_I2C_Read... [10:30:20]*** Stop cut motor [10:30:20]*** Cut end [10:30:20]Read from MH i2c: 01 07 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 4E 02 00 00 00 00 00 FF 0F 65 [10:30:20]process_action close_receipt done [10:30:20]requested_data is exist [10:30:20]produce_requested_data [10:30:20]requested_item fm.sn is exist - process it [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 11 00 00 [10:30:20]Write to MH i2c: E2 08 00 4F 02 80 11 00 00 00 00 00 00 CB [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 17 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 17 00 4F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [10:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:30:20]wFMCommunicate OK [10:30:20]requested_item fd.num is exist - process it [10:30:20]SAM_PROTO_GetFieldsCounters [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 00 00 [10:30:20]Write to MH i2c: E2 08 00 50 02 80 13 00 00 00 00 00 00 CE [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 50 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 51 [10:30: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 90 97 01 00 0E 04 04 00 64 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 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetFieldsCounters done [10:30:20]requested_item shift.num is exist - process it [10:30:20]requested_item shift.opened is exist - process it [10:30:20]req_shift_opened [10:30:20]FM_GetShiftState [10:30:20]SAM_PROTO_GetShiftState [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 01 00 [10:30:20]Write to MH i2c: E2 08 00 51 02 80 13 01 00 00 00 00 00 D0 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 0E 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 0E 00 51 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C2 [10:30:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetShiftState done [10:30:20]FM_GetShiftState done [10:30:20]req_shift_opened done [10:30:20]requested_item shift.open_date is exist - process it [10:30:20]req_shift_open_date [10:30:20]req_shift_open_date done [10:30:20]produce_requested_data done [10:30:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104336,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:30:20]process_action_free close_receipt [10:30:20]json_value_free [10:30:20]json_value_free done [10:30:20]process_json_proto returns [10:30:20]Send response to host [10:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104336,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:30:20]free response buf [10:30:20]execute_script done [10:30:20]execute_script returns [10:30:20]free content buf [10:30:20]Sock 7.Close socket [10:30:20]Sock 7.Thread stoped [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31: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:09]accept exits with 9 [10:32:09]New connection [10:32:09]New thread 3066592612 created [10:32:09]Thread 3066449252 joined [10:32:09]Waiting for new connection... [10:32:09] Sock 9.Parse request [10:32:09]Sock 9.Check first char [10:32:09]Sock 9.First char is OK [10:32:09]request: POST /json_proto HTTP/1.0 [10:32:09]Method: POST [10:32:09]URL: /json_proto [10:32:09]Method is POST - this is cgi request [10:32:09]url: /json_proto [10:32:09]query_string will be loaded in cgi processing [10:32:09]execute_cgi json_proto POST (null) [10:32:09]execute_cgi path=json_proto method=POST [10:32:09]POST find Content-Length [10:32:09]Host: 172.17.38.133:8080 [10:32:09]Content-Length: 682 [10:32:09]Content-Type: application/json [10:32:09] [10:32:09]POST finish read [10:32:09]Found Content-Length = 682 [10:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673851", "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" ] } } [10:32:09]execute_script... [10:32: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)673851", "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" ] } } [10:32:09]POST & json_proto [10:32:09]process_json_proto [10:32:09]json parsed OK: [10:32:09]protocol is kg_v1.0 [10:32:09]action value=close_receipt [10:32:09]process_action close_receipt [10:32:09]cmd_close_receipt [10:32:09]MH_GetDate [10:32:09]Write to MH i2c: F0 00 00 52 02 43 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 09 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 09 00 52 02 00 2A A8 76 66 BD 8F 7C 64 26 [10:32:09]GetLastDocTimeStamp 1719052216 [10:32:09]current date 1719052330 [10:32:09]FM_GetShiftState [10:32:09]SAM_PROTO_GetShiftState [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 01 00 [10:32:09]Write to MH i2c: E2 08 00 53 02 80 13 01 00 00 00 00 00 D2 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 53 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C4 [10:32:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_GetShiftState done [10:32:09]FM_GetShiftState done [10:32:09]opened in 1719016176 [10:32:09]opened+sec_in_day 1719102576 [10:32:09]quantity*price = 100060 [10:32:09]sum+1 = 100062 [10:32:09]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 СНО: Общий режим Чек 70 22.06.2024 10:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104337 ФПД: 102308270635993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104337&fm=102308270635993&tin=02508201610067®Number=0000000000092785&sum=100000 [10:32:10]StoreToDocumentArchive [10:32:10]shift 356 fd 104337 [10:32:10]save to /storage/0356/doc_00104337 [10:32:10]save last doc name /storage/0356/doc_00104337 to /storage/kkm_last_doc_name [10:32:10]save OK [10:32:10]Clear old archive folders... [10:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:10]tlvbuf is 00FB1060 [10:32:10]SAM_PROTO_ClearQueue [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 09 00 00 [10:32:10]Write to MH i2c: E2 08 00 60 02 80 09 00 00 00 00 00 00 D4 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_ClearQueue done [10:32:10]KKMCreateOFDPacket [10:32:10]OFDProtocolAddRootSTLVToBuf [10:32:10]FM_MakeSignedData [10:32:10]FM_MakeSignedData [10:32:10]SAM_PROTO_SignData [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 01 02 [10:32:10]Write to MH i2c: E2 08 00 61 02 80 0D 01 02 00 00 00 00 DC [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=255 [10:32:10]MH_SAM_APDU [10:32: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 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 46 00 00 00 F4 03 04 00 2A A8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5D [10:32:10]Write to MH i2c: E2 02 01 62 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 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 46 00 00 00 F4 03 04 00 2A A8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5D 00 00 B6 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=10 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 02 02 05 0C 80 20 FB D9 [10:32:10]Write to MH i2c: E2 0D 00 63 02 80 0D 02 02 05 00 0C 80 20 FB D9 00 00 69 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 03 02 [10:32:10]Write to MH i2c: E2 08 00 64 02 80 0D 03 02 00 00 00 00 E1 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0B 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0B 00 64 02 00 AF E7 91 5A C9 A5 BB E5 90 00 71 [10:32:11]RAPDU: AF E7 91 5A C9 A5 BB E5 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_SignData done [10:32:11]FM_MakeSignedData done [10:32:11]CreateOFDProtocolMessage [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 11 00 00 [10:32:11]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 17 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [10:32: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:32:11]wFMCommunicate OK [10:32:11]CreateOFDProtocolMessage done [10:32:11]OFDSenderStorePacket 104337 [10:32:11]StoreOFDPacket docnum=104337 [10:32: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 4D AC 07 01 09 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 F4 03 04 00 2A A8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5D 0C 80 20 FB D9 AF E7 91 5A C9 A5 BB E5 [10:32:11]CheckFolder [10:32:11]dirname=/storage/ofd_packets [10:32:11]CheckFolder done [10:32:11]ProducePacketName [10:32:11]name=ofd_packets/00104337 [10:32:11]NVStorageSaveData ofd_packets/00104337 [10:32:11]File name is /storage/ofd_packets/00104337 [10:32:11]Write 301 bytes [10:32:11]NVStorageSaveData done [10:32:11]OFDSenderStorePacket done [10:32:11]KKMCreateOFDPacket done [10:32:11]NVStorageSaveData kkm_last_timestamp [10:32:11]File name is /storage/kkm_last_timestamp [10:32:11]Write 4 bytes [10:32:11]NVStorageSaveData done [10:32:11]ExternCall_PrintAddStr [10:32:11]wPrintStart [10:32:11]Write to MH i2c: 01 00 00 66 02 68 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [10:32:11]RasterBufferAndPrint [10:32:11]line Счет N : (1)673851 [10:32:11]line ИНН: 02508201610067 [10:32:11]line Контрольно-Кассовый Чек [10:32:11]line ПРОДАЖА [10:32:11]line ТРК (МРК, ГНК) : 31 [10:32:11]line Товар: 2710124500 [10:32:11]line Аи-95-К-5 [10:32:11]line 13.540 * 73.90 [10:32:11]line = 1000.61 [10:32:11]line НДС 12% НСП 1% [10:32:11]line > о реализуемом товаре [10:32:11]line ОКРУГЛЕНИЕ: -0.61 [10:32:11]line ИТОГО: 1000.00 [10:32:11]line Внесено: 1000.00 [10:32:11]line СДАЧА: 0.00 [10:32:11]line НСП 1% : 8.85 [10:32:11]line НДС 12% : 106.26 [10:32:11]line Наличными: 1000.00 [10:32:11]line Безнал.: 0.00 [10:32:11]line Место: АЗС № 120 "Партнер Нефть" [10:32:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:32:11]line СНО: Общий режим [10:32:11]line Чек 70 22.06.2024 10:32 [10:32:11]line Смена: 356 ФФД: 1.0 [10:32:11]line ЗНМ: 0300000164 [10:32:11]line РНМ: 0000000000092785 [10:32:11]line Версия ККМ: 001 [10:32:11]line ФМ: 0000000000875093 [10:32:11]line ФД: 104337 [10:32:11]line ФПД: 102308270635993 [10:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104337&fm=102308270635993&tin=02508201610067®Number=0000000000092785&sum=100000 [10:32:11]OFD Sender: Processing packet 104337 [packets to send 17, broken 16] [10:32:11]ProducePacketName [10:32:11]name=ofd_packets/00104337 [10:32:11]OFD Sender: To server: pG, [10:32:11]CommunicateWithHost lk.salyk.kg:30040 [10:32:11]ConnectInit lk.salyk.kg [10:32:11]written 0, free lines is 4095 [10:32:11]Connected sock=10 [10:32: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 4D AC 07 01 09 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 F4 03 04 00 2A A8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5D 0C 80 20 FB D9 AF E7 91 5A C9 A5 BB E5 [10:32: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 18 FA 47 00 1A 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 91 97 01 00 F4 03 04 00 A9 4E 76 66 B6 04 01 00 00 03 B8 B1 66 B1 DF 11 51 [10:32:11]CommunicateWithHost err = 0 [10:32:11]CheckOFDResponse [10:32:11]1017 (14) - 77093643461234 [10:32:11]1041 (16) - 0000000000875093 [10:32:11]1040 (4) - 104337 [10:32:11]1012 (4) - 22.06.2024 04:10 [10:32:11]1206 (1) - 0 [10:32:11]OFD Sender: Remove packet 104337 [10:32:11]ProducePacketName [10:32:11]name=ofd_packets/00104337 [10:32:11]NVStorageDeleteData [10:32:11]Write to MH i2c: 01 00 00 91 02 93 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 D5 0C 7B [10:32:11]RasterBufferAndPrint [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]written 0, free lines is 3293 [10:32:11]MH_Cut [10:32:11]Write to MH i2c: D1 01 00 98 02 01 6C [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 01 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 01 00 98 02 00 6B [10:32:11]Write to MH i2c: 01 00 00 99 02 9B [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:12]OFD Sender: No OFD packet to send [10:32:12]*** Cut start [10:32:12]*** Partial cut [10:32:12]*** CUTSNS_PIN = 1 [10:32:12]*** CUTSNS_PIN = 0 [10:32:12]*** Brake cut motor [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]*** Stop cut motor [10:32:13]*** Cut end [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 FF 0F B0 [10:32:13]process_action close_receipt done [10:32:13]requested_data is exist [10:32:13]produce_requested_data [10:32:13]requested_item fm.sn is exist - process it [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 11 00 00 [10:32:13]Write to MH i2c: E2 08 00 9A 02 80 11 00 00 00 00 00 00 16 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 9A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [10:32:13]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:13]wFMCommunicate OK [10:32:13]requested_item fd.num is exist - process it [10:32:13]SAM_PROTO_GetFieldsCounters [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 00 00 [10:32:13]Write to MH i2c: E2 08 00 9B 02 80 13 00 00 00 00 00 00 19 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 9B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A0 [10:32: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 91 97 01 00 0E 04 04 00 64 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 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetFieldsCounters done [10:32:13]requested_item shift.num is exist - process it [10:32:13]requested_item shift.opened is exist - process it [10:32:13]req_shift_opened [10:32:13]FM_GetShiftState [10:32:13]SAM_PROTO_GetShiftState [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 01 00 [10:32:13]Write to MH i2c: E2 08 00 9C 02 80 13 01 00 00 00 00 00 1B [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 9C 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 0D [10:32:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetShiftState done [10:32:13]FM_GetShiftState done [10:32:13]req_shift_opened done [10:32:13]requested_item shift.open_date is exist - process it [10:32:13]req_shift_open_date [10:32:13]req_shift_open_date done [10:32:13]produce_requested_data done [10:32:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104337,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:32:13]process_action_free close_receipt [10:32:13]json_value_free [10:32:13]json_value_free done [10:32:13]process_json_proto returns [10:32:13]Send response to host [10:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104337,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:32:13]free response buf [10:32:13]execute_script done [10:32:13]execute_script returns [10:32:13]free content buf [10:32:13]Sock 9.Close socket [10:32:13]Sock 9.Thread stoped [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:00]accept exits with 7 [10:38:00]New connection [10:38:00]New thread 3066449252 created [10:38:00]Thread 3066592612 joined [10:38:00]Waiting for new connection... [10:38:00] Sock 7.Parse request [10:38:00]Sock 7.Check first char [10:38:00]Sock 7.First char is OK [10:38:00]request: POST /json_proto HTTP/1.0 [10:38:00]Method: POST [10:38:00]URL: /json_proto [10:38:00]Method is POST - this is cgi request [10:38:00]url: /json_proto [10:38:00]query_string will be loaded in cgi processing [10:38:00]execute_cgi json_proto POST (null) [10:38:00]execute_cgi path=json_proto method=POST [10:38:00]POST find Content-Length [10:38:00]Host: 172.17.38.133:8080 [10:38:00]Content-Length: 687 [10:38:00]Content-Type: application/json [10:38:00] [10:38:00]POST finish read [10:38:00]Found Content-Length = 687 [10:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673852", "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" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:00]execute_script... [10:38: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)673852", "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" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:00]POST & json_proto [10:38:00]process_json_proto [10:38:00]json parsed OK: [10:38:00]protocol is kg_v1.0 [10:38:00]action value=close_receipt [10:38:00]process_action close_receipt [10:38:00]cmd_close_receipt [10:38:00]MH_GetDate [10:38:00]Write to MH i2c: F0 00 00 9D 02 8E [10:38:00]Write i2c OK [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 09 00 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 09 00 9D 02 00 89 A9 76 66 BD 8F 7C 64 D1 [10:38:00]GetLastDocTimeStamp 1719052330 [10:38:00]current date 1719052681 [10:38:00]FM_GetShiftState [10:38:00]SAM_PROTO_GetShiftState [10:38:00]wFMCommunicate request_size=4 [10:38:00]MH_SAM_APDU [10:38:00]CAPDU: 80 13 01 00 [10:38:00]Write to MH i2c: E2 08 00 9E 02 80 13 01 00 00 00 00 00 1D [10:38:00]Write i2c OK [10:38:00]MH_I2C_Read... [10:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:00]Read from MH i2c: E2 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: E2 0E 00 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: E2 0E 00 9E 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 0F [10:38:00]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:38:00]wFMCommunicate OK [10:38:00]SAM_PROTO_GetShiftState done [10:38:00]FM_GetShiftState done [10:38:00]opened in 1719016176 [10:38:00]opened+sec_in_day 1719102576 [10:38:00]quantity*price = 220012 [10:38:00]sum+1 = 220013 [10:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 22.06.2024 10:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104338 ФПД: 177628577168751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104338&fm=177628577168751&tin=02508201610067®Number=0000000000092785&sum=220000 [10:38:02]StoreToDocumentArchive [10:38:02]shift 356 fd 104338 [10:38:02]save to /storage/0356/doc_00104338 [10:38:02]save last doc name /storage/0356/doc_00104338 to /storage/kkm_last_doc_name [10:38:02]save OK [10:38:02]Clear old archive folders... [10:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:38:02]tlvbuf is 00FB36D0 [10:38:02]SAM_PROTO_ClearQueue [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 09 00 00 [10:38:02]Write to MH i2c: E2 08 00 AB 02 80 09 00 00 00 00 00 00 1F [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]SAM_PROTO_ClearQueue done [10:38:02]KKMCreateOFDPacket [10:38:02]OFDProtocolAddRootSTLVToBuf [10:38:02]FM_MakeSignedData [10:38:02]FM_MakeSignedData [10:38:02]SAM_PROTO_SignData [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 01 02 [10:38:02]Write to MH i2c: E2 08 00 AC 02 80 0D 01 02 00 00 00 00 27 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=255 [10:38:02]MH_SAM_APDU [10:38: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 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 89 A9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [10:38:02]Write to MH i2c: E2 02 01 AD 02 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 89 A9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 CC [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=11 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 02 02 06 A1 8D 60 3E 7D 6F [10:38:02]Write to MH i2c: E2 0E 00 AE 02 80 0D 02 02 06 00 A1 8D 60 3E 7D 6F 00 00 EE [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 03 02 [10:38:02]Write to MH i2c: E2 08 00 AF 02 80 0D 03 02 00 00 00 00 2C [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 0B 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 0B 00 AF 02 00 03 DE 87 C5 0D DD 60 D6 90 00 7A [10:38:02]RAPDU: 03 DE 87 C5 0D DD 60 D6 90 00 [10:38:02]wFMCommunicate OK [10:38:02]SAM_PROTO_SignData done [10:38:02]FM_MakeSignedData done [10:38:02]CreateOFDProtocolMessage [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 11 00 00 [10:38:02]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 17 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [10: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 [10:38:02]wFMCommunicate OK [10:38:02]CreateOFDProtocolMessage done [10:38:02]OFDSenderStorePacket 104338 [10:38:02]StoreOFDPacket docnum=104338 [10:38: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 4F A5 08 01 18 EE 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 89 A9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 8D 60 3E 7D 6F 03 DE 87 C5 0D DD 60 D6 [10:38:02]CheckFolder [10:38:02]dirname=/storage/ofd_packets [10:38:02]CheckFolder done [10:38:02]ProducePacketName [10:38:02]name=ofd_packets/00104338 [10:38:02]NVStorageSaveData ofd_packets/00104338 [10:38:02]File name is /storage/ofd_packets/00104338 [10:38:02]Write 302 bytes [10:38:02]NVStorageSaveData done [10:38:02]OFDSenderStorePacket done [10:38:02]KKMCreateOFDPacket done [10:38:02]NVStorageSaveData kkm_last_timestamp [10:38:02]File name is /storage/kkm_last_timestamp [10:38:02]Write 4 bytes [10:38:02]NVStorageSaveData done [10:38:02]ExternCall_PrintAddStr [10:38:02]wPrintStart [10:38:02]Write to MH i2c: 01 00 00 B1 02 B3 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [10:38:02]RasterBufferAndPrint [10:38:02]line Счет N : (1)673852 [10:38:02]line ИНН: 02508201610067 [10:38:02]line Контрольно-Кассовый Чек [10:38:02]line ПРОДАЖА [10:38:02]line ТРК (МРК, ГНК) : 11 [10:38:02]line Товар: 2710194210 [10:38:02]line ДТ(л)-К-5 [10:38:02]line 30.180 * 72.90 [10:38:02]line = 2200.12 [10:38:02]line НДС 12% НСП 1% [10:38:02]line > о реализуемом товаре [10:38:02]line ОКРУГЛЕНИЕ: -0.12 [10:38:02]line ИТОГО: 2200.00 [10:38:02]line Внесено: 2200.00 [10:38:02]line СДАЧА: 0.00 [10:38:02]line НСП 1% : 19.47 [10:38:02]line НДС 12% : 233.64 [10:38:02]line Наличными: 2200.00 [10:38:02]line Безнал.: 0.00 [10:38:02]line Место: АЗС № 120 "Партнер Нефть" [10:38:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:38:02]line СНО: Общий режим [10:38:02]line Чек 71 22.06.2024 10:38 [10:38:02]line Смена: 356 ФФД: 1.0 [10:38:02]line ЗНМ: 0300000164 [10:38:02]line РНМ: 0000000000092785 [10:38:02]line Версия ККМ: 001 [10:38:02]line ФМ: 0000000000875093 [10:38:02]line ФД: 104338 [10:38:02]line ФПД: 177628577168751 [10:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104338&fm=177628577168751&tin=02508201610067®Number=0000000000092785&sum=220000 [10:38:02]OFD Sender: Processing packet 104338 [packets to send 17, broken 16] [10:38:02]ProducePacketName [10:38:02]name=ofd_packets/00104338 [10:38:02]OFD Sender: To server: pG, [10:38:02]CommunicateWithHost lk.salyk.kg:30040 [10:38:02]ConnectInit lk.salyk.kg [10:38:02]written 0, free lines is 4095 [10:38:03]Connected sock=9 [10:38: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 4F A5 08 01 18 EE 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 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 89 A9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A1 8D 60 3E 7D 6F 03 DE 87 C5 0D DD 60 D6 [10:38: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 6F 24 47 00 70 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 92 97 01 00 F4 03 04 00 09 50 76 66 B6 04 01 00 00 D7 54 50 39 32 1E 3A 33 [10:38:03]CommunicateWithHost err = 0 [10:38:03]CheckOFDResponse [10:38:03]1017 (14) - 77093643461234 [10:38:03]1041 (16) - 0000000000875093 [10:38:03]1040 (4) - 104338 [10:38:03]1012 (4) - 22.06.2024 04:16 [10:38:03]1206 (1) - 0 [10:38:03]OFD Sender: Remove packet 104338 [10:38:03]ProducePacketName [10:38:03]name=ofd_packets/00104338 [10:38:03]NVStorageDeleteData [10:38:03]Write to MH i2c: 01 00 00 DC 02 DE [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 D5 0C C6 [10:38:03]RasterBufferAndPrint [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]written 0, free lines is 3293 [10:38:03]MH_Cut [10:38:03]Write to MH i2c: D1 01 00 E3 02 01 B7 [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 01 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 01 00 E3 02 00 B6 [10:38:03]Write to MH i2c: 01 00 00 E4 02 E6 [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]OFD Sender: No OFD packet to send [10:38:04]*** Cut start [10:38:04]*** Partial cut [10:38:04]*** CUTSNS_PIN = 1 [10:38:04]*** CUTSNS_PIN = 0 [10:38:04]*** Brake cut motor [10:38:04]Read from MH i2c: 01 [10:38:04]MH_I2C_Read... [10:38:04]*** Stop cut motor [10:38:04]*** Cut end [10:38:04]Read from MH i2c: 01 07 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 FF 0F FB [10:38:04]process_action close_receipt done [10:38:04]requested_data is exist [10:38:04]produce_requested_data [10:38:04]requested_item fm.sn is exist - process it [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 11 00 00 [10:38:04]Write to MH i2c: E2 08 00 E5 02 80 11 00 00 00 00 00 00 61 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 17 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 17 00 E5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [10: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 [10:38:04]wFMCommunicate OK [10:38:04]requested_item fd.num is exist - process it [10:38:04]SAM_PROTO_GetFieldsCounters [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 13 00 00 [10:38:04]Write to MH i2c: E2 08 00 E6 02 80 13 00 00 00 00 00 00 64 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 62 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 62 00 E6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EF [10:38: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 92 97 01 00 0E 04 04 00 64 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 [10:38:04]wFMCommunicate OK [10:38:04]SAM_PROTO_GetFieldsCounters done [10:38:04]requested_item shift.num is exist - process it [10:38:04]requested_item shift.opened is exist - process it [10:38:04]req_shift_opened [10:38:04]FM_GetShiftState [10:38:04]SAM_PROTO_GetShiftState [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 13 01 00 [10:38:04]Write to MH i2c: E2 08 00 E7 02 80 13 01 00 00 00 00 00 66 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0E 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0E 00 E7 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 58 [10:38:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:38:05]wFMCommunicate OK [10:38:05]SAM_PROTO_GetShiftState done [10:38:05]FM_GetShiftState done [10:38:05]req_shift_opened done [10:38:05]requested_item shift.open_date is exist - process it [10:38:05]req_shift_open_date [10:38:05]req_shift_open_date done [10:38:05]produce_requested_data done [10:38:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104338,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:38:05]process_action_free close_receipt [10:38:05]json_value_free [10:38:05]json_value_free done [10:38:05]process_json_proto returns [10:38:05]Send response to host [10:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104338,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:38:05]free response buf [10:38:05]execute_script done [10:38:05]execute_script returns [10:38:05]free content buf [10:38:05]Sock 7.Close socket [10:38:05]Sock 7.Thread stoped [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:50]accept exits with 10 [10:46:50]New connection [10:46:50]New thread 3066592612 created [10:46:50]Thread 3066449252 joined [10:46:50]Waiting for new connection... [10:46:50] Sock 10.Parse request [10:46:50]Sock 10.Check first char [10:46:50]Sock 10.First char is OK [10:46:50]request: POST /json_proto HTTP/1.0 [10:46:50]Method: POST [10:46:50]URL: /json_proto [10:46:50]Method is POST - this is cgi request [10:46:50]url: /json_proto [10:46:50]query_string will be loaded in cgi processing [10:46:50]execute_cgi json_proto POST (null) [10:46:50]execute_cgi path=json_proto method=POST [10:46:50]POST find Content-Length [10:46:50]Host: 172.17.38.133:8080 [10:46:50]Content-Length: 677 [10:46:50]Content-Type: application/json [10:46:50] [10:46:50]POST finish read [10:46:50]Found Content-Length = 677 [10:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673853", "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" ] } } [10:46:50]execute_script... [10:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673853", "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" ] } } [10:46:50]POST & json_proto [10:46:50]process_json_proto [10:46:50]json parsed OK: [10:46:50]protocol is kg_v1.0 [10:46:50]action value=close_receipt [10:46:50]process_action close_receipt [10:46:50]cmd_close_receipt [10:46:50]MH_GetDate [10:46:50]Write to MH i2c: F0 00 00 E8 02 D9 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 09 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 09 00 E8 02 00 9B AB 76 66 BD 8F 7C 64 30 [10:46:50]GetLastDocTimeStamp 1719052681 [10:46:50]current date 1719053211 [10:46:50]FM_GetShiftState [10:46:50]SAM_PROTO_GetShiftState [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 13 01 00 [10:46:50]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5A [10:46:51]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetShiftState done [10:46:51]FM_GetShiftState done [10:46:51]opened in 1719016176 [10:46:51]opened+sec_in_day 1719102576 [10:46:51]quantity*price = 60025 [10:46:51]sum+1 = 60027 [10:46:51]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 СНО: Общий режим Чек 72 22.06.2024 10:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104339 ФПД: 180321474827894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104651&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104339&fm=180321474827894&tin=02508201610067®Number=0000000000092785&sum=60000 [10:46:52]StoreToDocumentArchive [10:46:52]shift 356 fd 104339 [10:46:52]save to /storage/0356/doc_00104339 [10:46:52]save last doc name /storage/0356/doc_00104339 to /storage/kkm_last_doc_name [10:46:52]save OK [10:46:52]Clear old archive folders... [10:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:52]tlvbuf is 00FB5020 [10:46:52]SAM_PROTO_ClearQueue [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 09 00 00 [10:46:52]Write to MH i2c: E2 08 00 F6 02 80 09 00 00 00 00 00 00 6A [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_ClearQueue done [10:46:52]KKMCreateOFDPacket [10:46:52]OFDProtocolAddRootSTLVToBuf [10:46:52]FM_MakeSignedData [10:46:52]FM_MakeSignedData [10:46:52]SAM_PROTO_SignData [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 01 02 [10:46:52]Write to MH i2c: E2 08 00 F7 02 80 0D 01 02 00 00 00 00 72 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=255 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 9B AB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A4 [10:46:52]Write to MH i2c: E2 02 01 F8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 9B AB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A4 00 00 A7 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=10 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 05 00 5D 73 D6 76 [10:46:52]Write to MH i2c: E2 0D 00 F9 02 80 0D 02 02 05 00 00 5D 73 D6 76 00 00 9B [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 03 02 [10:46:52]Write to MH i2c: E2 08 00 FA 02 80 0D 03 02 00 00 00 00 77 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 FA 02 00 0E 5F 55 C7 EF 62 AD 30 90 00 2F [10:46:52]RAPDU: 0E 5F 55 C7 EF 62 AD 30 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_SignData done [10:46:52]FM_MakeSignedData done [10:46:52]CreateOFDProtocolMessage [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 11 00 00 [10:46:52]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [10:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:52]wFMCommunicate OK [10:46:52]CreateOFDProtocolMessage done [10:46:52]OFDSenderStorePacket 104339 [10:46:52]StoreOFDPacket docnum=104339 [10:46: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 29 43 07 01 4D 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 9B AB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A4 00 5D 73 D6 76 0E 5F 55 C7 EF 62 AD 30 [10:46:52]CheckFolder [10:46:52]dirname=/storage/ofd_packets [10:46:52]CheckFolder done [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00104339 [10:46:52]NVStorageSaveData ofd_packets/00104339 [10:46:52]File name is /storage/ofd_packets/00104339 [10:46:52]Write 301 bytes [10:46:52]NVStorageSaveData done [10:46:52]OFDSenderStorePacket done [10:46:52]KKMCreateOFDPacket done [10:46:52]NVStorageSaveData kkm_last_timestamp [10:46:52]File name is /storage/kkm_last_timestamp [10:46:52]Write 4 bytes [10:46:52]NVStorageSaveData done [10:46:52]ExternCall_PrintAddStr [10:46:52]wPrintStart [10:46:52]Write to MH i2c: 01 00 00 FC 02 FE [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [10:46:52]RasterBufferAndPrint [10:46:52]line Счет N : (1)673853 [10:46:52]line ИНН: 02508201610067 [10:46:52]line Контрольно-Кассовый Чек [10:46:52]line ПРОДАЖА [10:46:52]line ТРК (МРК, ГНК) : 32 [10:46:52]line Товар: 2710124130 [10:46:52]line Аи-92-К-5 [10:46:52]line 9.040 * 66.40 [10:46:52]line = 600.26 [10:46:52]line НДС 12% НСП 1% [10:46:52]line > о реализуемом товаре [10:46:52]line ОКРУГЛЕНИЕ: -0.26 [10:46:52]line ИТОГО: 600.00 [10:46:52]line Внесено: 600.00 [10:46:52]line СДАЧА: 0.00 [10:46:52]line НСП 1% : 5.31 [10:46:52]line НДС 12% : 63.74 [10:46:52]line Наличными: 600.00 [10:46:52]line Безнал.: 0.00 [10:46:52]line Место: АЗС № 120 "Партнер Нефть" [10:46:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:46:52]line СНО: Общий режим [10:46:52]line Чек 72 22.06.2024 10:46 [10:46:52]line Смена: 356 ФФД: 1.0 [10:46:52]line ЗНМ: 0300000164 [10:46:52]line РНМ: 0000000000092785 [10:46:52]line Версия ККМ: 001 [10:46:52]line ФМ: 0000000000875093 [10:46:52]line ФД: 104339 [10:46:52]line ФПД: 180321474827894 [10:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104651&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104339&fm=180321474827894&tin=02508201610067®Number=0000000000092785&sum=60000 [10:46:52]OFD Sender: Processing packet 104339 [packets to send 17, broken 16] [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00104339 [10:46:52]OFD Sender: To server: pG, [10:46:52]CommunicateWithHost lk.salyk.kg:30040 [10:46:52]ConnectInit lk.salyk.kg [10:46:52]written 0, free lines is 4095 [10:46:53]Connected sock=9 [10:46: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 29 43 07 01 4D 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 9B AB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A4 00 5D 73 D6 76 0E 5F 55 C7 EF 62 AD 30 [10:46: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 9C FC 47 00 12 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 93 97 01 00 F4 03 04 00 1B 52 76 66 B6 04 01 00 00 E1 A6 EB 09 D9 CB 3B AC [10:46:53]CommunicateWithHost err = 0 [10:46:53]CheckOFDResponse [10:46:53]1017 (14) - 77093643461234 [10:46:53]1041 (16) - 0000000000875093 [10:46:53]1040 (4) - 104339 [10:46:53]1012 (4) - 22.06.2024 04:24 [10:46:53]1206 (1) - 0 [10:46:53]OFD Sender: Remove packet 104339 [10:46:53]ProducePacketName [10:46:53]name=ofd_packets/00104339 [10:46:53]NVStorageDeleteData [10:46:53]Write to MH i2c: 01 00 00 27 03 2A [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 DF 0C 1C [10:46:53]RasterBufferAndPrint [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]written 0, free lines is 3300 [10:46:53]MH_Cut [10:46:53]Write to MH i2c: D1 01 00 2E 03 01 03 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 2E 03 00 02 [10:46:53]Write to MH i2c: 01 00 00 2F 03 32 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]OFD Sender: No OFD packet to send [10:46:54]*** Cut start [10:46:54]*** Partial cut [10:46:54]*** CUTSNS_PIN = 1 [10:46:54]*** CUTSNS_PIN = 0 [10:46:54]*** Brake cut motor [10:46:54]Read from MH i2c: 01 [10:46:54]MH_I2C_Read... [10:46:54]*** Stop cut motor [10:46:54]*** Cut end [10:46:54]Read from MH i2c: 01 07 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [10:46:54]process_action close_receipt done [10:46:54]requested_data is exist [10:46:54]produce_requested_data [10:46:54]requested_item fm.sn is exist - process it [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 11 00 00 [10:46:54]Write to MH i2c: E2 08 00 30 03 80 11 00 00 00 00 00 00 AD [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 30 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [10:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:54]wFMCommunicate OK [10:46:54]requested_item fd.num is exist - process it [10:46:54]SAM_PROTO_GetFieldsCounters [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 00 00 [10:46:54]Write to MH i2c: E2 08 00 31 03 80 13 00 00 00 00 00 00 B0 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 31 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3F [10:46: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 93 97 01 00 0E 04 04 00 64 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 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetFieldsCounters done [10:46:54]requested_item shift.num is exist - process it [10:46:54]requested_item shift.opened is exist - process it [10:46:54]req_shift_opened [10:46:54]FM_GetShiftState [10:46:54]SAM_PROTO_GetShiftState [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 01 00 [10:46:54]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0E 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A4 [10:46:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:46:55]wFMCommunicate OK [10:46:55]SAM_PROTO_GetShiftState done [10:46:55]FM_GetShiftState done [10:46:55]req_shift_opened done [10:46:55]requested_item shift.open_date is exist - process it [10:46:55]req_shift_open_date [10:46:55]req_shift_open_date done [10:46:55]produce_requested_data done [10:46:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:46:55]process_action_free close_receipt [10:46:55]json_value_free [10:46:55]json_value_free done [10:46:55]process_json_proto returns [10:46:55]Send response to host [10:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:46:55]free response buf [10:46:55]execute_script done [10:46:55]execute_script returns [10:46:55]free content buf [10:46:55]Sock 10.Close socket [10:46:55]Sock 10.Thread stoped [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:02]accept exits with 7 [10:49:02]New connection [10:49:02]New thread 3066449252 created [10:49:02]Thread 3066592612 joined [10:49:02]Waiting for new connection... [10:49:02] Sock 7.Parse request [10:49:02]Sock 7.Check first char [10:49:02]Sock 7.First char is OK [10:49:02]request: POST /json_proto HTTP/1.0 [10:49:02]Method: POST [10:49:02]URL: /json_proto [10:49:02]Method is POST - this is cgi request [10:49:02]url: /json_proto [10:49:02]query_string will be loaded in cgi processing [10:49:02]execute_cgi json_proto POST (null) [10:49:02]execute_cgi path=json_proto method=POST [10:49:02]POST find Content-Length [10:49:02]Host: 172.17.38.133:8080 [10:49:02]Content-Length: 1210 [10:49:02]Content-Type: application/json [10:49:02] [10:49:02]POST finish read [10:49:02]Found Content-Length = 1210 [10:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673854\u000A22.06.2024 10: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\u000A3748571;3748572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:02]execute_script... [10:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673854\u000A22.06.2024 10: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\u000A3748571;3748572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:02]POST & json_proto [10:49:02]process_json_proto [10:49:02]json parsed OK: [10:49:02]protocol is kg_v1.0 [10:49:02]action value=print_text [10:49:02]process_action print_text [10:49:02]cmd_print_text [10:49:02]ExternCall_PrintAddStr [10:49:02]wPrintStart [10:49:02]Write to MH i2c: 01 00 00 33 03 36 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 07 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [10:49:02]RasterBufferAndPrint [10:49:02]line *****ТОВАРНЫЙ ЧЕК***** [10:49:02]line АЗС 120 [10:49:02]line Партнер нефть [10:49:02]line 02508201610067 [10:49:02]line Кассир : Байбугуева Г. [10:49:02]line Счет N : (1)673854 [10:49:02]line 22.06.2024 10:26 [10:49:02]line ПРОДАЖА [10:49:02]line ТРК (МРК, ГНК): 11 [10:49:02]line Вид ГСМ : 2710194210 [10:49:02]line ДТ(л)-К-5 [10:49:02]line 20.000 x 72.90 [10:49:02]line ИТОГ: 1458.00 [10:49:02]line Тип оплаты: Талоны: Партнер нефть [10:49:02]line 3748571;3748572 [10:49:02]line ______________________ [10:49:02]line (подпись) [10:49:02]written 0, free lines is 4095 [10:49:03]Write to MH i2c: 01 00 00 47 03 4A [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 15 0E 74 [10:49:03]RasterBufferAndPrint [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]written 0, free lines is 3607 [10:49:03]MH_Cut [10:49:03]Write to MH i2c: D1 01 00 4E 03 01 23 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 01 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 01 00 4E 03 00 22 [10:49:03]Write to MH i2c: 01 00 00 4F 03 52 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** Cut start [10:49:03]*** Partial cut [10:49:03]*** CUTSNS_PIN = 1 [10:49:03]*** CUTSNS_PIN = 0 [10:49:03]*** Brake cut motor [10:49:03]OFD Sender: No OFD packet to send [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]*** Stop cut motor [10:49:04]*** Cut end [10:49:04]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [10:49:04]process_action print_text done [10:49:04]requested_data is exist [10:49:04]produce_requested_data [10:49:04]requested_item fm.sn is exist - process it [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 11 00 00 [10:49:04]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [10:49:04]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:04]wFMCommunicate OK [10:49:04]requested_item fd.num is exist - process it [10:49:04]SAM_PROTO_GetFieldsCounters [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 00 00 [10:49:04]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 62 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5F [10:49: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 93 97 01 00 0E 04 04 00 64 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 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_GetFieldsCounters done [10:49:04]requested_item shift.num is exist - process it [10:49:04]requested_item shift.opened is exist - process it [10:49:04]req_shift_opened [10:49:04]FM_GetShiftState [10:49:04]SAM_PROTO_GetShiftState [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 01 00 [10:49:04]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0E 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C4 [10:49:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_GetShiftState done [10:49:04]FM_GetShiftState done [10:49:04]req_shift_opened done [10:49:04]requested_item shift.open_date is exist - process it [10:49:04]req_shift_open_date [10:49:04]req_shift_open_date done [10:49:04]produce_requested_data done [10:49:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:49:04]process_action_free print_text [10:49:04]json_value_free [10:49:04]json_value_free done [10:49:04]process_json_proto returns [10:49:04]Send response to host [10:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:49:04]free response buf [10:49:04]execute_script done [10:49:04]execute_script returns [10:49:04]free content buf [10:49:04]Sock 7.Close socket [10:49:04]Sock 7.Thread stoped [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:35]accept exits with 9 [10:51:35]New connection [10:51:35]New thread 3066592612 created [10:51:35]Thread 3066449252 joined [10:51:35]Waiting for new connection... [10:51:35] Sock 9.Parse request [10:51:35]Sock 9.Check first char [10:51:35]Sock 9.First char is OK [10:51:35]request: POST /json_proto HTTP/1.0 [10:51:35]Method: POST [10:51:35]URL: /json_proto [10:51:35]Method is POST - this is cgi request [10:51:35]url: /json_proto [10:51:35]query_string will be loaded in cgi processing [10:51:35]execute_cgi json_proto POST (null) [10:51:35]execute_cgi path=json_proto method=POST [10:51:35]POST find Content-Length [10:51:35]Host: 172.17.38.133:8080 [10:51:35]Content-Length: 1196 [10:51:35]Content-Type: application/json [10:51:35] [10:51:35]POST finish read [10:51:35]Found Content-Length = 1196 [10:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673856\u000A22.06.2024 10:28\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\u000A3543789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]execute_script... [10:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673856\u000A22.06.2024 10:28\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\u000A3543789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]POST & json_proto [10:51:35]process_json_proto [10:51:35]json parsed OK: [10:51:35]protocol is kg_v1.0 [10:51:35]action value=print_text [10:51:35]process_action print_text [10:51:35]cmd_print_text [10:51:35]ExternCall_PrintAddStr [10:51:35]wPrintStart [10:51:35]Write to MH i2c: 01 00 00 53 03 56 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [10:51:35]RasterBufferAndPrint [10:51:35]line *****ТОВАРНЫЙ ЧЕК***** [10:51:35]line АЗС 120 [10:51:35]line Партнер нефть [10:51:35]line 02508201610067 [10:51:35]line Кассир : Байбугуева Г. [10:51:35]line Счет N : (1)673856 [10:51:35]line 22.06.2024 10:28 [10:51:35]line ПРОДАЖА [10:51:35]line ТРК (МРК, ГНК): 42 [10:51:35]line Вид ГСМ : 2710124130 [10:51:35]line Аи-92-К-5 [10:51:35]line 10.000 x 66.40 [10:51:35]line ИТОГ: 664.00 [10:51:35]line Тип оплаты: Талоны: Партнер нефть [10:51:35]line 3543789 [10:51:35]line ______________________ [10:51:35]line (подпись) [10:51:35]written 0, free lines is 4095 [10:51:36]Write to MH i2c: 01 00 00 67 03 6A [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 13 0E 92 [10:51:36]RasterBufferAndPrint [10:51:36]line [10:51:36]line [10:51:36]line [10:51:36]line [10:51:36]line [10:51:36]written 0, free lines is 3605 [10:51:36]MH_Cut [10:51:36]Write to MH i2c: D1 01 00 6E 03 01 43 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: D1 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: D1 01 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: D1 01 00 6E 03 00 42 [10:51:36]Write to MH i2c: 01 00 00 6F 03 72 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** Cut start [10:51:36]*** Partial cut [10:51:36]*** CUTSNS_PIN = 1 [10:51:36]*** CUTSNS_PIN = 0 [10:51:36]*** Brake cut motor [10:51:37]Read from MH i2c: 01 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 07 00 [10:51:37]MH_I2C_Read... [10:51:37]*** Stop cut motor [10:51:37]*** Cut end [10:51:37]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [10:51:37]process_action print_text done [10:51:37]requested_data is exist [10:51:37]produce_requested_data [10:51:37]requested_item fm.sn is exist - process it [10:51:37]wFMCommunicate request_size=4 [10:51:37]MH_SAM_APDU [10:51:37]CAPDU: 80 11 00 00 [10:51:37]Write to MH i2c: E2 08 00 70 03 80 11 00 00 00 00 00 00 ED [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 17 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 17 00 70 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [10:51:37]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:37]wFMCommunicate OK [10:51:37]requested_item fd.num is exist - process it [10:51:37]SAM_PROTO_GetFieldsCounters [10:51:37]wFMCommunicate request_size=4 [10:51:37]MH_SAM_APDU [10:51:37]CAPDU: 80 13 00 00 [10:51:37]Write to MH i2c: E2 08 00 71 03 80 13 00 00 00 00 00 00 F0 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 71 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7F [10:51: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 93 97 01 00 0E 04 04 00 64 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 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetFieldsCounters done [10:51:37]requested_item shift.num is exist - process it [10:51:37]requested_item shift.opened is exist - process it [10:51:37]req_shift_opened [10:51:37]FM_GetShiftState [10:51:37]SAM_PROTO_GetShiftState [10:51:37]wFMCommunicate request_size=4 [10:51:37]MH_SAM_APDU [10:51:37]CAPDU: 80 13 01 00 [10:51:37]Write to MH i2c: E2 08 00 72 03 80 13 01 00 00 00 00 00 F2 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 72 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E4 [10:51:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetShiftState done [10:51:37]FM_GetShiftState done [10:51:37]req_shift_opened done [10:51:37]requested_item shift.open_date is exist - process it [10:51:37]req_shift_open_date [10:51:37]req_shift_open_date done [10:51:37]produce_requested_data done [10:51:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:51:37]process_action_free print_text [10:51:37]json_value_free [10:51:37]json_value_free done [10:51:37]process_json_proto returns [10:51:37]Send response to host [10:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104339,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:51:37]free response buf [10:51:37]execute_script done [10:51:37]execute_script returns [10:51:37]free content buf [10:51:37]Sock 9.Close socket [10:51:37]Sock 9.Thread stoped [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:57]accept exits with 10 [10:51:57]New connection [10:51:57]New thread 3066449252 created [10:51:57]Thread 3066592612 joined [10:51:57]Waiting for new connection... [10:51:57] Sock 10.Parse request [10:51:57]Sock 10.Check first char [10:51:57]Sock 10.First char is OK [10:51:57]request: POST /json_proto HTTP/1.0 [10:51:57]Method: POST [10:51:57]URL: /json_proto [10:51:57]Method is POST - this is cgi request [10:51:57]url: /json_proto [10:51:57]query_string will be loaded in cgi processing [10:51:57]execute_cgi json_proto POST (null) [10:51:57]execute_cgi path=json_proto method=POST [10:51:57]POST find Content-Length [10:51:57]Host: 172.17.38.133:8080 [10:51:57]Content-Length: 682 [10:51:57]Content-Type: application/json [10:51:57] [10:51:57]POST finish read [10:51:57]Found Content-Length = 682 [10:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673855", "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" ] } } [10:51:57]execute_script... [10:51:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673855", "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" ] } } [10:51:57]POST & json_proto [10:51:57]process_json_proto [10:51:57]json parsed OK: [10:51:57]protocol is kg_v1.0 [10:51:57]action value=close_receipt [10:51:57]process_action close_receipt [10:51:57]cmd_close_receipt [10:51:57]MH_GetDate [10:51:57]Write to MH i2c: F0 00 00 73 03 65 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 09 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 09 00 73 03 00 CE AC 76 66 BD 8F 7C 64 F0 [10:51:57]GetLastDocTimeStamp 1719053211 [10:51:57]current date 1719053518 [10:51:57]FM_GetShiftState [10:51:57]SAM_PROTO_GetShiftState [10:51:57]wFMCommunicate request_size=4 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 13 01 00 [10:51:57]Write to MH i2c: E2 08 00 74 03 80 13 01 00 00 00 00 00 F4 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 74 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E6 [10:51:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:51:57]wFMCommunicate OK [10:51:57]SAM_PROTO_GetShiftState done [10:51:57]FM_GetShiftState done [10:51:57]opened in 1719016176 [10:51:57]opened+sec_in_day 1719102576 [10:51:57]quantity*price = 100060 [10:51:57]sum+1 = 100062 [10:51:57]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 СНО: Общий режим Чек 73 22.06.2024 10:51 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104340 ФПД: 84113691289221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104340&fm=84113691289221&tin=02508201610067®Number=0000000000092785&sum=100000 [10:51:58]StoreToDocumentArchive [10:51:58]shift 356 fd 104340 [10:51:58]save to /storage/0356/doc_00104340 [10:51:58]save last doc name /storage/0356/doc_00104340 to /storage/kkm_last_doc_name [10:51:58]save OK [10:51:58]Clear old archive folders... [10:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:58]tlvbuf is 00FBC7D0 [10:51:58]SAM_PROTO_ClearQueue [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 09 00 00 [10:51:58]Write to MH i2c: E2 08 00 81 03 80 09 00 00 00 00 00 00 F6 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]SAM_PROTO_ClearQueue done [10:51:58]KKMCreateOFDPacket [10:51:58]OFDProtocolAddRootSTLVToBuf [10:51:58]FM_MakeSignedData [10:51:58]FM_MakeSignedData [10:51:58]SAM_PROTO_SignData [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 01 02 [10:51:58]Write to MH i2c: E2 08 00 82 03 80 0D 01 02 00 00 00 00 FE [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]wFMCommunicate request_size=255 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 CE AC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C [10:51:58]Write to MH i2c: E2 02 01 83 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 CE AC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 00 00 75 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]wFMCommunicate request_size=10 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 02 02 05 80 3E B0 A6 85 [10:51:58]Write to MH i2c: E2 0D 00 84 03 80 0D 02 02 05 00 80 3E B0 A6 85 00 00 A4 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 03 02 [10:51:58]Write to MH i2c: E2 08 00 85 03 80 0D 03 02 00 00 00 00 03 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 0B 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 0B 00 85 03 00 B1 EF 0D 12 7E 92 19 74 90 00 60 [10:51:58]RAPDU: B1 EF 0D 12 7E 92 19 74 90 00 [10:51:58]wFMCommunicate OK [10:51:58]SAM_PROTO_SignData done [10:51:58]FM_MakeSignedData done [10:51:58]CreateOFDProtocolMessage [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 11 00 00 [10:51:58]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 17 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [10:51:58]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:58]wFMCommunicate OK [10:51:58]CreateOFDProtocolMessage done [10:51:58]OFDSenderStorePacket 104340 [10:51:58]StoreOFDPacket docnum=104340 [10:51: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 22 59 07 01 C7 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 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 49 00 00 00 F4 03 04 00 CE AC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 80 3E B0 A6 85 B1 EF 0D 12 7E 92 19 74 [10:51:58]CheckFolder [10:51:58]dirname=/storage/ofd_packets [10:51:58]CheckFolder done [10:51:58]ProducePacketName [10:51:58]name=ofd_packets/00104340 [10:51:58]NVStorageSaveData ofd_packets/00104340 [10:51:58]File name is /storage/ofd_packets/00104340 [10:51:58]Write 301 bytes [10:51:58]NVStorageSaveData done [10:51:58]OFDSenderStorePacket done [10:51:58]KKMCreateOFDPacket done [10:51:58]NVStorageSaveData kkm_last_timestamp [10:51:58]File name is /storage/kkm_last_timestamp [10:51:58]Write 4 bytes [10:51:58]NVStorageSaveData done [10:51:58]ExternCall_PrintAddStr [10:51:58]wPrintStart [10:51:58]Write to MH i2c: 01 00 00 87 03 8A [10:51:59]OFD Sender: Processing packet 104340 [packets to send 17, broken 16] [10:51:59]ProducePacketName [10:51:59]name=ofd_packets/00104340 [10:51:59]OFD Sender: To server: pG, [10:51:59]CommunicateWithHost lk.salyk.kg:30040 [10:51:59]ConnectInit lk.salyk.kg [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FF 0F 9F [10:51:59]RasterBufferAndPrint [10:51:59]line Счет N : (1)673855 [10:51:59]line ИНН: 02508201610067 [10:51:59]line Контрольно-Кассовый Чек [10:51:59]line ПРОДАЖА [10:51:59]line ТРК (МРК, ГНК) : 31 [10:51:59]line Товар: 2710124500 [10:51:59]line Аи-95-К-5 [10:51:59]line 13.540 * 73.90 [10:51:59]line = 1000.61 [10:51:59]line НДС 12% НСП 1% [10:51:59]line > о реализуемом товаре [10:51:59]line ОКРУГЛЕНИЕ: -0.61 [10:51:59]line ИТОГО: 1000.00 [10:51:59]line Внесено: 1000.00 [10:51:59]line СДАЧА: 0.00 [10:51:59]line НСП 1% : 8.85 [10:51:59]line НДС 12% : 106.26 [10:51:59]line Наличными: 1000.00 [10:51:59]line Безнал.: 0.00 [10:51:59]line Место: АЗС № 120 "Партнер Нефть" [10:51:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:51:59]line СНО: Общий режим [10:51:59]line Чек 73 22.06.2024 10:51 [10:51:59]line Смена: 356 ФФД: 1.0 [10:51:59]line ЗНМ: 0300000164 [10:51:59]line РНМ: 0000000000092785 [10:51:59]line Версия ККМ: 001 [10:51:59]line ФМ: 0000000000875093 [10:51:59]line ФД: 104340 [10:51:59]line ФПД: 84113691289221 [10:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104340&fm=84113691289221&tin=02508201610067®Number=0000000000092785&sum=100000 [10:51:59]Connected sock=7 [10:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 22 59 07 01 C7 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 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 49 00 00 00 F4 03 04 00 CE AC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 80 3E B0 A6 85 B1 EF 0D 12 7E 92 19 74 [10:51:59]written 0, free lines is 4095 [10:51: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 A2 D5 47 00 55 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 97 01 00 F4 03 04 00 4D 53 76 66 B6 04 01 00 00 21 09 56 48 99 EA 97 5C [10:51:59]CommunicateWithHost err = 0 [10:51:59]CheckOFDResponse [10:51:59]1017 (14) - 77093643461234 [10:51:59]1041 (16) - 0000000000875093 [10:51:59]1040 (4) - 104340 [10:51:59]1012 (4) - 22.06.2024 04:30 [10:51:59]1206 (1) - 0 [10:51:59]OFD Sender: Remove packet 104340 [10:51:59]ProducePacketName [10:51:59]name=ofd_packets/00104340 [10:51:59]NVStorageDeleteData [10:51:59]Write to MH i2c: 01 00 00 B2 03 B5 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 D5 0C 9D [10:51:59]RasterBufferAndPrint [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]written 0, free lines is 3293 [10:51:59]MH_Cut [10:51:59]Write to MH i2c: D1 01 00 B9 03 01 8E [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 01 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 01 00 B9 03 00 8D [10:51:59]Write to MH i2c: 01 00 00 BA 03 BD [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:52:00]OFD Sender: No OFD packet to send [10:52:00]*** Cut start [10:52:00]*** Partial cut [10:52:00]*** CUTSNS_PIN = 1 [10:52:00]*** CUTSNS_PIN = 0 [10:52:00]*** Brake cut motor [10:52:01]Read from MH i2c: 01 [10:52:01]MH_I2C_Read... [10:52:01]*** Stop cut motor [10:52:01]*** Cut end [10:52:01]Read from MH i2c: 01 07 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 FF 0F D2 [10:52:01]process_action close_receipt done [10:52:01]requested_data is exist [10:52:01]produce_requested_data [10:52:01]requested_item fm.sn is exist - process it [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 11 00 00 [10:52:01]Write to MH i2c: E2 08 00 BB 03 80 11 00 00 00 00 00 00 38 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 17 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 17 00 BB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [10: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 [10:52:01]wFMCommunicate OK [10:52:01]requested_item fd.num is exist - process it [10:52:01]SAM_PROTO_GetFieldsCounters [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 00 00 [10:52:01]Write to MH i2c: E2 08 00 BC 03 80 13 00 00 00 00 00 00 3B [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 62 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 62 00 BC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 CE [10: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 94 97 01 00 0E 04 04 00 64 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 [10:52:01]wFMCommunicate OK [10:52:01]SAM_PROTO_GetFieldsCounters done [10:52:01]requested_item shift.num is exist - process it [10:52:01]requested_item shift.opened is exist - process it [10:52:01]req_shift_opened [10:52:01]FM_GetShiftState [10:52:01]SAM_PROTO_GetShiftState [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 01 00 [10:52:01]Write to MH i2c: E2 08 00 BD 03 80 13 01 00 00 00 00 00 3D [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 BD 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2F [10:52:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:52:01]wFMCommunicate OK [10:52:01]SAM_PROTO_GetShiftState done [10:52:01]FM_GetShiftState done [10:52:01]req_shift_opened done [10:52:01]requested_item shift.open_date is exist - process it [10:52:01]req_shift_open_date [10:52:01]req_shift_open_date done [10:52:01]produce_requested_data done [10:52:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104340,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:52:01]process_action_free close_receipt [10:52:01]json_value_free [10:52:01]json_value_free done [10:52:01]process_json_proto returns [10:52:01]Send response to host [10:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104340,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:52:01]free response buf [10:52:01]execute_script done [10:52:01]execute_script returns [10:52:01]free content buf [10:52:01]Sock 10.Close socket [10:52:01]Sock 10.Thread stoped [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:38]accept exits with 9 [10:54:38]New connection [10:54:38]New thread 3066592612 created [10:54:38]Thread 3066449252 joined [10:54:38]Waiting for new connection... [10:54:38] Sock 9.Parse request [10:54:38]Sock 9.Check first char [10:54:38]Sock 9.First char is OK [10:54:38]request: POST /json_proto HTTP/1.0 [10:54:38]Method: POST [10:54:38]URL: /json_proto [10:54:38]Method is POST - this is cgi request [10:54:38]url: /json_proto [10:54:38]query_string will be loaded in cgi processing [10:54:38]execute_cgi json_proto POST (null) [10:54:38]execute_cgi path=json_proto method=POST [10:54:38]POST find Content-Length [10:54:38]Host: 172.17.38.133:8080 [10:54:38]Content-Length: 677 [10:54:38]Content-Type: application/json [10:54:38] [10:54:38]POST finish read [10:54:38]Found Content-Length = 677 [10:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673858", "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:54:38]execute_script... [10:54: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)673858", "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:54:38]POST & json_proto [10:54:38]process_json_proto [10:54:38]json parsed OK: [10:54:38]protocol is kg_v1.0 [10:54:38]action value=close_receipt [10:54:38]process_action close_receipt [10:54:38]cmd_close_receipt [10:54:38]MH_GetDate [10:54:38]Write to MH i2c: F0 00 00 BE 03 B0 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: F0 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: F0 09 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: F0 09 00 BE 03 00 6F AD 76 66 BD 8F 7C 64 DD [10:54:38]GetLastDocTimeStamp 1719053518 [10:54:38]current date 1719053679 [10:54:38]FM_GetShiftState [10:54:38]SAM_PROTO_GetShiftState [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 13 01 00 [10:54:38]Write to MH i2c: E2 08 00 BF 03 80 13 01 00 00 00 00 00 3F [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0E 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0E 00 BF 03 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 31 [10:54:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:54:38]wFMCommunicate OK [10:54:38]SAM_PROTO_GetShiftState done [10:54:38]FM_GetShiftState done [10:54:38]opened in 1719016176 [10:54:38]opened+sec_in_day 1719102576 [10:54:38]quantity*price = 50065 [10:54:38]sum+1 = 50067 [10:54:38]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 СНО: Общий режим Чек 74 22.06.2024 10:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104341 ФПД: 244331107505591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105439&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104341&fm=244331107505591&tin=02508201610067®Number=0000000000092785&sum=50000 [10:54:39]StoreToDocumentArchive [10:54:39]shift 356 fd 104341 [10:54:39]save to /storage/0356/doc_00104341 [10:54:39]save last doc name /storage/0356/doc_00104341 to /storage/kkm_last_doc_name [10:54:39]save OK [10:54:39]Clear old archive folders... [10:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:39]tlvbuf is 00FB5310 [10:54:39]SAM_PROTO_ClearQueue [10:54:39]wFMCommunicate request_size=4 [10:54:39]MH_SAM_APDU [10:54:39]CAPDU: 80 09 00 00 [10:54:39]Write to MH i2c: E2 08 00 CC 03 80 09 00 00 00 00 00 00 41 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]SAM_PROTO_ClearQueue done [10:54:40]KKMCreateOFDPacket [10:54:40]OFDProtocolAddRootSTLVToBuf [10:54:40]FM_MakeSignedData [10:54:40]FM_MakeSignedData [10:54:40]SAM_PROTO_SignData [10:54:40]wFMCommunicate request_size=4 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 0D 01 02 [10:54:40]Write to MH i2c: E2 08 00 CD 03 80 0D 01 02 00 00 00 00 49 [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]wFMCommunicate request_size=255 [10:54:40]MH_SAM_APDU [10:54: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 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 4A 00 00 00 F4 03 04 00 6F AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DE [10:54:40]Write to MH i2c: E2 02 01 CE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 6F AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DE 00 00 B5 [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]OFD Sender: No OFD packet to send [10:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]wFMCommunicate request_size=10 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 0D 02 02 05 37 C4 DE D5 B7 [10:54:40]Write to MH i2c: E2 0D 00 CF 03 80 0D 02 02 05 00 37 C4 DE D5 B7 00 00 BB [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]wFMCommunicate request_size=4 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 0D 03 02 [10:54:40]Write to MH i2c: E2 08 00 D0 03 80 0D 03 02 00 00 00 00 4E [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 0B 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 0B 00 D0 03 00 FA 7D DE 62 E9 E9 39 4D 90 00 5E [10:54:40]RAPDU: FA 7D DE 62 E9 E9 39 4D 90 00 [10:54:40]wFMCommunicate OK [10:54:40]SAM_PROTO_SignData done [10:54:40]FM_MakeSignedData done [10:54:40]CreateOFDProtocolMessage [10:54:40]wFMCommunicate request_size=4 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 11 00 00 [10:54:40]Write to MH i2c: E2 08 00 D1 03 80 11 00 00 00 00 00 00 4E [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 17 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 17 00 D1 03 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:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:54:40]wFMCommunicate OK [10:54:40]CreateOFDProtocolMessage done [10:54:40]OFDSenderStorePacket 104341 [10:54:40]StoreOFDPacket docnum=104341 [10:54: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 3C 17 07 01 64 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 6F AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DE 37 C4 DE D5 B7 FA 7D DE 62 E9 E9 39 4D [10:54:40]CheckFolder [10:54:40]dirname=/storage/ofd_packets [10:54:40]CheckFolder done [10:54:40]ProducePacketName [10:54:40]name=ofd_packets/00104341 [10:54:40]NVStorageSaveData ofd_packets/00104341 [10:54:40]File name is /storage/ofd_packets/00104341 [10:54:40]Write 301 bytes [10:54:40]NVStorageSaveData done [10:54:40]OFDSenderStorePacket done [10:54:40]KKMCreateOFDPacket done [10:54:40]NVStorageSaveData kkm_last_timestamp [10:54:40]File name is /storage/kkm_last_timestamp [10:54:40]Write 4 bytes [10:54:40]NVStorageSaveData done [10:54:40]ExternCall_PrintAddStr [10:54:40]wPrintStart [10:54:40]Write to MH i2c: 01 00 00 D2 03 D5 [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: 01 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: 01 07 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 FF 0F EA [10:54:40]RasterBufferAndPrint [10:54:40]line Счет N : (1)673858 [10:54:40]line ИНН: 02508201610067 [10:54:40]line Контрольно-Кассовый Чек [10:54:40]line ПРОДАЖА [10:54:40]line ТРК (МРК, ГНК) : 42 [10:54:40]line Товар: 2710124130 [10:54:40]line Аи-92-К-5 [10:54:40]line 7.540 * 66.40 [10:54:40]line = 500.66 [10:54:40]line НДС 12% НСП 1% [10:54:40]line > о реализуемом товаре [10:54:40]line ОКРУГЛЕНИЕ: -0.66 [10:54:40]line ИТОГО: 500.00 [10:54:40]line Внесено: 500.00 [10:54:40]line СДАЧА: 0.00 [10:54:40]line НСП 1% : 4.43 [10:54:40]line НДС 12% : 53.17 [10:54:40]line Наличными: 500.00 [10:54:40]line Безнал.: 0.00 [10:54:40]line Место: АЗС № 120 "Партнер Нефть" [10:54:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:54:40]line СНО: Общий режим [10:54:40]line Чек 74 22.06.2024 10:54 [10:54:40]line Смена: 356 ФФД: 1.0 [10:54:40]line ЗНМ: 0300000164 [10:54:40]line РНМ: 0000000000092785 [10:54:40]line Версия ККМ: 001 [10:54:40]line ФМ: 0000000000875093 [10:54:40]line ФД: 104341 [10:54:40]line ФПД: 244331107505591 [10:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105439&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104341&fm=244331107505591&tin=02508201610067®Number=0000000000092785&sum=50000 [10:54:40]OFD Sender: Processing packet 104341 [packets to send 17, broken 16] [10:54:40]ProducePacketName [10:54:40]name=ofd_packets/00104341 [10:54:40]OFD Sender: To server: pG, [10:54:40]CommunicateWithHost lk.salyk.kg:30040 [10:54:40]ConnectInit lk.salyk.kg [10:54:40]written 0, free lines is 4095 [10:54:40]Connected sock=10 [10:54: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 3C 17 07 01 64 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 6F AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DE 37 C4 DE D5 B7 FA 7D DE 62 E9 E9 39 4D [10:54: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 3D 8F 47 00 F9 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 95 97 01 00 F4 03 04 00 EF 53 76 66 B6 04 01 00 00 73 C1 16 7B B2 AA 1E AF [10:54:41]CommunicateWithHost err = 0 [10:54:41]CheckOFDResponse [10:54:41]1017 (14) - 77093643461234 [10:54:41]1041 (16) - 0000000000875093 [10:54:41]1040 (4) - 104341 [10:54:41]1012 (4) - 22.06.2024 04:32 [10:54:41]1206 (1) - 0 [10:54:41]OFD Sender: Remove packet 104341 [10:54:41]ProducePacketName [10:54:41]name=ofd_packets/00104341 [10:54:41]NVStorageDeleteData [10:54:41]Write to MH i2c: 01 00 00 FD 03 00 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 C8 0C DB [10:54:41]RasterBufferAndPrint [10:54:41]line [10:54:41]line [10:54:41]line [10:54:41]line [10:54:41]line [10:54:41]written 0, free lines is 3279 [10:54:41]MH_Cut [10:54:41]Write to MH i2c: D1 01 00 04 04 01 DA [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: D1 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: D1 01 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: D1 01 00 04 04 00 D9 [10:54:41]Write to MH i2c: 01 00 00 05 04 09 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]OFD Sender: No OFD packet to send [10:54:42]*** Cut start [10:54:42]*** Partial cut [10:54:42]*** CUTSNS_PIN = 1 [10:54:42]*** CUTSNS_PIN = 0 [10:54:42]*** Brake cut motor [10:54:42]Read from MH i2c: 01 [10:54:42]MH_I2C_Read... [10:54:42]*** Stop cut motor [10:54:42]*** Cut end [10:54:42]Read from MH i2c: 01 07 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 FF 0F 1E [10:54:42]process_action close_receipt done [10:54:42]requested_data is exist [10:54:42]produce_requested_data [10:54:42]requested_item fm.sn is exist - process it [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 11 00 00 [10:54:42]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 17 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [10:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:54:42]wFMCommunicate OK [10:54:42]requested_item fd.num is exist - process it [10:54:42]SAM_PROTO_GetFieldsCounters [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 13 00 00 [10:54:42]Write to MH i2c: E2 08 00 07 04 80 13 00 00 00 00 00 00 87 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 62 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 62 00 07 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 1E [10:54: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 95 97 01 00 0E 04 04 00 64 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 [10:54:42]wFMCommunicate OK [10:54:42]SAM_PROTO_GetFieldsCounters done [10:54:42]requested_item shift.num is exist - process it [10:54:42]requested_item shift.opened is exist - process it [10:54:42]req_shift_opened [10:54:42]FM_GetShiftState [10:54:42]SAM_PROTO_GetShiftState [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 13 01 00 [10:54:42]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 0E 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [10:54:42]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:54:42]wFMCommunicate OK [10:54:42]SAM_PROTO_GetShiftState done [10:54:42]FM_GetShiftState done [10:54:42]req_shift_opened done [10:54:42]requested_item shift.open_date is exist - process it [10:54:42]req_shift_open_date [10:54:42]req_shift_open_date done [10:54:42]produce_requested_data done [10:54:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104341,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:54:42]process_action_free close_receipt [10:54:42]json_value_free [10:54:42]json_value_free done [10:54:42]process_json_proto returns [10:54:42]Send response to host [10:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104341,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:54:42]free response buf [10:54:42]execute_script done [10:54:42]execute_script returns [10:54:42]free content buf [10:54:42]Sock 9.Close socket [10:54:42]Sock 9.Thread stoped [10:54:43]accept exits with 7 [10:54:43]New connection [10:54:43]New thread 3066449252 created [10:54:43]Thread 3066592612 joined [10:54:43]Waiting for new connection... [10:54:43] Sock 7.Parse request [10:54:43]Sock 7.Check first char [10:54:43]Sock 7.First char is OK [10:54:43]request: POST /json_proto HTTP/1.0 [10:54:43]Method: POST [10:54:43]URL: /json_proto [10:54:43]Method is POST - this is cgi request [10:54:43]url: /json_proto [10:54:43]query_string will be loaded in cgi processing [10:54:43]execute_cgi json_proto POST (null) [10:54:43]execute_cgi path=json_proto method=POST [10:54:43]POST find Content-Length [10:54:43]Host: 172.17.38.133:8080 [10:54:43]Content-Length: 678 [10:54:43]Content-Type: application/json [10:54:43] [10:54:43]POST finish read [10:54:43]Found Content-Length = 678 [10:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673857", "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" ] } } [10:54:43]execute_script... [10:54: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)673857", "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" ] } } [10:54:43]POST & json_proto [10:54:43]process_json_proto [10:54:43]json parsed OK: [10:54:43]protocol is kg_v1.0 [10:54:43]action value=close_receipt [10:54:43]process_action close_receipt [10:54:43]cmd_close_receipt [10:54:43]MH_GetDate [10:54:43]Write to MH i2c: F0 00 00 09 04 FC [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 09 04 00 73 AD 76 66 BD 8F 7C 64 2D [10:54:43]GetLastDocTimeStamp 1719053679 [10:54:43]current date 1719053683 [10:54:43]FM_GetShiftState [10:54:43]SAM_PROTO_GetShiftState [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 13 01 00 [10:54:43]Write to MH i2c: E2 08 00 0A 04 80 13 01 00 00 00 00 00 8B [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 0A 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7D [10:54:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:54:43]wFMCommunicate OK [10:54:43]SAM_PROTO_GetShiftState done [10:54:43]FM_GetShiftState done [10:54:43]opened in 1719016176 [10:54:43]opened+sec_in_day 1719102576 [10:54:43]quantity*price = 70052 [10:54:43]sum+1 = 70053 [10:54: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 СНО: Общий режим Чек 75 22.06.2024 10:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104342 ФПД: 153023358631579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105444&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104342&fm=153023358631579&tin=02508201610067®Number=0000000000092785&sum=70000 [10:54:44]StoreToDocumentArchive [10:54:44]shift 356 fd 104342 [10:54:44]save to /storage/0356/doc_00104342 [10:54:44]save last doc name /storage/0356/doc_00104342 to /storage/kkm_last_doc_name [10:54:44]save OK [10:54:44]Clear old archive folders... [10:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:44]tlvbuf is 00FB6ED0 [10:54:44]SAM_PROTO_ClearQueue [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 09 00 00 [10:54:44]Write to MH i2c: E2 08 00 17 04 80 09 00 00 00 00 00 00 8D [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]SAM_PROTO_ClearQueue done [10:54:44]KKMCreateOFDPacket [10:54:44]OFDProtocolAddRootSTLVToBuf [10:54:44]FM_MakeSignedData [10:54:44]FM_MakeSignedData [10:54:44]SAM_PROTO_SignData [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 0D 01 02 [10:54:44]Write to MH i2c: E2 08 00 18 04 80 0D 01 02 00 00 00 00 95 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]wFMCommunicate request_size=255 [10:54:44]MH_SAM_APDU [10:54: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 4B 00 00 00 F4 03 04 00 74 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8B [10:54:44]Write to MH i2c: E2 02 01 19 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 74 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8B 00 00 C7 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=10 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 02 02 05 2C 86 EE FE 9B [10:54:45]Write to MH i2c: E2 0D 00 1A 04 80 0D 02 02 05 00 2C 86 EE FE 9B 00 00 DB [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 03 02 [10:54:45]Write to MH i2c: E2 08 00 1B 04 80 0D 03 02 00 00 00 00 9A [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 1B 04 00 93 EB 68 D4 D0 50 D9 15 90 00 63 [10:54:45]RAPDU: 93 EB 68 D4 D0 50 D9 15 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_SignData done [10:54:45]FM_MakeSignedData done [10:54:45]CreateOFDProtocolMessage [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 11 00 00 [10:54:45]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [10:54: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:54:45]wFMCommunicate OK [10:54:45]CreateOFDProtocolMessage done [10:54:45]OFDSenderStorePacket 104342 [10:54:45]StoreOFDPacket docnum=104342 [10:54: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 C5 BB 07 01 23 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 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 74 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8B 2C 86 EE FE 9B 93 EB 68 D4 D0 50 D9 15 [10:54:45]CheckFolder [10:54:45]dirname=/storage/ofd_packets [10:54:45]CheckFolder done [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00104342 [10:54:45]NVStorageSaveData ofd_packets/00104342 [10:54:45]File name is /storage/ofd_packets/00104342 [10:54:45]Write 301 bytes [10:54:45]NVStorageSaveData done [10:54:45]OFDSenderStorePacket done [10:54:45]KKMCreateOFDPacket done [10:54:45]NVStorageSaveData kkm_last_timestamp [10:54:45]File name is /storage/kkm_last_timestamp [10:54:45]Write 4 bytes [10:54:45]NVStorageSaveData done [10:54:45]ExternCall_PrintAddStr [10:54:45]wPrintStart [10:54:45]Write to MH i2c: 01 00 00 1D 04 21 [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 FF 0F 36 [10:54:45]RasterBufferAndPrint [10:54:45]line Счет N : (1)673857 [10:54:45]line ИНН: 02508201610067 [10:54:45]line Контрольно-Кассовый Чек [10:54:45]line ПРОДАЖА [10:54:45]line ТРК (МРК, ГНК) : 32 [10:54:45]line Товар: 2710124130 [10:54:45]line Аи-92-К-5 [10:54:45]line 10.550 * 66.40 [10:54:45]line = 700.52 [10:54:45]line НДС 12% НСП 1% [10:54:45]line > о реализуемом товаре [10:54:45]line ОКРУГЛЕНИЕ: -0.52 [10:54:45]line ИТОГО: 700.00 [10:54:45]line Внесено: 700.00 [10:54:45]line СДАЧА: 0.00 [10:54:45]line НСП 1% : 6.20 [10:54:45]line НДС 12% : 74.39 [10:54:45]line Наличными: 700.00 [10:54:45]line Безнал.: 0.00 [10:54:45]line Место: АЗС № 120 "Партнер Нефть" [10:54:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:54:45]line СНО: Общий режим [10:54:45]line Чек 75 22.06.2024 10:54 [10:54:45]line Смена: 356 ФФД: 1.0 [10:54:45]line ЗНМ: 0300000164 [10:54:45]line РНМ: 0000000000092785 [10:54:45]line Версия ККМ: 001 [10:54:45]line ФМ: 0000000000875093 [10:54:45]line ФД: 104342 [10:54:45]line ФПД: 153023358631579 [10:54:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105444&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104342&fm=153023358631579&tin=02508201610067®Number=0000000000092785&sum=70000 [10:54:45]OFD Sender: Processing packet 104342 [packets to send 17, broken 16] [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00104342 [10:54:45]OFD Sender: To server: pG, [10:54:45]CommunicateWithHost lk.salyk.kg:30040 [10:54:45]ConnectInit lk.salyk.kg [10:54:45]written 0, free lines is 4095 [10:54:45]Connected sock=10 [10:54: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 C5 BB 07 01 23 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 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 74 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8B 2C 86 EE FE 9B 93 EB 68 D4 D0 50 D9 15 [10:54: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 14 39 47 00 CF 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 96 97 01 00 F4 03 04 00 F3 53 76 66 B6 04 01 00 00 04 7A 05 23 F5 AE 4E 0C [10:54:45]CommunicateWithHost err = 0 [10:54:45]CheckOFDResponse [10:54:45]1017 (14) - 77093643461234 [10:54:45]1041 (16) - 0000000000875093 [10:54:45]1040 (4) - 104342 [10:54:45]1012 (4) - 22.06.2024 04:32 [10:54:45]1206 (1) - 0 [10:54:45]OFD Sender: Remove packet 104342 [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00104342 [10:54:45]NVStorageDeleteData [10:54:46]Write to MH i2c: 01 00 00 48 04 4C [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FA 0C 59 [10:54:46]RasterBufferAndPrint [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]written 0, free lines is 3335 [10:54:46]MH_Cut [10:54:46]Write to MH i2c: D1 01 00 4F 04 01 25 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 4F 04 00 24 [10:54:46]Write to MH i2c: 01 00 00 50 04 54 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]OFD Sender: No OFD packet to send [10:54:46]*** Cut start [10:54:46]*** Partial cut [10:54:46]*** CUTSNS_PIN = 1 [10:54:46]*** CUTSNS_PIN = 0 [10:54:47]*** Brake cut motor [10:54:47]Read from MH i2c: 01 *** Stop cut motor [10:54:47] [10:54:47]*** Cut end [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [10:54:47]process_action close_receipt done [10:54:47]requested_data is exist [10:54:47]produce_requested_data [10:54:47]requested_item fm.sn is exist - process it [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 11 00 00 [10:54:47]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 51 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [10:54: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:54:47]wFMCommunicate OK [10:54:47]requested_item fd.num is exist - process it [10:54:47]SAM_PROTO_GetFieldsCounters [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 00 00 [10:54:47]Write to MH i2c: E2 08 00 52 04 80 13 00 00 00 00 00 00 D2 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 52 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 6D [10:54: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 96 97 01 00 0E 04 04 00 64 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 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetFieldsCounters done [10:54:47]requested_item shift.num is exist - process it [10:54:47]requested_item shift.opened is exist - process it [10:54:47]req_shift_opened [10:54:47]FM_GetShiftState [10:54:47]SAM_PROTO_GetShiftState [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 01 00 [10:54:47]Write to MH i2c: E2 08 00 53 04 80 13 01 00 00 00 00 00 D4 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 53 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C6 [10:54:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetShiftState done [10:54:47]FM_GetShiftState done [10:54:47]req_shift_opened done [10:54:47]requested_item shift.open_date is exist - process it [10:54:47]req_shift_open_date [10:54:47]req_shift_open_date done [10:54:47]produce_requested_data done [10:54:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104342,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:54:47]process_action_free close_receipt [10:54:47]json_value_free [10:54:47]json_value_free done [10:54:47]process_json_proto returns [10:54:47]Send response to host [10:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104342,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:54:47]free response buf [10:54:47]execute_script done [10:54:47]execute_script returns [10:54:47]free content buf [10:54:47]Sock 7.Close socket [10:54:47]Sock 7.Thread stoped [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]accept exits with 9 [10:56:56]New connection [10:56:56]New thread 3066592612 created [10:56:56]Thread 3066449252 joined [10:56:56]Waiting for new connection... [10:56:56] Sock 9.Parse request [10:56:56]Sock 9.Check first char [10:56:56]Sock 9.First char is OK [10:56:56]request: POST /json_proto HTTP/1.0 [10:56:56]Method: POST [10:56:56]URL: /json_proto [10:56:56]Method is POST - this is cgi request [10:56:56]url: /json_proto [10:56:56]query_string will be loaded in cgi processing [10:56:56]execute_cgi json_proto POST (null) [10:56:56]execute_cgi path=json_proto method=POST [10:56:56]POST find Content-Length [10:56:56]Host: 172.17.38.133:8080 [10:56:56]Content-Length: 678 [10:56:56]Content-Type: application/json [10:56:56] [10:56:56]POST finish read [10:56:56]Found Content-Length = 678 [10:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673860", "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" ] } } [10:56:56]execute_script... [10:56: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)673860", "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" ] } } [10:56:56]POST & json_proto [10:56:56]process_json_proto [10:56:56]json parsed OK: [10:56:56]protocol is kg_v1.0 [10:56:56]action value=close_receipt [10:56:56]process_action close_receipt [10:56:56]cmd_close_receipt [10:56:56]MH_GetDate [10:56:56]Write to MH i2c: F0 00 00 54 04 47 [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: F0 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: F0 09 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: F0 09 00 54 04 00 F8 AD 76 66 BD 8F 7C 64 FD [10:56:56]GetLastDocTimeStamp 1719053684 [10:56:56]current date 1719053816 [10:56:56]FM_GetShiftState [10:56:56]SAM_PROTO_GetShiftState [10:56:56]wFMCommunicate request_size=4 [10:56:56]MH_SAM_APDU [10:56:56]CAPDU: 80 13 01 00 [10:56:56]Write to MH i2c: E2 08 00 55 04 80 13 01 00 00 00 00 00 D6 [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 55 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C8 [10:56:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:56:56]wFMCommunicate OK [10:56:56]SAM_PROTO_GetShiftState done [10:56:56]FM_GetShiftState done [10:56:56]opened in 1719016176 [10:56:56]opened+sec_in_day 1719102576 [10:56:56]quantity*price = 80012 [10:56:56]sum+1 = 80013 [10:56:56]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 СНО: Общий режим Чек 76 22.06.2024 10:56 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104343 ФПД: 176159786102732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104343&fm=176159786102732&tin=02508201610067®Number=0000000000092785&sum=80000 [10:56:57]StoreToDocumentArchive [10:56:57]shift 356 fd 104343 [10:56:57]save to /storage/0356/doc_00104343 [10:56:57]save last doc name /storage/0356/doc_00104343 to /storage/kkm_last_doc_name [10:56:57]save OK [10:56:57]Clear old archive folders... [10:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:57]tlvbuf is 00FB4BC0 [10:56:57]SAM_PROTO_ClearQueue [10:56:57]wFMCommunicate request_size=4 [10:56:57]MH_SAM_APDU [10:56:57]CAPDU: 80 09 00 00 [10:56:57]Write to MH i2c: E2 08 00 62 04 80 09 00 00 00 00 00 00 D8 [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:57]Read from MH i2c: E2 03 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [10:56:57]RAPDU: 90 00 [10:56:57]wFMCommunicate OK [10:56:57]SAM_PROTO_ClearQueue done [10:56:57]KKMCreateOFDPacket [10:56:57]OFDProtocolAddRootSTLVToBuf [10:56:57]FM_MakeSignedData [10:56:57]FM_MakeSignedData [10:56:57]SAM_PROTO_SignData [10:56:57]wFMCommunicate request_size=4 [10:56:57]MH_SAM_APDU [10:56:57]CAPDU: 80 0D 01 02 [10:56:57]Write to MH i2c: E2 08 00 63 04 80 0D 01 02 00 00 00 00 E0 [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [10:56:57]RAPDU: 90 00 [10:56:57]wFMCommunicate OK [10:56:57]wFMCommunicate request_size=255 [10:56:57]MH_SAM_APDU [10:56: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 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 4C 00 00 00 F4 03 04 00 F8 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A0 [10:56:57]Write to MH i2c: E2 02 01 64 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 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 4C 00 00 00 F4 03 04 00 F8 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A0 00 00 8A [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [10:56:57]RAPDU: 90 00 [10:56:57]wFMCommunicate OK [10:56:57]wFMCommunicate request_size=10 [10:56:57]MH_SAM_APDU [10:56:57]CAPDU: 80 0D 02 02 05 37 65 79 6F CC [10:56:57]Write to MH i2c: E2 0D 00 65 04 80 0D 02 02 05 00 37 65 79 6F CC 00 00 3D [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [10:56:57]RAPDU: 90 00 [10:56:57]wFMCommunicate OK [10:56:57]wFMCommunicate request_size=4 [10:56:57]MH_SAM_APDU [10:56:57]CAPDU: 80 0D 03 02 [10:56:57]Write to MH i2c: E2 08 00 66 04 80 0D 03 02 00 00 00 00 E5 [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 0B 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 0B 00 66 04 00 74 49 C8 91 DB 33 01 31 90 00 3C [10:56:57]RAPDU: 74 49 C8 91 DB 33 01 31 90 00 [10:56:57]wFMCommunicate OK [10:56:57]SAM_PROTO_SignData done [10:56:57]FM_MakeSignedData done [10:56:57]CreateOFDProtocolMessage [10:56:57]wFMCommunicate request_size=4 [10:56:57]MH_SAM_APDU [10:56:57]CAPDU: 80 11 00 00 [10:56:57]Write to MH i2c: E2 08 00 67 04 80 11 00 00 00 00 00 00 E5 [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:57]Read from MH i2c: E2 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 17 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: E2 17 00 67 04 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:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:56:57]wFMCommunicate OK [10:56:57]CreateOFDProtocolMessage done [10:56:57]OFDSenderStorePacket 104343 [10:56:57]StoreOFDPacket docnum=104343 [10:56: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 07 07 07 01 C7 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 F4 03 04 00 F8 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A0 37 65 79 6F CC 74 49 C8 91 DB 33 01 31 [10:56:57]CheckFolder [10:56:57]dirname=/storage/ofd_packets [10:56:57]CheckFolder done [10:56:57]ProducePacketName [10:56:57]name=ofd_packets/00104343 [10:56:57]NVStorageSaveData ofd_packets/00104343 [10:56:57]File name is /storage/ofd_packets/00104343 [10:56:57]Write 301 bytes [10:56:57]NVStorageSaveData done [10:56:57]OFDSenderStorePacket done [10:56:57]KKMCreateOFDPacket done [10:56:57]NVStorageSaveData kkm_last_timestamp [10:56:57]File name is /storage/kkm_last_timestamp [10:56:57]Write 4 bytes [10:56:57]NVStorageSaveData done [10:56:57]ExternCall_PrintAddStr [10:56:57]wPrintStart [10:56:57]Write to MH i2c: 01 00 00 68 04 6C [10:56:57]Write i2c OK [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: 01 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: 01 07 00 [10:56:57]MH_I2C_Read... [10:56:57]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 FF 0F 81 [10:56:57]RasterBufferAndPrint [10:56:57]line Счет N : (1)673860 [10:56:57]line ИНН: 02508201610067 [10:56:57]line Контрольно-Кассовый Чек [10:56:57]line ПРОДАЖА [10:56:57]line ТРК (МРК, ГНК) : 32 [10:56:57]line Товар: 2710124130 [10:56:57]line Аи-92-К-5 [10:56:57]line 12.050 * 66.40 [10:56:57]line = 800.12 [10:56:57]line НДС 12% НСП 1% [10:56:57]line > о реализуемом товаре [10:56:57]line ОКРУГЛЕНИЕ: -0.12 [10:56:57]line ИТОГО: 800.00 [10:56:57]line Внесено: 800.00 [10:56:57]line СДАЧА: 0.00 [10:56:57]line НСП 1% : 7.08 [10:56:57]line НДС 12% : 84.97 [10:56:57]line Наличными: 800.00 [10:56:57]line Безнал.: 0.00 [10:56:57]line Место: АЗС № 120 "Партнер Нефть" [10:56:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:56:57]line СНО: Общий режим [10:56:57]line Чек 76 22.06.2024 10:56 [10:56:57]line Смена: 356 ФФД: 1.0 [10:56:57]line ЗНМ: 0300000164 [10:56:57]line РНМ: 0000000000092785 [10:56:57]line Версия ККМ: 001 [10:56:57]line ФМ: 0000000000875093 [10:56:57]line ФД: 104343 [10:56:57]line ФПД: 176159786102732 [10:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104343&fm=176159786102732&tin=02508201610067®Number=0000000000092785&sum=80000 [10:56:58]OFD Sender: Processing packet 104343 [packets to send 17, broken 16] [10:56:58]ProducePacketName [10:56:58]name=ofd_packets/00104343 [10:56:58]OFD Sender: To server: pG, [10:56:58]CommunicateWithHost lk.salyk.kg:30040 [10:56:58]ConnectInit lk.salyk.kg [10:56:58]written 0, free lines is 4095 [10:56:58]Connected sock=11 [10:56: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 07 07 07 01 C7 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 F4 03 04 00 F8 AD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A0 37 65 79 6F CC 74 49 C8 91 DB 33 01 31 [10:56: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 57 40 47 00 C2 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 78 54 76 66 B6 04 01 00 00 D6 AE 44 2A 33 9D 06 D3 [10:56:58]CommunicateWithHost err = 0 [10:56:58]CheckOFDResponse [10:56:58]1017 (14) - 77093643461234 [10:56:58]1041 (16) - 0000000000875093 [10:56:58]1040 (4) - 104343 [10:56:58]1012 (4) - 22.06.2024 04:35 [10:56:58]1206 (1) - 0 [10:56:58]OFD Sender: Remove packet 104343 [10:56:58]ProducePacketName [10:56:58]name=ofd_packets/00104343 [10:56:58]NVStorageDeleteData [10:56:58]Write to MH i2c: 01 00 00 93 04 97 [10:56:58]Write i2c OK [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: 01 [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: 01 07 00 [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 DF 0C 89 [10:56:58]RasterBufferAndPrint [10:56:58]line [10:56:58]line [10:56:58]line [10:56:58]line [10:56:58]line [10:56:58]written 0, free lines is 3301 [10:56:58]MH_Cut [10:56:58]Write to MH i2c: D1 01 00 9A 04 01 70 [10:56:58]Write i2c OK [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: D1 [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: D1 01 00 [10:56:58]MH_I2C_Read... [10:56:58]Read from MH i2c: D1 01 00 9A 04 00 6F [10:56:58]Write to MH i2c: 01 00 00 9B 04 9F [10:56:58]Write i2c OK [10:56:58]MH_I2C_Read... [10:56:59]OFD Sender: No OFD packet to send [10:56:59]*** Cut start [10:56:59]*** Partial cut [10:56:59]*** CUTSNS_PIN = 1 [10:56:59]*** CUTSNS_PIN = 0 [10:56:59]*** Brake cut motor [10:56:59]Read from MH i2c: 01 [10:56:59]MH_I2C_Read... [10:56:59]*** Stop cut motor [10:56:59]*** Cut end [10:56:59]Read from MH i2c: 01 07 00 [10:56:59]MH_I2C_Read... [10:56:59]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [10:56:59]process_action close_receipt done [10:56:59]requested_data is exist [10:56:59]produce_requested_data [10:56:59]requested_item fm.sn is exist - process it [10:56:59]wFMCommunicate request_size=4 [10:56:59]MH_SAM_APDU [10:56:59]CAPDU: 80 11 00 00 [10:56:59]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [10:56:59]Write i2c OK [10:56:59]MH_I2C_Read... [10:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:00]Read from MH i2c: E2 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 17 00 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [10:57: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:57:00]wFMCommunicate OK [10:57:00]requested_item fd.num is exist - process it [10:57:00]SAM_PROTO_GetFieldsCounters [10:57:00]wFMCommunicate request_size=4 [10:57:00]MH_SAM_APDU [10:57:00]CAPDU: 80 13 00 00 [10:57:00]Write to MH i2c: E2 08 00 9D 04 80 13 00 00 00 00 00 00 1D [10:57:00]Write i2c OK [10:57:00]MH_I2C_Read... [10:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:00]Read from MH i2c: E2 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 62 00 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 62 00 9D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 BC [10:57: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 97 97 01 00 0E 04 04 00 64 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 [10:57:00]wFMCommunicate OK [10:57:00]SAM_PROTO_GetFieldsCounters done [10:57:00]requested_item shift.num is exist - process it [10:57:00]requested_item shift.opened is exist - process it [10:57:00]req_shift_opened [10:57:00]FM_GetShiftState [10:57:00]SAM_PROTO_GetShiftState [10:57:00]wFMCommunicate request_size=4 [10:57:00]MH_SAM_APDU [10:57:00]CAPDU: 80 13 01 00 [10:57:00]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [10:57:00]Write i2c OK [10:57:00]MH_I2C_Read... [10:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:00]Read from MH i2c: E2 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 0E 00 [10:57:00]MH_I2C_Read... [10:57:00]Read from MH i2c: E2 0E 00 9E 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 11 [10:57:00]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:57:00]wFMCommunicate OK [10:57:00]SAM_PROTO_GetShiftState done [10:57:00]FM_GetShiftState done [10:57:00]req_shift_opened done [10:57:00]requested_item shift.open_date is exist - process it [10:57:00]req_shift_open_date [10:57:00]req_shift_open_date done [10:57:00]produce_requested_data done [10:57:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:57:00]process_action_free close_receipt [10:57:00]json_value_free [10:57:00]json_value_free done [10:57:00]process_json_proto returns [10:57:00]Send response to host [10:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:57:00]free response buf [10:57:00]execute_script done [10:57:00]execute_script returns [10:57:00]free content buf [10:57:00]Sock 9.Close socket [10:57:00]Sock 9.Thread stoped [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:18]accept exits with 7 [10:57:18]New connection [10:57:18]New thread 3066449252 created [10:57:18]Thread 3066592612 joined [10:57:18]Waiting for new connection... [10:57:18] Sock 7.Parse request [10:57:18]Sock 7.Check first char [10:57:18]Sock 7.First char is OK [10:57:18]request: POST /json_proto HTTP/1.0 [10:57:18]Method: POST [10:57:18]URL: /json_proto [10:57:18]Method is POST - this is cgi request [10:57:18]url: /json_proto [10:57:18]query_string will be loaded in cgi processing [10:57:18]execute_cgi json_proto POST (null) [10:57:18]execute_cgi path=json_proto method=POST [10:57:18]POST find Content-Length [10:57:18]Host: 172.17.38.133:8080 [10:57:18]Content-Length: 1212 [10:57:18]Content-Type: application/json [10:57:18] [10:57:18]POST finish read [10:57:18]Found Content-Length = 1212 [10:57:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673859\u000A22.06.2024 10:34\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 32.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2332.80\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" ] } } [10:57:18]execute_script... [10:57:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673859\u000A22.06.2024 10:34\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 32.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2332.80\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" ] } } [10:57:18]POST & json_proto [10:57:18]process_json_proto [10:57:18]json parsed OK: [10:57:18]protocol is kg_v1.0 [10:57:18]action value=print_text [10:57:18]process_action print_text [10:57:18]cmd_print_text [10:57:18]ExternCall_PrintAddStr [10:57:18]wPrintStart [10:57:18]Write to MH i2c: 01 00 00 9F 04 A3 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [10:57:18]RasterBufferAndPrint [10:57:18]line *****ТОВАРНЫЙ ЧЕК***** [10:57:18]line АЗС 120 [10:57:18]line Партнер нефть [10:57:18]line 02508201610067 [10:57:18]line Кассир : Байбугуева Г. [10:57:18]line Счет N : (1)673859 [10:57:18]line 22.06.2024 10:34 [10:57:18]line ПРОДАЖА [10:57:18]line ТРК (МРК, ГНК): 21 [10:57:18]line Вид ГСМ : 2710194210 [10:57:18]line ДТ(л)-К-5 [10:57:18]line 32.000 x 72.90 [10:57:18]line ИТОГ: 2332.80 [10:57:18]line Тип оплаты: Талоны: Топливная Карта [10:57:18]line 00562 [10:57:18]line ______________________ [10:57:18]line (подпись) [10:57:18]written 0, free lines is 4095 [10:57:18]Write to MH i2c: 01 00 00 B3 04 B7 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 13 0E DF [10:57:18]RasterBufferAndPrint [10:57:18]line [10:57:18]line [10:57:18]line [10:57:18]line [10:57:18]line [10:57:18]written 0, free lines is 3605 [10:57:18]MH_Cut [10:57:18]Write to MH i2c: D1 01 00 BA 04 01 90 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: D1 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: D1 01 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: D1 01 00 BA 04 00 8F [10:57:18]Write to MH i2c: 01 00 00 BB 04 BF [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:19]OFD Sender: No OFD packet to send [10:57:19]*** Cut start [10:57:19]*** Partial cut [10:57:19]*** CUTSNS_PIN = 1 [10:57:19]*** CUTSNS_PIN = 0 [10:57:19]*** Brake cut motor [10:57:19]Read from MH i2c: 01 [10:57:19]MH_I2C_Read... [10:57:19]*** Stop cut motor [10:57:19]*** Cut end [10:57:19]Read from MH i2c: 01 07 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [10:57:19]process_action print_text done [10:57:19]requested_data is exist [10:57:19]produce_requested_data [10:57:19]requested_item fm.sn is exist - process it [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 11 00 00 [10:57:19]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [10:57: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:57:19]wFMCommunicate OK [10:57:19]requested_item fd.num is exist - process it [10:57:19]SAM_PROTO_GetFieldsCounters [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 00 00 [10:57:19]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:20]Read from MH i2c: E2 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 62 00 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 DC [10:57: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 97 97 01 00 0E 04 04 00 64 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 [10:57:20]wFMCommunicate OK [10:57:20]SAM_PROTO_GetFieldsCounters done [10:57:20]requested_item shift.num is exist - process it [10:57:20]requested_item shift.opened is exist - process it [10:57:20]req_shift_opened [10:57:20]FM_GetShiftState [10:57:20]SAM_PROTO_GetShiftState [10:57:20]wFMCommunicate request_size=4 [10:57:20]MH_SAM_APDU [10:57:20]CAPDU: 80 13 01 00 [10:57:20]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [10:57:20]Write i2c OK [10:57:20]MH_I2C_Read... [10:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:20]Read from MH i2c: E2 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 0E 00 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 31 [10:57:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:57:20]wFMCommunicate OK [10:57:20]SAM_PROTO_GetShiftState done [10:57:20]FM_GetShiftState done [10:57:20]req_shift_opened done [10:57:20]requested_item shift.open_date is exist - process it [10:57:20]req_shift_open_date [10:57:20]req_shift_open_date done [10:57:20]produce_requested_data done [10:57:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:57:20]process_action_free print_text [10:57:20]json_value_free [10:57:20]json_value_free done [10:57:20]process_json_proto returns [10:57:20]Send response to host [10:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:57:20]free response buf [10:57:20]execute_script done [10:57:20]execute_script returns [10:57:20]free content buf [10:57:20]Sock 7.Close socket [10:57:20]Sock 7.Thread stoped [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:33]accept exits with 9 [10:59:33]New connection [10:59:33]New thread 3066592612 created [10:59:33]Thread 3066449252 joined [10:59:33]Waiting for new connection... [10:59:33] Sock 9.Parse request [10:59:33]Sock 9.Check first char [10:59:33]Sock 9.First char is OK [10:59:33]request: POST /json_proto HTTP/1.0 [10:59:33]Method: POST [10:59:33]URL: /json_proto [10:59:33]Method is POST - this is cgi request [10:59:33]url: /json_proto [10:59:33]query_string will be loaded in cgi processing [10:59:33]execute_cgi json_proto POST (null) [10:59:33]execute_cgi path=json_proto method=POST [10:59:33]POST find Content-Length [10:59:33]Host: 172.17.38.133:8080 [10:59:33]Content-Length: 1174 [10:59:33]Content-Type: application/json [10:59:33] [10:59:33]POST finish read [10:59:33]Found Content-Length = 1174 [10:59: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673861\u000A22.06.2024 10:36\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: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:33]execute_script... [10:59: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673861\u000A22.06.2024 10:36\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: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:33]POST & json_proto [10:59:33]process_json_proto [10:59:33]json parsed OK: [10:59:33]protocol is kg_v1.0 [10:59:33]action value=print_text [10:59:33]process_action print_text [10:59:33]cmd_print_text [10:59:33]ExternCall_PrintAddStr [10:59:33]wPrintStart [10:59:33]Write to MH i2c: 01 00 00 BF 04 C3 [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 BF 04 00 00 00 00 00 FF 0F D8 [10:59:33]RasterBufferAndPrint [10:59:33]line *****ТОВАРНЫЙ ЧЕК***** [10:59:33]line АЗС 120 [10:59:33]line Партнер нефть [10:59:33]line 02508201610067 [10:59:33]line Кассир : Байбугуева Г. [10:59:33]line Счет N : (1)673861 [10:59:33]line 22.06.2024 10:36 [10:59:33]line ПРОДАЖА [10:59:33]line ТРК (МРК, ГНК): 11 [10:59:33]line Вид ГСМ : 2710194210 [10:59:33]line ДТ(л)-К-5 [10:59:33]line 20.000 x 72.90 [10:59:33]line ИТОГ: 1458.00 [10:59:33]line Тип оплаты: Талоны: ТК ГПНА Online [10:59:33]line 30101762 [10:59:33]line ______________________ [10:59:33]line (подпись) [10:59:33]written 0, free lines is 4095 [10:59:33]Write to MH i2c: 01 00 00 D3 04 D7 [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 D3 04 00 00 00 00 00 10 0E FC [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 3601 [10:59:33]MH_Cut [10:59:33]Write to MH i2c: D1 01 00 DA 04 01 B0 [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 DA 04 00 AF [10:59:33]Write to MH i2c: 01 00 00 DB 04 DF [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [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]OFD Sender: No OFD packet to send [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 DB 04 00 00 00 00 00 FF 0F F4 [10:59:34]process_action print_text 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 DC 04 80 11 00 00 00 00 00 00 5A [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 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [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 DD 04 80 13 00 00 00 00 00 00 5D [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 DD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 FC [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 97 97 01 00 0E 04 04 00 64 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 [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 DE 04 80 13 01 00 00 00 00 00 5F [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 0E 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 0E 00 DE 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 51 [10:59:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [10:59:34]wFMCommunicate OK [10:59:34]SAM_PROTO_GetShiftState done [10:59:34]FM_GetShiftState done [10:59:34]req_shift_opened done [10:59:34]requested_item shift.open_date is exist - process it [10:59:34]req_shift_open_date [10:59:34]req_shift_open_date done [10:59:34]produce_requested_data done [10:59:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [10:59:34]process_action_free print_text [10:59:34]json_value_free [10:59:34]json_value_free done [10:59:34]process_json_proto returns [10:59:34]Send response to host [10:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104343,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [10:59:34]free response buf [10:59:34]execute_script done [10:59:34]execute_script returns [10:59:34]free content buf [10:59:34]Sock 9.Close socket [10:59:34]Sock 9.Thread stoped [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]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:14]accept exits with 7 [11:03:14]New connection [11:03:14]New thread 3066449252 created [11:03:14]Thread 3066592612 joined [11:03:14]Waiting for new connection... [11:03:14] Sock 7.Parse request [11:03:14]Sock 7.Check first char [11:03:14]Sock 7.First char is OK [11:03:14]request: POST /json_proto HTTP/1.0 [11:03:14]Method: POST [11:03:14]URL: /json_proto [11:03:14]Method is POST - this is cgi request [11:03:14]url: /json_proto [11:03:14]query_string will be loaded in cgi processing [11:03:14]execute_cgi json_proto POST (null) [11:03:14]execute_cgi path=json_proto method=POST [11:03:14]POST find Content-Length [11:03:14]Host: 172.17.38.133:8080 [11:03:14]Content-Length: 808 [11:03:14]Content-Type: application/json [11:03:14] [11:03:14]POST finish read [11:03:14]Found Content-Length = 808 [11:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673862", "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" : 48.020, "sum" : 3500.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" : 3500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:14]execute_script... [11:03: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)673862", "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" : 48.020, "sum" : 3500.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" : 3500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:14]POST & json_proto [11:03:14]process_json_proto [11:03:14]json parsed OK: [11:03:14]protocol is kg_v1.0 [11:03:14]action value=close_receipt [11:03:14]process_action close_receipt [11:03:14]cmd_close_receipt [11:03:14]MH_GetDate [11:03:14]Write to MH i2c: F0 00 00 DF 04 D2 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: F0 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: F0 09 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: F0 09 00 DF 04 00 73 AF 76 66 BD 8F 7C 64 05 [11:03:14]GetLastDocTimeStamp 1719053816 [11:03:14]current date 1719054195 [11:03:14]FM_GetShiftState [11:03:14]SAM_PROTO_GetShiftState [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 13 01 00 [11:03:14]Write to MH i2c: E2 08 00 E0 04 80 13 01 00 00 00 00 00 61 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 0E 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 0E 00 E0 04 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 53 [11:03:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:03:14]wFMCommunicate OK [11:03:14]SAM_PROTO_GetShiftState done [11:03:14]FM_GetShiftState done [11:03:14]opened in 1719016176 [11:03:14]opened+sec_in_day 1719102576 [11:03:14]quantity*price = 350065 [11:03:14]sum+1 = 350067 [11:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.66 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 22.06.2024 11:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104344 ФПД: 221272659692007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110315&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104344&fm=221272659692007&tin=02508201610067®Number=0000000000092785&sum=350066 [11:03:15]StoreToDocumentArchive [11:03:15]shift 356 fd 104344 [11:03:15]save to /storage/0356/doc_00104344 [11:03:15]save last doc name /storage/0356/doc_00104344 to /storage/kkm_last_doc_name [11:03:15]save OK [11:03:15]Clear old archive folders... [11:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:03:15]tlvbuf is 00FC8A90 [11:03:15]SAM_PROTO_ClearQueue [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 09 00 00 [11:03:15]Write to MH i2c: E2 08 00 ED 04 80 09 00 00 00 00 00 00 63 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [11:03:15]RAPDU: 90 00 [11:03:15]wFMCommunicate OK [11:03:15]SAM_PROTO_ClearQueue done [11:03:15]KKMCreateOFDPacket [11:03:15]OFDProtocolAddRootSTLVToBuf [11:03:15]FM_MakeSignedData [11:03:15]FM_MakeSignedData [11:03:15]SAM_PROTO_SignData [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 0D 01 02 [11:03:15]Write to MH i2c: E2 08 00 EE 04 80 0D 01 02 00 00 00 00 6B [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [11:03:15]RAPDU: 90 00 [11:03:15]wFMCommunicate OK [11:03:15]wFMCommunicate request_size=255 [11:03:15]MH_SAM_APDU [11:03:15]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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 73 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [11:03:15]Write to MH i2c: E2 02 01 EF 04 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 73 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D3 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [11:03:16]RAPDU: 90 00 [11:03:16]wFMCommunicate OK [11:03:16]wFMCommunicate request_size=11 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 0D 02 02 06 C9 3F 0E 47 89 E7 [11:03:16]Write to MH i2c: E2 0E 00 F0 04 80 0D 02 02 06 00 C9 3F 0E 47 89 E7 00 00 47 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 F0 04 00 90 00 68 [11:03:16]RAPDU: 90 00 [11:03:16]wFMCommunicate OK [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 0D 03 02 [11:03:16]Write to MH i2c: E2 08 00 F1 04 80 0D 03 02 00 00 00 00 70 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 0B 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 0B 00 F1 04 00 EC 0D 25 A4 3F 01 05 38 90 00 B0 [11:03:16]RAPDU: EC 0D 25 A4 3F 01 05 38 90 00 [11:03:16]wFMCommunicate OK [11:03:16]SAM_PROTO_SignData done [11:03:16]FM_MakeSignedData done [11:03:16]CreateOFDProtocolMessage [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 11 00 00 [11:03:16]Write to MH i2c: E2 08 00 F2 04 80 11 00 00 00 00 00 00 70 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 17 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 17 00 F2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [11:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:03:16]wFMCommunicate OK [11:03:16]CreateOFDProtocolMessage done [11:03:16]OFDSenderStorePacket 104344 [11:03:16]StoreOFDPacket docnum=104344 [11:03: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 C0 8F 08 01 D2 55 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 73 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C9 3F 0E 47 89 E7 EC 0D 25 A4 3F 01 05 38 [11:03:16]CheckFolder [11:03:16]dirname=/storage/ofd_packets [11:03:16]CheckFolder done [11:03:16]ProducePacketName [11:03:16]name=ofd_packets/00104344 [11:03:16]NVStorageSaveData ofd_packets/00104344 [11:03:16]File name is /storage/ofd_packets/00104344 [11:03:16]Write 302 bytes [11:03:16]NVStorageSaveData done [11:03:16]OFDSenderStorePacket done [11:03:16]KKMCreateOFDPacket done [11:03:16]NVStorageSaveData kkm_last_timestamp [11:03:16]File name is /storage/kkm_last_timestamp [11:03:16]Write 4 bytes [11:03:16]NVStorageSaveData done [11:03:16]ExternCall_PrintAddStr [11:03:16]wPrintStart [11:03:16]Write to MH i2c: 01 00 00 F3 04 F7 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 FF 0F 0C [11:03:16]RasterBufferAndPrint [11:03:16]line Счет N : (1)673862 [11:03:16]line ИНН: 02508201610067 [11:03:16]line Контрольно-Кассовый Чек [11:03:16]line ПРОДАЖА [11:03:16]line ТРК (МРК, ГНК) : 21 [11:03:16]line Товар: 2710194210 [11:03:16]line ДТ(л)-К-5 [11:03:16]line 48.020 * 72.90 [11:03:16]line = 3500.66 [11:03:16]line НДС 12% НСП 1% [11:03:16]line > о реализуемом товаре [11:03:16]line ИТОГО: 3500.66 [11:03:16]line НСП 1% : 30.98 [11:03:16]line НДС 12% : 371.75 [11:03:16]line Наличными: 0.00 [11:03:16]line Безнал.: 3500.66 [11:03:16]line Место: АЗС № 120 "Партнер Нефть" [11:03:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:03:16]line СНО: Общий режим [11:03:16]line Чек 77 22.06.2024 11:03 [11:03:16]line Смена: 356 ФФД: 1.0 [11:03:16]line ЗНМ: 0300000164 [11:03:16]line РНМ: 0000000000092785 [11:03:16]line Версия ККМ: 001 [11:03:16]line Платежная система: O! деньги [11:03:16]line ФМ: 0000000000875093 [11:03:16]line ФД: 104344 [11:03:16]line ФПД: 221272659692007 [11:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110315&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104344&fm=221272659692007&tin=02508201610067®Number=0000000000092785&sum=350066 [11:03:16]OFD Sender: Processing packet 104344 [packets to send 17, broken 16] [11:03:16]ProducePacketName [11:03:16]name=ofd_packets/00104344 [11:03:16]OFD Sender: To server: pG, [11:03:16]CommunicateWithHost lk.salyk.kg:30040 [11:03:16]ConnectInit lk.salyk.kg [11:03:16]written 0, free lines is 4095 [11:03:16]Connected sock=10 [11:03: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 10 01 00 00 C0 8F 08 01 D2 55 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 73 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C9 3F 0E 47 89 E7 EC 0D 25 A4 3F 01 05 38 [11:03: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 95 CC 47 00 03 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 98 97 01 00 F4 03 04 00 F2 55 76 66 B6 04 01 00 00 4E 83 7C 99 64 47 8B 97 [11:03:17]CommunicateWithHost err = 0 [11:03:17]CheckOFDResponse [11:03:17]1017 (14) - 77093643461234 [11:03:17]1041 (16) - 0000000000875093 [11:03:17]1040 (4) - 104344 [11:03:17]1012 (4) - 22.06.2024 04:41 [11:03:17]1206 (1) - 0 [11:03:17]OFD Sender: Remove packet 104344 [11:03:17]ProducePacketName [11:03:17]name=ofd_packets/00104344 [11:03:17]NVStorageDeleteData [11:03:17]Write to MH i2c: 01 00 00 1D 05 22 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 E3 0C 18 [11:03:17]RasterBufferAndPrint [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]written 0, free lines is 3306 [11:03:17]MH_Cut [11:03:17]Write to MH i2c: D1 01 00 24 05 01 FB [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 01 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 01 00 24 05 00 FA [11:03:17]Write to MH i2c: 01 00 00 25 05 2A [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]OFD Sender: No OFD packet to send [11:03:17]*** Cut start [11:03:17]*** Partial cut [11:03:17]*** CUTSNS_PIN = 1 [11:03:18]*** CUTSNS_PIN = 0 [11:03:18]*** Brake cut motor [11:03:18]Read from MH i2c: 01 [11:03:18]MH_I2C_Read... [11:03:18]*** Stop cut motor [11:03:18]*** Cut end [11:03:18]Read from MH i2c: 01 07 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 FF 0F 3F [11:03:18]process_action close_receipt done [11:03:18]requested_data is exist [11:03:18]produce_requested_data [11:03:18]requested_item fm.sn is exist - process it [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 11 00 00 [11:03:18]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 17 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 17 00 26 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [11:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:03:18]wFMCommunicate OK [11:03:18]requested_item fd.num is exist - process it [11:03:18]SAM_PROTO_GetFieldsCounters [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 13 00 00 [11:03:18]Write to MH i2c: E2 08 00 27 05 80 13 00 00 00 00 00 00 A8 [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 62 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 62 00 27 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 4B [11:03: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 98 97 01 00 0E 04 04 00 64 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 [11:03:18]wFMCommunicate OK [11:03:18]SAM_PROTO_GetFieldsCounters done [11:03:18]requested_item shift.num is exist - process it [11:03:18]requested_item shift.opened is exist - process it [11:03:18]req_shift_opened [11:03:18]FM_GetShiftState [11:03:18]SAM_PROTO_GetShiftState [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 13 01 00 [11:03:18]Write to MH i2c: E2 08 00 28 05 80 13 01 00 00 00 00 00 AA [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 0E 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 0E 00 28 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9C [11:03:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:03:18]wFMCommunicate OK [11:03:18]SAM_PROTO_GetShiftState done [11:03:18]FM_GetShiftState done [11:03:18]req_shift_opened done [11:03:18]requested_item shift.open_date is exist - process it [11:03:18]req_shift_open_date [11:03:18]req_shift_open_date done [11:03:18]produce_requested_data done [11:03:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104344,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:03:18]process_action_free close_receipt [11:03:18]json_value_free [11:03:18]json_value_free done [11:03:18]process_json_proto returns [11:03:18]Send response to host [11:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104344,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:03:18]free response buf [11:03:18]execute_script done [11:03:18]execute_script returns [11:03:18]free content buf [11:03:18]Sock 7.Close socket [11:03:18]Sock 7.Thread stoped [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:49]accept exits with 9 [11:03:49]New connection [11:03:49]New thread 3066592612 created [11:03:49]Thread 3066449252 joined [11:03:49]Waiting for new connection... [11:03:49] Sock 9.Parse request [11:03:49]Sock 9.Check first char [11:03:49]Sock 9.First char is OK [11:03:49]request: POST /json_proto HTTP/1.0 [11:03:49]Method: POST [11:03:49]URL: /json_proto [11:03:49]Method is POST - this is cgi request [11:03:49]url: /json_proto [11:03:49]query_string will be loaded in cgi processing [11:03:49]execute_cgi json_proto POST (null) [11:03:49]execute_cgi path=json_proto method=POST [11:03:49]POST find Content-Length [11:03:49]Host: 172.17.38.133:8080 [11:03:49]Content-Length: 677 [11:03:49]Content-Type: application/json [11:03:49] [11:03:49]POST finish read [11:03:49]Found Content-Length = 677 [11:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673863", "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" ] } } [11:03:49]execute_script... [11:03: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)673863", "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" ] } } [11:03:49]POST & json_proto [11:03:49]process_json_proto [11:03:49]json parsed OK: [11:03:49]protocol is kg_v1.0 [11:03:49]action value=close_receipt [11:03:49]process_action close_receipt [11:03:49]cmd_close_receipt [11:03:49]MH_GetDate [11:03:49]Write to MH i2c: F0 00 00 29 05 1D [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 09 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 09 00 29 05 00 95 AF 76 66 BD 8F 7C 64 72 [11:03:49]GetLastDocTimeStamp 1719054195 [11:03:49]current date 1719054229 [11:03:49]FM_GetShiftState [11:03:49]SAM_PROTO_GetShiftState [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 13 01 00 [11:03:49]Write to MH i2c: E2 08 00 2A 05 80 13 01 00 00 00 00 00 AC [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 2A 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9E [11:03:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_GetShiftState done [11:03:49]FM_GetShiftState done [11:03:49]opened in 1719016176 [11:03:49]opened+sec_in_day 1719102576 [11:03:49]quantity*price = 40039 [11:03:49]sum+1 = 40040 [11:03: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 СНО: Общий режим Чек 78 22.06.2024 11:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104345 ФПД: 215680950181515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104345&fm=215680950181515&tin=02508201610067®Number=0000000000092785&sum=40000 [11:03:50]StoreToDocumentArchive [11:03:50]shift 356 fd 104345 [11:03:50]save to /storage/0356/doc_00104345 [11:03:50]save last doc name /storage/0356/doc_00104345 to /storage/kkm_last_doc_name [11:03:50]save OK [11:03:50]Clear old archive folders... [11:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:50]tlvbuf is 00FB9F80 [11:03:50]SAM_PROTO_ClearQueue [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 09 00 00 [11:03:50]Write to MH i2c: E2 08 00 37 05 80 09 00 00 00 00 00 00 AE [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_ClearQueue done [11:03:50]KKMCreateOFDPacket [11:03:50]OFDProtocolAddRootSTLVToBuf [11:03:50]FM_MakeSignedData [11:03:50]FM_MakeSignedData [11:03:50]SAM_PROTO_SignData [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 01 02 [11:03:50]Write to MH i2c: E2 08 00 38 05 80 0D 01 02 00 00 00 00 B6 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=255 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 95 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 [11:03:50]Write to MH i2c: E2 02 01 39 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 95 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 00 00 06 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=10 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 02 02 05 29 22 6B 9E 8B [11:03:50]Write to MH i2c: E2 0D 00 3A 05 80 0D 02 02 05 00 29 22 6B 9E 8B 00 00 A2 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 3A 05 00 90 00 B3 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 03 02 [11:03:50]Write to MH i2c: E2 08 00 3B 05 80 0D 03 02 00 00 00 00 BB [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0B 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0B 00 3B 05 00 AD D7 95 A4 09 8E D7 FA 90 00 E1 [11:03:50]RAPDU: AD D7 95 A4 09 8E D7 FA 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_SignData done [11:03:50]FM_MakeSignedData done [11:03:50]CreateOFDProtocolMessage [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 11 00 00 [11:03:50]Write to MH i2c: E2 08 00 3C 05 80 11 00 00 00 00 00 00 BB [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 3C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [11:03: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:03:50]wFMCommunicate OK [11:03:50]CreateOFDProtocolMessage done [11:03:50]OFDSenderStorePacket 104345 [11:03:50]StoreOFDPacket docnum=104345 [11:03: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 0F 01 00 00 37 94 07 01 17 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 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 4E 00 00 00 F4 03 04 00 95 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 29 22 6B 9E 8B AD D7 95 A4 09 8E D7 FA [11:03:50]CheckFolder [11:03:50]dirname=/storage/ofd_packets [11:03:50]CheckFolder done [11:03:50]ProducePacketName [11:03:50]name=ofd_packets/00104345 [11:03:50]NVStorageSaveData ofd_packets/00104345 [11:03:50]File name is /storage/ofd_packets/00104345 [11:03:50]Write 301 bytes [11:03:50]NVStorageSaveData done [11:03:50]OFDSenderStorePacket done [11:03:50]KKMCreateOFDPacket done [11:03:50]NVStorageSaveData kkm_last_timestamp [11:03:50]File name is /storage/kkm_last_timestamp [11:03:50]Write 4 bytes [11:03:50]NVStorageSaveData done [11:03:50]ExternCall_PrintAddStr [11:03:50]wPrintStart [11:03:50]Write to MH i2c: 01 00 00 3D 05 42 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [11:03:50]RasterBufferAndPrint [11:03:50]line Счет N : (1)673863 [11:03:50]line ИНН: 02508201610067 [11:03:50]line Контрольно-Кассовый Чек [11:03:50]line ПРОДАЖА [11:03:50]line ТРК (МРК, ГНК) : 32 [11:03:50]line Товар: 2710124130 [11:03:50]line Аи-92-К-5 [11:03:50]line 6.030 * 66.40 [11:03:50]line = 400.39 [11:03:50]line НДС 12% НСП 1% [11:03:50]line > о реализуемом товаре [11:03:50]line ОКРУГЛЕНИЕ: -0.39 [11:03:50]line ИТОГО: 400.00 [11:03:50]line Внесено: 400.00 [11:03:50]line СДАЧА: 0.00 [11:03:50]line НСП 1% : 3.54 [11:03:50]line НДС 12% : 42.52 [11:03:50]line Наличными: 400.00 [11:03:50]line Безнал.: 0.00 [11:03:50]line Место: АЗС № 120 "Партнер Нефть" [11:03:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:03:50]line СНО: Общий режим [11:03:50]line Чек 78 22.06.2024 11:03 [11:03:50]line Смена: 356 ФФД: 1.0 [11:03:50]line ЗНМ: 0300000164 [11:03:50]line РНМ: 0000000000092785 [11:03:50]line Версия ККМ: 001 [11:03:50]line ФМ: 0000000000875093 [11:03:50]line ФД: 104345 [11:03:51]line ФПД: 215680950181515 [11:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104345&fm=215680950181515&tin=02508201610067®Number=0000000000092785&sum=40000 [11:03:51]OFD Sender: Processing packet 104345 [packets to send 17, broken 16] [11:03:51]ProducePacketName [11:03:51]name=ofd_packets/00104345 [11:03:51]OFD Sender: To server: pG, [11:03:51]CommunicateWithHost lk.salyk.kg:30040 [11:03:51]ConnectInit lk.salyk.kg [11:03:51]written 0, free lines is 4095 [11:03:51]Connected sock=11 [11:03: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 37 94 07 01 17 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 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 4E 00 00 00 F4 03 04 00 95 AF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 29 22 6B 9E 8B AD D7 95 A4 09 8E D7 FA [11:03: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 05 0A 47 00 E0 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 99 97 01 00 F4 03 04 00 15 56 76 66 B6 04 01 00 00 1F 5B B7 88 46 6A 6C 3E [11:03:51]CommunicateWithHost err = 0 [11:03:51]CheckOFDResponse [11:03:51]1017 (14) - 77093643461234 [11:03:51]1041 (16) - 0000000000875093 [11:03:51]1040 (4) - 104345 [11:03:51]1012 (4) - 22.06.2024 04:41 [11:03:51]1206 (1) - 0 [11:03:51]OFD Sender: Remove packet 104345 [11:03:51]ProducePacketName [11:03:51]name=ofd_packets/00104345 [11:03:51]NVStorageDeleteData [11:03:51]Write to MH i2c: 01 00 00 68 05 6D [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 07 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 CD 0C 4D [11:03:51]RasterBufferAndPrint [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]written 0, free lines is 3280 [11:03:51]MH_Cut [11:03:51]Write to MH i2c: D1 01 00 6F 05 01 46 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 01 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 01 00 6F 05 00 45 [11:03:51]Write to MH i2c: 01 00 00 70 05 75 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:52]OFD Sender: No OFD packet to send [11:03:52]*** Cut start [11:03:52]*** Partial cut [11:03:52]*** CUTSNS_PIN = 1 [11:03:52]*** CUTSNS_PIN = 0 [11:03:52]*** Brake cut motor [11:03:52]Read from MH i2c: 01 [11:03:52]MH_I2C_Read... [11:03:52]*** Stop cut motor [11:03:52]*** Cut end [11:03:52]Read from MH i2c: 01 07 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [11:03:52]process_action close_receipt done [11:03:52]requested_data is exist [11:03:52]produce_requested_data [11:03:52]requested_item fm.sn is exist - process it [11:03:52]wFMCommunicate request_size=4 [11:03:52]MH_SAM_APDU [11:03:52]CAPDU: 80 11 00 00 [11:03:52]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [11:03: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:03:53]wFMCommunicate OK [11:03:53]requested_item fd.num is exist - process it [11:03:53]SAM_PROTO_GetFieldsCounters [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 00 00 [11:03:53]Write to MH i2c: E2 08 00 72 05 80 13 00 00 00 00 00 00 F3 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 72 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 9A [11:03: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 99 97 01 00 0E 04 04 00 64 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 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetFieldsCounters done [11:03:53]requested_item shift.num is exist - process it [11:03:53]requested_item shift.opened is exist - process it [11:03:53]req_shift_opened [11:03:53]FM_GetShiftState [11:03:53]SAM_PROTO_GetShiftState [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 01 00 [11:03:53]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E7 [11:03:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetShiftState done [11:03:53]FM_GetShiftState done [11:03:53]req_shift_opened done [11:03:53]requested_item shift.open_date is exist - process it [11:03:53]req_shift_open_date [11:03:53]req_shift_open_date done [11:03:53]produce_requested_data done [11:03:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104345,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:03:53]process_action_free close_receipt [11:03:53]json_value_free [11:03:53]json_value_free done [11:03:53]process_json_proto returns [11:03:53]Send response to host [11:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104345,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:03:53]free response buf [11:03:53]execute_script done [11:03:53]execute_script returns [11:03:53]free content buf [11:03:53]Sock 9.Close socket [11:03:53]Sock 9.Thread stoped [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:00]accept exits with 7 [11:10:00]New connection [11:10:00]New thread 3066449252 created [11:10:00]Thread 3066592612 joined [11:10:00]Waiting for new connection... [11:10:00] Sock 7.Parse request [11:10:00]Sock 7.Check first char [11:10:00]Sock 7.First char is OK [11:10:00]request: POST /json_proto HTTP/1.0 [11:10:00]Method: POST [11:10:00]URL: /json_proto [11:10:00]Method is POST - this is cgi request [11:10:00]url: /json_proto [11:10:00]query_string will be loaded in cgi processing [11:10:00]execute_cgi json_proto POST (null) [11:10:00]execute_cgi path=json_proto method=POST [11:10:00]POST find Content-Length [11:10:00]Host: 172.17.38.133:8080 [11:10:00]Content-Length: 1211 [11:10:00]Content-Type: application/json [11:10:00] [11:10:00]POST finish read [11:10:00]Found Content-Length = 1211 [11:10: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673864\u000A22.06.2024 10:46\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 12.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 874.80\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" ] } } [11:10:00]execute_script... [11:10: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673864\u000A22.06.2024 10:46\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 12.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 874.80\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" ] } } [11:10:00]POST & json_proto [11:10:00]process_json_proto [11:10:00]json parsed OK: [11:10:00]protocol is kg_v1.0 [11:10:00]action value=print_text [11:10:00]process_action print_text [11:10:00]cmd_print_text [11:10:00]ExternCall_PrintAddStr [11:10:00]wPrintStart [11:10:00]Write to MH i2c: 01 00 00 74 05 79 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [11:10:00]RasterBufferAndPrint [11:10:00]line *****ТОВАРНЫЙ ЧЕК***** [11:10:00]line АЗС 120 [11:10:00]line Партнер нефть [11:10:00]line 02508201610067 [11:10:00]line Кассир : Байбугуева Г. [11:10:00]line Счет N : (1)673864 [11:10:00]line 22.06.2024 10:46 [11:10:00]line ПРОДАЖА [11:10:00]line ТРК (МРК, ГНК): 21 [11:10:00]line Вид ГСМ : 2710194210 [11:10:00]line ДТ(л)-К-5 [11:10:00]line 12.000 x 72.90 [11:10:00]line ИТОГ: 874.80 [11:10:00]line Тип оплаты: Талоны: Топливная Карта [11:10:00]line 00562 [11:10:00]line ______________________ [11:10:00]line (подпись) [11:10:00]written 0, free lines is 4095 [11:10:00]Write to MH i2c: 01 00 00 88 05 8D [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 11 0E B3 [11:10:00]RasterBufferAndPrint [11:10:00]line [11:10:00]line [11:10:00]line [11:10:00]line [11:10:00]line [11:10:00]written 0, free lines is 3602 [11:10:00]MH_Cut [11:10:00]Write to MH i2c: D1 01 00 8F 05 01 66 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 01 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 01 00 8F 05 00 65 [11:10:00]Write to MH i2c: 01 00 00 90 05 95 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** Cut start [11:10:00]*** Partial cut [11:10:00]*** CUTSNS_PIN = 1 [11:10:00]*** CUTSNS_PIN = 0 [11:10:01]*** Brake cut motor [11:10:01]Read from MH i2c: 01 [11:10:01]MH_I2C_Read... [11:10:01]*** Stop cut motor [11:10:01]*** Cut end [11:10:01]Read from MH i2c: 01 07 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [11:10:01]process_action print_text done [11:10:01]requested_data is exist [11:10:01]produce_requested_data [11:10:01]requested_item fm.sn is exist - process it [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 11 00 00 [11:10:01]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 17 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [11:10:01]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:01]wFMCommunicate OK [11:10:01]requested_item fd.num is exist - process it [11:10:01]SAM_PROTO_GetFieldsCounters [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 13 00 00 [11:10:01]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 62 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 BA [11:10: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 99 97 01 00 0E 04 04 00 64 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 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_GetFieldsCounters done [11:10:01]requested_item shift.num is exist - process it [11:10:01]requested_item shift.opened is exist - process it [11:10:01]req_shift_opened [11:10:01]FM_GetShiftState [11:10:01]SAM_PROTO_GetShiftState [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 13 01 00 [11:10:01]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 07 [11:10:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_GetShiftState done [11:10:01]FM_GetShiftState done [11:10:01]req_shift_opened done [11:10:01]requested_item shift.open_date is exist - process it [11:10:01]req_shift_open_date [11:10:01]req_shift_open_date done [11:10:01]produce_requested_data done [11:10:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104345,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:10:01]process_action_free print_text [11:10:01]json_value_free [11:10:01]json_value_free done [11:10:01]process_json_proto returns [11:10:01]Send response to host [11:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104345,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:10:01]free response buf [11:10:01]execute_script done [11:10:01]execute_script returns [11:10:01]free content buf [11:10:01]Sock 7.Close socket [11:10:01]Sock 7.Thread stoped [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:31]accept exits with 9 [11:12:31]New connection [11:12:31]New thread 3066592612 created [11:12:31]Thread 3066449252 joined [11:12:31]Waiting for new connection... [11:12:31] Sock 9.Parse request [11:12:31]Sock 9.Check first char [11:12:31]Sock 9.First char is OK [11:12:31]request: POST /json_proto HTTP/1.0 [11:12:31]Method: POST [11:12:31]URL: /json_proto [11:12:31]Method is POST - this is cgi request [11:12:31]url: /json_proto [11:12:31]query_string will be loaded in cgi processing [11:12:31]execute_cgi json_proto POST (null) [11:12:31]execute_cgi path=json_proto method=POST [11:12:31]POST find Content-Length [11:12:31]Host: 172.17.38.133:8080 [11:12:31]Content-Length: 682 [11:12:31]Content-Type: application/json [11:12:31] [11:12:31]POST finish read [11:12:31]Found Content-Length = 682 [11:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673865", "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" ] } } [11:12:31]execute_script... [11:12: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)673865", "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" ] } } [11:12:31]POST & json_proto [11:12:31]process_json_proto [11:12:31]json parsed OK: [11:12:31]protocol is kg_v1.0 [11:12:31]action value=close_receipt [11:12:31]process_action close_receipt [11:12:31]cmd_close_receipt [11:12:31]MH_GetDate [11:12:31]Write to MH i2c: F0 00 00 94 05 88 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 09 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 09 00 94 05 00 A0 B1 76 66 BD 8F 7C 64 EA [11:12:31]GetLastDocTimeStamp 1719054229 [11:12:31]current date 1719054752 [11:12:31]FM_GetShiftState [11:12:31]SAM_PROTO_GetShiftState [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 01 00 [11:12:31]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 09 [11:12:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetShiftState done [11:12:31]FM_GetShiftState done [11:12:31]opened in 1719016176 [11:12:31]opened+sec_in_day 1719102576 [11:12:31]quantity*price = 100060 [11:12:31]sum+1 = 100062 [11:12:31]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 СНО: Общий режим Чек 79 22.06.2024 11:12 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104346 ФПД: 170698702152079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104346&fm=170698702152079&tin=02508201610067®Number=0000000000092785&sum=100000 [11:12:32]StoreToDocumentArchive [11:12:32]shift 356 fd 104346 [11:12:32]save to /storage/0356/doc_00104346 [11:12:32]save last doc name /storage/0356/doc_00104346 to /storage/kkm_last_doc_name [11:12:32]save OK [11:12:32]Clear old archive folders... [11:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:32]tlvbuf is 00FB65A0 [11:12:32]SAM_PROTO_ClearQueue [11:12:32]wFMCommunicate request_size=4 [11:12:32]MH_SAM_APDU [11:12:32]CAPDU: 80 09 00 00 [11:12:32]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:32]Read from MH i2c: E2 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: E2 03 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [11:12:32]RAPDU: 90 00 [11:12:32]wFMCommunicate OK [11:12:32]SAM_PROTO_ClearQueue done [11:12:32]KKMCreateOFDPacket [11:12:32]OFDProtocolAddRootSTLVToBuf [11:12:32]FM_MakeSignedData [11:12:32]FM_MakeSignedData [11:12:32]SAM_PROTO_SignData [11:12:32]wFMCommunicate request_size=4 [11:12:32]MH_SAM_APDU [11:12:32]CAPDU: 80 0D 01 02 [11:12:32]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:32]Read from MH i2c: E2 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: E2 03 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [11:12:32]RAPDU: 90 00 [11:12:32]wFMCommunicate OK [11:12:32]wFMCommunicate request_size=255 [11:12:32]MH_SAM_APDU [11:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 A0 B1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B [11:12:32]Write to MH i2c: E2 02 01 A4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 00 00 00 F4 03 04 00 A0 B1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 00 00 CA [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]wFMCommunicate request_size=10 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 02 02 05 3F E3 81 61 8F [11:12:33]Write to MH i2c: E2 0D 00 A5 05 80 0D 02 02 05 00 3F E3 81 61 8F 00 00 C1 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 03 02 [11:12:33]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0B 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0B 00 A6 05 00 AC E0 8C 4B E0 E8 A6 56 90 00 4E [11:12:33]RAPDU: AC E0 8C 4B E0 E8 A6 56 90 00 [11:12:33]wFMCommunicate OK [11:12:33]SAM_PROTO_SignData done [11:12:33]FM_MakeSignedData done [11:12:33]CreateOFDProtocolMessage [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 11 00 00 [11:12:33]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 17 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [11:12:33]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:33]wFMCommunicate OK [11:12:33]CreateOFDProtocolMessage done [11:12:33]OFDSenderStorePacket 104346 [11:12:33]StoreOFDPacket docnum=104346 [11:12: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 86 FD 07 01 DD 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 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 4F 00 00 00 F4 03 04 00 A0 B1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 3F E3 81 61 8F AC E0 8C 4B E0 E8 A6 56 [11:12:33]CheckFolder [11:12:33]dirname=/storage/ofd_packets [11:12:33]CheckFolder done [11:12:33]ProducePacketName [11:12:33]name=ofd_packets/00104346 [11:12:33]NVStorageSaveData ofd_packets/00104346 [11:12:33]File name is /storage/ofd_packets/00104346 [11:12:33]Write 301 bytes [11:12:33]NVStorageSaveData done [11:12:33]OFDSenderStorePacket done [11:12:33]KKMCreateOFDPacket done [11:12:33]NVStorageSaveData kkm_last_timestamp [11:12:33]File name is /storage/kkm_last_timestamp [11:12:33]Write 4 bytes [11:12:33]NVStorageSaveData done [11:12:33]ExternCall_PrintAddStr [11:12:33]wPrintStart [11:12:33]Write to MH i2c: 01 00 00 A8 05 AD [11:12:33]OFD Sender: Processing packet 104346 [packets to send 17, broken 16] [11:12:33]ProducePacketName [11:12:33]name=ofd_packets/00104346 [11:12:33]OFD Sender: To server: pG, [11:12:33]CommunicateWithHost lk.salyk.kg:30040 [11:12:33]ConnectInit lk.salyk.kg [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [11:12:33]RasterBufferAndPrint [11:12:33]line Счет N : (1)673865 [11:12:33]line ИНН: 02508201610067 [11:12:33]line Контрольно-Кассовый Чек [11:12:33]line ПРОДАЖА [11:12:33]line ТРК (МРК, ГНК) : 31 [11:12:33]line Товар: 2710124500 [11:12:33]line Аи-95-К-5 [11:12:33]line 13.540 * 73.90 [11:12:33]line = 1000.61 [11:12:33]line НДС 12% НСП 1% [11:12:33]line > о реализуемом товаре [11:12:33]line ОКРУГЛЕНИЕ: -0.61 [11:12:33]line ИТОГО: 1000.00 [11:12:33]line Внесено: 1000.00 [11:12:33]line СДАЧА: 0.00 [11:12:33]line НСП 1% : 8.85 [11:12:33]line НДС 12% : 106.26 [11:12:33]line Наличными: 1000.00 [11:12:33]line Безнал.: 0.00 [11:12:33]line Место: АЗС № 120 "Партнер Нефть" [11:12:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:12:33]line СНО: Общий режим [11:12:33]line Чек 79 22.06.2024 11:12 [11:12:33]line Смена: 356 ФФД: 1.0 [11:12:33]line ЗНМ: 0300000164 [11:12:33]line РНМ: 0000000000092785 [11:12:33]line Версия ККМ: 001 [11:12:33]line ФМ: 0000000000875093 [11:12:33]line ФД: 104346 [11:12:33]line ФПД: 170698702152079 [11:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104346&fm=170698702152079&tin=02508201610067®Number=0000000000092785&sum=100000 [11:12:33]Connected sock=10 [11:12: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 86 FD 07 01 DD 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 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 4F 00 00 00 F4 03 04 00 A0 B1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 3F E3 81 61 8F AC E0 8C 4B E0 E8 A6 56 [11:12:33]written 0, free lines is 4095 [11:12: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 34 FB 47 00 37 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 9A 97 01 00 F4 03 04 00 1F 58 76 66 B6 04 01 00 00 0F C3 C1 07 9D 1A 94 2D [11:12:33]CommunicateWithHost err = 0 [11:12:33]CheckOFDResponse [11:12:33]1017 (14) - 77093643461234 [11:12:33]1041 (16) - 0000000000875093 [11:12:33]1040 (4) - 104346 [11:12:33]1012 (4) - 22.06.2024 04:50 [11:12:33]1206 (1) - 0 [11:12:33]OFD Sender: Remove packet 104346 [11:12:33]ProducePacketName [11:12:33]name=ofd_packets/00104346 [11:12:33]NVStorageDeleteData [11:12:34]Write to MH i2c: 01 00 00 D3 05 D8 [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 07 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 D0 0C BB [11:12:34]RasterBufferAndPrint [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]written 0, free lines is 3287 [11:12:34]MH_Cut [11:12:34]Write to MH i2c: D1 01 00 DA 05 01 B1 [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 01 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 01 00 DA 05 00 B0 [11:12:34]Write to MH i2c: 01 00 00 DB 05 E0 [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]OFD Sender: No OFD packet to send [11:12:34]*** Cut start [11:12:34]*** Partial cut [11:12:34]*** CUTSNS_PIN = 1 [11:12:34]*** CUTSNS_PIN = 0 [11:12:35]*** Brake cut motor [11:12:35]Read from MH i2c: 01 [11:12:35]MH_I2C_Read... [11:12:35]*** Stop cut motor [11:12:35]*** Cut end [11:12:35]Read from MH i2c: 01 07 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [11:12:35]process_action close_receipt done [11:12:35]requested_data is exist [11:12:35]produce_requested_data [11:12:35]requested_item fm.sn is exist - process it [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 11 00 00 [11:12:35]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [11:12:35]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:35]wFMCommunicate OK [11:12:35]requested_item fd.num is exist - process it [11:12:35]SAM_PROTO_GetFieldsCounters [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 13 00 00 [11:12:35]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 62 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 09 [11:12: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 9A 97 01 00 0E 04 04 00 64 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 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_GetFieldsCounters done [11:12:35]requested_item shift.num is exist - process it [11:12:35]requested_item shift.opened is exist - process it [11:12:35]req_shift_opened [11:12:35]FM_GetShiftState [11:12:35]SAM_PROTO_GetShiftState [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 13 01 00 [11:12:35]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 52 [11:12:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_GetShiftState done [11:12:35]FM_GetShiftState done [11:12:35]req_shift_opened done [11:12:35]requested_item shift.open_date is exist - process it [11:12:35]req_shift_open_date [11:12:35]req_shift_open_date done [11:12:35]produce_requested_data done [11:12:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104346,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:12:35]process_action_free close_receipt [11:12:35]json_value_free [11:12:35]json_value_free done [11:12:35]process_json_proto returns [11:12:35]Send response to host [11:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104346,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:12:35]free response buf [11:12:35]execute_script done [11:12:35]execute_script returns [11:12:35]free content buf [11:12:35]Sock 9.Close socket [11:12:35]Sock 9.Thread stoped [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15: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:09]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:08]accept exits with 7 [11:29:08]New connection [11:29:08]New thread 3066449252 created [11:29:08]Thread 3066592612 joined [11:29:08]Waiting for new connection... [11:29:08] Sock 7.Parse request [11:29:08]Sock 7.Check first char [11:29:08]Sock 7.First char is OK [11:29:08]request: POST /json_proto HTTP/1.0 [11:29:08]Method: POST [11:29:08]URL: /json_proto [11:29:08]Method is POST - this is cgi request [11:29:08]url: /json_proto [11:29:08]query_string will be loaded in cgi processing [11:29:08]execute_cgi json_proto POST (null) [11:29:08]execute_cgi path=json_proto method=POST [11:29:08]POST find Content-Length [11:29:08]Host: 172.17.38.133:8080 [11:29:08]Content-Length: 1167 [11:29:08]Content-Type: application/json [11:29:08] [11:29:08]POST finish read [11:29:08]Found Content-Length = 1167 [11:29: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673867\u000A22.06.2024 11:06\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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:08]execute_script... [11:29: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673867\u000A22.06.2024 11:06\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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:08]POST & json_proto [11:29:08]process_json_proto [11:29:08]json parsed OK: [11:29:08]protocol is kg_v1.0 [11:29:08]action value=print_text [11:29:08]process_action print_text [11:29:08]cmd_print_text [11:29:08]ExternCall_PrintAddStr [11:29:08]wPrintStart [11:29:08]Write to MH i2c: 01 00 00 DF 05 E4 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [11:29:08]RasterBufferAndPrint [11:29:08]line *****ТОВАРНЫЙ ЧЕК***** [11:29:08]line АЗС 120 [11:29:08]line Партнер нефть [11:29:08]line 02508201610067 [11:29:08]line Кассир : Байбугуева Г. [11:29:08]line Счет N : (1)673867 [11:29:08]line 22.06.2024 11:06 [11:29:08]line ПРОДАЖА [11:29:08]line ТРК (МРК, ГНК): 32 [11:29:08]line Вид ГСМ : 2710124130 [11:29:08]line Аи-92-К-5 [11:29:08]line 7.540 x 66.40 [11:29:08]line ИТОГ: 500.66 [11:29:08]line Тип оплаты: Талоны: ТК ГПНА Online [11:29:08]line 30072831 [11:29:08]line ______________________ [11:29:08]line (подпись) [11:29:08]written 0, free lines is 4095 [11:29:08]Write to MH i2c: 01 00 00 F3 05 F8 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 11 0E 1E [11:29:08]RasterBufferAndPrint [11:29:08]line [11:29:08]line [11:29:08]line [11:29:08]line [11:29:08]line [11:29:08]written 0, free lines is 3602 [11:29:08]MH_Cut [11:29:08]Write to MH i2c: D1 01 00 FA 05 01 D1 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: D1 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: D1 01 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: D1 01 00 FA 05 00 D0 [11:29:08]Write to MH i2c: 01 00 00 FB 05 00 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:09]*** Cut start [11:29:09]*** Partial cut [11:29:09]*** CUTSNS_PIN = 1 [11:29:09]*** CUTSNS_PIN = 0 [11:29:09]*** Brake cut motor [11:29:09]Read from MH i2c: 01 [11:29:09]MH_I2C_Read... [11:29:09]*** Stop cut motor [11:29:09]*** Cut end [11:29:09]Read from MH i2c: 01 07 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 FF 0F 15 [11:29:09]process_action print_text done [11:29:09]requested_data is exist [11:29:09]produce_requested_data [11:29:09]requested_item fm.sn is exist - process it [11:29:09]wFMCommunicate request_size=4 [11:29:09]MH_SAM_APDU [11:29:09]CAPDU: 80 11 00 00 [11:29:09]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:09]Read from MH i2c: E2 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 17 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [11:29: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:29:09]wFMCommunicate OK [11:29:09]requested_item fd.num is exist - process it [11:29:09]SAM_PROTO_GetFieldsCounters [11:29:09]wFMCommunicate request_size=4 [11:29:09]MH_SAM_APDU [11:29:09]CAPDU: 80 13 00 00 [11:29:09]Write to MH i2c: E2 08 00 FD 05 80 13 00 00 00 00 00 00 7E [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:10]Read from MH i2c: E2 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 62 00 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 62 00 FD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 29 [11:29: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 9A 97 01 00 0E 04 04 00 64 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 [11:29:10]wFMCommunicate OK [11:29:10]SAM_PROTO_GetFieldsCounters done [11:29:10]requested_item shift.num is exist - process it [11:29:10]requested_item shift.opened is exist - process it [11:29:10]req_shift_opened [11:29:10]FM_GetShiftState [11:29:10]SAM_PROTO_GetShiftState [11:29:10]wFMCommunicate request_size=4 [11:29:10]MH_SAM_APDU [11:29:10]CAPDU: 80 13 01 00 [11:29:10]Write to MH i2c: E2 08 00 FE 05 80 13 01 00 00 00 00 00 80 [11:29:10]Write i2c OK [11:29:10]MH_I2C_Read... [11:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:10]Read from MH i2c: E2 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 0E 00 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 0E 00 FE 05 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 72 [11:29:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:29:10]wFMCommunicate OK [11:29:10]SAM_PROTO_GetShiftState done [11:29:10]FM_GetShiftState done [11:29:10]req_shift_opened done [11:29:10]requested_item shift.open_date is exist - process it [11:29:10]req_shift_open_date [11:29:10]req_shift_open_date done [11:29:10]produce_requested_data done [11:29:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104346,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:29:10]process_action_free print_text [11:29:10]json_value_free [11:29:10]json_value_free done [11:29:10]process_json_proto returns [11:29:10]Send response to host [11:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104346,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:29:10]free response buf [11:29:10]execute_script done [11:29:10]execute_script returns [11:29:10]free content buf [11:29:10]Sock 7.Close socket [11:29:10]Sock 7.Thread stoped [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:34]accept exits with 9 [11:29:34]New connection [11:29:34]New thread 3066592612 created [11:29:34]Thread 3066449252 joined [11:29:34]Waiting for new connection... [11:29:34] Sock 9.Parse request [11:29:34]Sock 9.Check first char [11:29:34]Sock 9.First char is OK [11:29:34]request: POST /json_proto HTTP/1.0 [11:29:34]Method: POST [11:29:34]URL: /json_proto [11:29:34]Method is POST - this is cgi request [11:29:34]url: /json_proto [11:29:34]query_string will be loaded in cgi processing [11:29:34]execute_cgi json_proto POST (null) [11:29:34]execute_cgi path=json_proto method=POST [11:29:34]POST find Content-Length [11:29:34]Host: 172.17.38.133:8080 [11:29:34]Content-Length: 687 [11:29:34]Content-Type: application/json [11:29:34] [11:29:34]POST finish read [11:29:34]Found Content-Length = 687 [11:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673868", "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" : 19.210, "sum" : 1400.41, "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" ] } } [11:29:34]execute_script... [11:29: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)673868", "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" : 19.210, "sum" : 1400.41, "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" ] } } [11:29:34]POST & json_proto [11:29:34]process_json_proto [11:29:34]json parsed OK: [11:29:34]protocol is kg_v1.0 [11:29:34]action value=close_receipt [11:29:34]process_action close_receipt [11:29:34]cmd_close_receipt [11:29:34]MH_GetDate [11:29:34]Write to MH i2c: F0 00 00 FF 05 F3 [11:29:34]Write i2c OK [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: F0 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: F0 09 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: F0 09 00 FF 05 00 9F B5 76 66 BD 8F 7C 64 58 [11:29:34]GetLastDocTimeStamp 1719054752 [11:29:34]current date 1719055775 [11:29:34]FM_GetShiftState [11:29:34]SAM_PROTO_GetShiftState [11:29:34]wFMCommunicate request_size=4 [11:29:34]MH_SAM_APDU [11:29:34]CAPDU: 80 13 01 00 [11:29:34]Write to MH i2c: E2 08 00 00 06 80 13 01 00 00 00 00 00 83 [11:29:34]Write i2c OK [11:29:34]MH_I2C_Read... [11:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:34]Read from MH i2c: E2 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 0E 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 0E 00 00 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 75 [11:29:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:29:34]wFMCommunicate OK [11:29:34]SAM_PROTO_GetShiftState done [11:29:34]FM_GetShiftState done [11:29:34]opened in 1719016176 [11:29:34]opened+sec_in_day 1719102576 [11:29:34]quantity*price = 140040 [11:29:34]sum+1 = 140042 [11:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 22.06.2024 11:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104347 ФПД: 106978775385295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T112935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104347&fm=106978775385295&tin=02508201610067®Number=0000000000092785&sum=140000 [11:29:35]StoreToDocumentArchive [11:29:35]shift 356 fd 104347 [11:29:35]save to /storage/0356/doc_00104347 [11:29:35]save last doc name /storage/0356/doc_00104347 to /storage/kkm_last_doc_name [11:29:35]save OK [11:29:35]Clear old archive folders... [11:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:29:35]tlvbuf is 00FC8D10 [11:29:35]SAM_PROTO_ClearQueue [11:29:35]wFMCommunicate request_size=4 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 09 00 00 [11:29:35]Write to MH i2c: E2 08 00 0D 06 80 09 00 00 00 00 00 00 85 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [11:29:35]RAPDU: 90 00 [11:29:35]wFMCommunicate OK [11:29:35]SAM_PROTO_ClearQueue done [11:29:35]KKMCreateOFDPacket [11:29:35]OFDProtocolAddRootSTLVToBuf [11:29:35]FM_MakeSignedData [11:29:35]FM_MakeSignedData [11:29:35]SAM_PROTO_SignData [11:29:35]wFMCommunicate request_size=4 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 0D 01 02 [11:29:35]Write to MH i2c: E2 08 00 0E 06 80 0D 01 02 00 00 00 00 8D [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:35]Read from MH i2c: E2 03 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [11:29:35]RAPDU: 90 00 [11:29:35]wFMCommunicate OK [11:29:35]wFMCommunicate request_size=255 [11:29:35]MH_SAM_APDU [11:29: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 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 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 18 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 50 00 00 00 F4 03 04 00 9F B5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [11:29:35]Write to MH i2c: E2 02 01 0F 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 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 18 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 50 00 00 00 F4 03 04 00 9F B5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 3E [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [11:29:35]RAPDU: 90 00 [11:29:35]wFMCommunicate OK [11:29:35]wFMCommunicate request_size=11 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 0D 02 02 06 61 4B EF E7 C4 CF [11:29:35]Write to MH i2c: E2 0E 00 10 06 80 0D 02 02 06 00 61 4B EF E7 C4 CF 00 00 B1 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [11:29:35]RAPDU: 90 00 [11:29:35]wFMCommunicate OK [11:29:35]wFMCommunicate request_size=4 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 0D 03 02 [11:29:35]Write to MH i2c: E2 08 00 11 06 80 0D 03 02 00 00 00 00 92 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 0B 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 0B 00 11 06 00 D9 2C 8F 6D B9 0F 58 CA 90 00 7E [11:29:35]RAPDU: D9 2C 8F 6D B9 0F 58 CA 90 00 [11:29:35]wFMCommunicate OK [11:29:35]SAM_PROTO_SignData done [11:29:35]FM_MakeSignedData done [11:29:35]CreateOFDProtocolMessage [11:29:35]wFMCommunicate request_size=4 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 11 00 00 [11:29:35]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:36]Read from MH i2c: E2 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 17 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [11:29:36]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:36]wFMCommunicate OK [11:29:36]CreateOFDProtocolMessage done [11:29:36]OFDSenderStorePacket 104347 [11:29:36]StoreOFDPacket docnum=104347 [11:29: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 2A ED 08 01 13 ED 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 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 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 18 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 50 00 00 00 F4 03 04 00 9F B5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 61 4B EF E7 C4 CF D9 2C 8F 6D B9 0F 58 CA [11:29:36]CheckFolder [11:29:36]dirname=/storage/ofd_packets [11:29:36]CheckFolder done [11:29:36]ProducePacketName [11:29:36]name=ofd_packets/00104347 [11:29:36]NVStorageSaveData ofd_packets/00104347 [11:29:36]File name is /storage/ofd_packets/00104347 [11:29:36]Write 302 bytes [11:29:36]NVStorageSaveData done [11:29:36]OFDSenderStorePacket done [11:29:36]KKMCreateOFDPacket done [11:29:36]NVStorageSaveData kkm_last_timestamp [11:29:36]File name is /storage/kkm_last_timestamp [11:29:36]Write 4 bytes [11:29:36]NVStorageSaveData done [11:29:36]ExternCall_PrintAddStr [11:29:36]wPrintStart [11:29:36]Write to MH i2c: 01 00 00 13 06 19 [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 07 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [11:29:36]RasterBufferAndPrint [11:29:36]line Счет N : (1)673868 [11:29:36]line ИНН: 02508201610067 [11:29:36]line Контрольно-Кассовый Чек [11:29:36]line ПРОДАЖА [11:29:36]line ТРК (МРК, ГНК) : 11 [11:29:36]line Товар: 2710194210 [11:29:36]line ДТ(л)-К-5 [11:29:36]line 19.210 * 72.90 [11:29:36]line = 1400.41 [11:29:36]line НДС 12% НСП 1% [11:29:36]line > о реализуемом товаре [11:29:36]line ОКРУГЛЕНИЕ: -0.41 [11:29:36]line ИТОГО: 1400.00 [11:29:36]line Внесено: 1400.00 [11:29:36]line СДАЧА: 0.00 [11:29:36]line НСП 1% : 12.39 [11:29:36]line НДС 12% : 148.72 [11:29:36]line Наличными: 1400.00 [11:29:36]line Безнал.: 0.00 [11:29:36]line Место: АЗС № 120 "Партнер Нефть" [11:29:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:29:36]line СНО: Общий режим [11:29:36]line Чек 80 22.06.2024 11:29 [11:29:36]line Смена: 356 ФФД: 1.0 [11:29:36]line ЗНМ: 0300000164 [11:29:36]line РНМ: 0000000000092785 [11:29:36]line Версия ККМ: 001 [11:29:36]line ФМ: 0000000000875093 [11:29:36]line ФД: 104347 [11:29:36]line ФПД: 106978775385295 [11:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T112935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104347&fm=106978775385295&tin=02508201610067®Number=0000000000092785&sum=140000 [11:29:36]OFD Sender: Processing packet 104347 [packets to send 17, broken 16] [11:29:36]ProducePacketName [11:29:36]name=ofd_packets/00104347 [11:29:36]OFD Sender: To server: pG, [11:29:36]CommunicateWithHost lk.salyk.kg:30040 [11:29:36]ConnectInit lk.salyk.kg [11:29:36]written 0, free lines is 4095 [11:29:36]Connected sock=10 [11:29: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 2A ED 08 01 13 ED 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 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 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 18 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 50 00 00 00 F4 03 04 00 9F B5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 61 4B EF E7 C4 CF D9 2C 8F 6D B9 0F 58 CA [11:29: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 A7 6D 47 00 C4 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 9B 97 01 00 F4 03 04 00 1E 5C 76 66 B6 04 01 00 00 1B 7D 8E 6D D1 02 E6 C7 [11:29:36]CommunicateWithHost err = 0 [11:29:36]CheckOFDResponse [11:29:36]1017 (14) - 77093643461234 [11:29:36]1041 (16) - 0000000000875093 [11:29:36]1040 (4) - 104347 [11:29:36]1012 (4) - 22.06.2024 05:07 [11:29:36]1206 (1) - 0 [11:29:36]OFD Sender: Remove packet 104347 [11:29:36]ProducePacketName [11:29:36]name=ofd_packets/00104347 [11:29:36]NVStorageDeleteData [11:29:36]Write to MH i2c: 01 00 00 3E 06 44 [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 07 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 CF 0C 26 [11:29:36]RasterBufferAndPrint [11:29:36]line [11:29:36]line [11:29:36]line [11:29:36]line [11:29:36]line [11:29:36]written 0, free lines is 3285 [11:29:36]MH_Cut [11:29:36]Write to MH i2c: D1 01 00 45 06 01 1D [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: D1 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: D1 01 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: D1 01 00 45 06 00 1C [11:29:36]Write to MH i2c: 01 00 00 46 06 4C [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:37]OFD Sender: No OFD packet to send [11:29:37]*** Cut start [11:29:37]*** Partial cut [11:29:37]*** CUTSNS_PIN = 1 [11:29:37]*** CUTSNS_PIN = 0 [11:29:37]*** Brake cut motor [11:29:38]Read from MH i2c: 01 [11:29:38]MH_I2C_Read... [11:29:38]*** Stop cut motor [11:29:38]*** Cut end [11:29:38]Read from MH i2c: 01 07 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [11:29:38]process_action close_receipt done [11:29:38]requested_data is exist [11:29:38]produce_requested_data [11:29:38]requested_item fm.sn is exist - process it [11:29:38]wFMCommunicate request_size=4 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 11 00 00 [11:29:38]Write to MH i2c: E2 08 00 47 06 80 11 00 00 00 00 00 00 C7 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 17 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 17 00 47 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [11:29:38]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:38]wFMCommunicate OK [11:29:38]requested_item fd.num is exist - process it [11:29:38]SAM_PROTO_GetFieldsCounters [11:29:38]wFMCommunicate request_size=4 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 13 00 00 [11:29:38]Write to MH i2c: E2 08 00 48 06 80 13 00 00 00 00 00 00 CA [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 62 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 62 00 48 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 79 [11:29: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 9B 97 01 00 0E 04 04 00 64 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 [11:29:38]wFMCommunicate OK [11:29:38]SAM_PROTO_GetFieldsCounters done [11:29:38]requested_item shift.num is exist - process it [11:29:38]requested_item shift.opened is exist - process it [11:29:38]req_shift_opened [11:29:38]FM_GetShiftState [11:29:38]SAM_PROTO_GetShiftState [11:29:38]wFMCommunicate request_size=4 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 13 01 00 [11:29:38]Write to MH i2c: E2 08 00 49 06 80 13 01 00 00 00 00 00 CC [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 0E 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 0E 00 49 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BE [11:29:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:29:38]wFMCommunicate OK [11:29:38]SAM_PROTO_GetShiftState done [11:29:38]FM_GetShiftState done [11:29:38]req_shift_opened done [11:29:38]requested_item shift.open_date is exist - process it [11:29:38]req_shift_open_date [11:29:38]req_shift_open_date done [11:29:38]produce_requested_data done [11:29:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:29:38]process_action_free close_receipt [11:29:38]json_value_free [11:29:38]json_value_free done [11:29:38]process_json_proto returns [11:29:38]Send response to host [11:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:29:38]free response buf [11:29:38]execute_script done [11:29:38]execute_script returns [11:29:38]free content buf [11:29:38]Sock 9.Close socket [11:29:38]Sock 9.Thread stoped [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:33]accept exits with 7 [11:31:33]New connection [11:31:33]New thread 3066449252 created [11:31:33]Thread 3066592612 joined [11:31:33]Waiting for new connection... [11:31:33] Sock 7.Parse request [11:31:33]Sock 7.Check first char [11:31:33]Sock 7.First char is OK [11:31:33]request: POST /json_proto HTTP/1.0 [11:31:33]Method: POST [11:31:33]URL: /json_proto [11:31:33]Method is POST - this is cgi request [11:31:33]url: /json_proto [11:31:33]query_string will be loaded in cgi processing [11:31:33]execute_cgi json_proto POST (null) [11:31:33]execute_cgi path=json_proto method=POST [11:31:33]POST find Content-Length [11:31:33]Host: 172.17.38.133:8080 [11:31:33]Content-Length: 1169 [11:31:33]Content-Type: application/json [11:31:33] [11:31:33]POST finish read [11:31:33]Found Content-Length = 1169 [11:31: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673869\u000A22.06.2024 11:08\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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:33]execute_script... [11:31: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673869\u000A22.06.2024 11:08\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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:33]POST & json_proto [11:31:33]process_json_proto [11:31:33]json parsed OK: [11:31:33]protocol is kg_v1.0 [11:31:33]action value=print_text [11:31:33]process_action print_text [11:31:33]cmd_print_text [11:31:33]ExternCall_PrintAddStr [11:31:33]wPrintStart [11:31:33]Write to MH i2c: 01 00 00 4A 06 50 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [11:31:33]RasterBufferAndPrint [11:31:33]line *****ТОВАРНЫЙ ЧЕК***** [11:31:33]line АЗС 120 [11:31:33]line Партнер нефть [11:31:33]line 02508201610067 [11:31:33]line Кассир : Байбугуева Г. [11:31:33]line Счет N : (1)673869 [11:31:33]line 22.06.2024 11:08 [11:31:33]line ПРОДАЖА [11:31:33]line ТРК (МРК, ГНК): 42 [11:31:33]line Вид ГСМ : 2710124130 [11:31:33]line Аи-92-К-5 [11:31:33]line 15.070 x 66.40 [11:31:33]line ИТОГ: 1000.65 [11:31:33]line Тип оплаты: Талоны: ТК ГПНА Online [11:31:33]line 30072831 [11:31:33]line ______________________ [11:31:33]line (подпись) [11:31:33]written 0, free lines is 4095 [11:31:33]Write to MH i2c: 01 00 00 5E 06 64 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 11 0E 8A [11:31:33]RasterBufferAndPrint [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]written 0, free lines is 3603 [11:31:33]MH_Cut [11:31:33]Write to MH i2c: D1 01 00 65 06 01 3D [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 01 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 01 00 65 06 00 3C [11:31:33]Write to MH i2c: 01 00 00 66 06 6C [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:34]*** Cut start [11:31:34]*** Partial cut [11:31:34]*** CUTSNS_PIN = 1 [11:31:34]*** CUTSNS_PIN = 0 [11:31:34]*** Brake cut motor [11:31:34]Read from MH i2c: 01 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: 01 07 00 [11:31:34]MH_I2C_Read... [11:31:34]*** Stop cut motor [11:31:34]*** Cut end [11:31:34]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [11:31:34]process_action print_text done [11:31:34]requested_data is exist [11:31:34]produce_requested_data [11:31:34]requested_item fm.sn is exist - process it [11:31:34]wFMCommunicate request_size=4 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 11 00 00 [11:31:34]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [11:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:31:35]wFMCommunicate OK [11:31:35]requested_item fd.num is exist - process it [11:31:35]SAM_PROTO_GetFieldsCounters [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 13 00 00 [11:31:35]Write to MH i2c: E2 08 00 68 06 80 13 00 00 00 00 00 00 EA [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 62 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 62 00 68 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 99 [11:31: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 9B 97 01 00 0E 04 04 00 64 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 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_GetFieldsCounters done [11:31:35]requested_item shift.num is exist - process it [11:31:35]requested_item shift.opened is exist - process it [11:31:35]req_shift_opened [11:31:35]FM_GetShiftState [11:31:35]SAM_PROTO_GetShiftState [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 13 01 00 [11:31:35]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0E 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DE [11:31:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_GetShiftState done [11:31:35]FM_GetShiftState done [11:31:35]req_shift_opened done [11:31:35]requested_item shift.open_date is exist - process it [11:31:35]req_shift_open_date [11:31:35]req_shift_open_date done [11:31:35]produce_requested_data done [11:31:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:31:35]process_action_free print_text [11:31:35]json_value_free [11:31:35]json_value_free done [11:31:35]process_json_proto returns [11:31:35]Send response to host [11:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:31:35]free response buf [11:31:35]execute_script done [11:31:35]execute_script returns [11:31:35]free content buf [11:31:35]Sock 7.Close socket [11:31:35]Sock 7.Thread stoped [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:54]accept exits with 9 [11:33:54]New connection [11:33:54]New thread 3066592612 created [11:33:54]Thread 3066449252 joined [11:33:54]Waiting for new connection... [11:33:54] Sock 9.Parse request [11:33:54]Sock 9.Check first char [11:33:54]Sock 9.First char is OK [11:33:54]request: POST /json_proto HTTP/1.0 [11:33:54]Method: POST [11:33:54]URL: /json_proto [11:33:54]Method is POST - this is cgi request [11:33:54]url: /json_proto [11:33:54]query_string will be loaded in cgi processing [11:33:54]execute_cgi json_proto POST (null) [11:33:54]execute_cgi path=json_proto method=POST [11:33:54]POST find Content-Length [11:33:54]Host: 172.17.38.133:8080 [11:33:54]Content-Length: 1176 [11:33:54]Content-Type: application/json [11:33:54] [11:33:54]POST finish read [11:33:54]Found Content-Length = 1176 [11:33: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673866\u000A22.06.2024 11:10\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 196.790 x 72.90\u000A\u0418\u0422\u041E\u0413: 14345.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:54]execute_script... [11:33: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673866\u000A22.06.2024 11:10\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 196.790 x 72.90\u000A\u0418\u0422\u041E\u0413: 14345.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:54]POST & json_proto [11:33:54]process_json_proto [11:33:54]json parsed OK: [11:33:54]protocol is kg_v1.0 [11:33:54]action value=print_text [11:33:54]process_action print_text [11:33:54]cmd_print_text [11:33:54]ExternCall_PrintAddStr [11:33:54]wPrintStart [11:33:54]Write to MH i2c: 01 00 00 6A 06 70 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 FF 0F 85 [11:33:54]RasterBufferAndPrint [11:33:54]line *****ТОВАРНЫЙ ЧЕК***** [11:33:54]line АЗС 120 [11:33:54]line Партнер нефть [11:33:54]line 02508201610067 [11:33:54]line Кассир : Байбугуева Г. [11:33:54]line Счет N : (1)673866 [11:33:54]line 22.06.2024 11:10 [11:33:54]line ПРОДАЖА [11:33:54]line ТРК (МРК, ГНК): 21 [11:33:54]line Вид ГСМ : 2710194210 [11:33:54]line ДТ(л)-К-5 [11:33:54]line 196.790 x 72.90 [11:33:54]line ИТОГ: 14345.99 [11:33:54]line Тип оплаты: Талоны: ТК ГПНА Online [11:33:54]line 30072831 [11:33:54]line ______________________ [11:33:54]line (подпись) [11:33:54]written 0, free lines is 4095 [11:33:54]Write to MH i2c: 01 00 00 7E 06 84 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 11 0E AA [11:33:54]RasterBufferAndPrint [11:33:54]line [11:33:54]line [11:33:54]line [11:33:54]line [11:33:54]line [11:33:54]written 0, free lines is 3603 [11:33:54]MH_Cut [11:33:54]Write to MH i2c: D1 01 00 85 06 01 5D [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D1 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D1 01 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: D1 01 00 85 06 00 5C [11:33:54]Write to MH i2c: 01 00 00 86 06 8C [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:55]*** Cut start [11:33:55]*** Partial cut [11:33:55]*** CUTSNS_PIN = 1 [11:33:55]*** CUTSNS_PIN = 0 [11:33:55]*** Brake cut motor [11:33:55]Read from MH i2c: 01 [11:33:55]MH_I2C_Read... [11:33:55]*** Stop cut motor [11:33:55]*** Cut end [11:33:55]Read from MH i2c: 01 07 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [11:33:55]process_action print_text done [11:33:55]requested_data is exist [11:33:55]produce_requested_data [11:33:55]requested_item fm.sn is exist - process it [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 11 00 00 [11:33:55]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [11:33:55]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:55]wFMCommunicate OK [11:33:55]requested_item fd.num is exist - process it [11:33:55]SAM_PROTO_GetFieldsCounters [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 13 00 00 [11:33:55]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:56]Read from MH i2c: E2 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 62 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B9 [11:33: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 9B 97 01 00 0E 04 04 00 64 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 [11:33:56]wFMCommunicate OK [11:33:56]SAM_PROTO_GetFieldsCounters done [11:33:56]requested_item shift.num is exist - process it [11:33:56]requested_item shift.opened is exist - process it [11:33:56]req_shift_opened [11:33:56]FM_GetShiftState [11:33:56]SAM_PROTO_GetShiftState [11:33:56]wFMCommunicate request_size=4 [11:33:56]MH_SAM_APDU [11:33:56]CAPDU: 80 13 01 00 [11:33:56]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:56]Read from MH i2c: E2 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FE [11:33:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:33:56]wFMCommunicate OK [11:33:56]SAM_PROTO_GetShiftState done [11:33:56]FM_GetShiftState done [11:33:56]req_shift_opened done [11:33:56]requested_item shift.open_date is exist - process it [11:33:56]req_shift_open_date [11:33:56]req_shift_open_date done [11:33:56]produce_requested_data done [11:33:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:33:56]process_action_free print_text [11:33:56]json_value_free [11:33:56]json_value_free done [11:33:56]process_json_proto returns [11:33:56]Send response to host [11:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104347,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:33:56]free response buf [11:33:56]execute_script done [11:33:56]execute_script returns [11:33:56]free content buf [11:33:56]Sock 9.Close socket [11:33:56]Sock 9.Thread stoped [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:41]accept exits with 7 [11:34:41]New connection [11:34:41]New thread 3066449252 created [11:34:41]Thread 3066592612 joined [11:34:41]Waiting for new connection... [11:34:41] Sock 7.Parse request [11:34:41]Sock 7.Check first char [11:34:41]Sock 7.First char is OK [11:34:41]request: POST /json_proto HTTP/1.0 [11:34:41]Method: POST [11:34:41]URL: /json_proto [11:34:41]Method is POST - this is cgi request [11:34:41]url: /json_proto [11:34:41]query_string will be loaded in cgi processing [11:34:41]execute_cgi json_proto POST (null) [11:34:41]execute_cgi path=json_proto method=POST [11:34:41]POST find Content-Length [11:34:41]Host: 172.17.38.133:8080 [11:34:41]Content-Length: 682 [11:34:41]Content-Type: application/json [11:34:41] [11:34:41]POST finish read [11:34:41]Found Content-Length = 682 [11:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673870", "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" ] } } [11:34:41]execute_script... [11:34: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)673870", "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" ] } } [11:34:41]POST & json_proto [11:34:41]process_json_proto [11:34:41]json parsed OK: [11:34:41]protocol is kg_v1.0 [11:34:41]action value=close_receipt [11:34:41]process_action close_receipt [11:34:41]cmd_close_receipt [11:34:41]MH_GetDate [11:34:41]Write to MH i2c: F0 00 00 8A 06 7F [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: F0 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: F0 09 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: F0 09 00 8A 06 00 D2 B6 76 66 BD 8F 7C 64 18 [11:34:41]GetLastDocTimeStamp 1719055775 [11:34:41]current date 1719056082 [11:34:41]FM_GetShiftState [11:34:41]SAM_PROTO_GetShiftState [11:34:41]wFMCommunicate request_size=4 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 13 01 00 [11:34:41]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:42]Read from MH i2c: E2 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 00 [11:34:42]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:34:42]wFMCommunicate OK [11:34:42]SAM_PROTO_GetShiftState done [11:34:42]FM_GetShiftState done [11:34:42]opened in 1719016176 [11:34:42]opened+sec_in_day 1719102576 [11:34:42]quantity*price = 100060 [11:34:42]sum+1 = 100062 [11:34:42]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 СНО: Общий режим Чек 81 22.06.2024 11:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104348 ФПД: 83712131626626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113442&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104348&fm=83712131626626&tin=02508201610067®Number=0000000000092785&sum=100000 [11:34:43]StoreToDocumentArchive [11:34:43]shift 356 fd 104348 [11:34:43]save to /storage/0356/doc_00104348 [11:34:43]save last doc name /storage/0356/doc_00104348 to /storage/kkm_last_doc_name [11:34:43]save OK [11:34:43]Clear old archive folders... [11:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:43]tlvbuf is 00FB5690 [11:34:43]SAM_PROTO_ClearQueue [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 09 00 00 [11:34:43]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_ClearQueue done [11:34:43]KKMCreateOFDPacket [11:34:43]OFDProtocolAddRootSTLVToBuf [11:34:43]FM_MakeSignedData [11:34:43]FM_MakeSignedData [11:34:43]SAM_PROTO_SignData [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 01 02 [11:34:43]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=255 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 51 00 00 00 F4 03 04 00 D2 B6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C [11:34:43]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 D2 B6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 00 00 AD [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=10 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 02 02 05 22 BF DE 76 82 [11:34:43]Write to MH i2c: E2 0D 00 9B 06 80 0D 02 02 05 00 22 BF DE 76 82 00 00 DC [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 03 02 [11:34:43]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0B 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0B 00 9C 06 00 8E 37 EC AE A8 4A 0F 81 90 00 FF [11:34:43]RAPDU: 8E 37 EC AE A8 4A 0F 81 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_SignData done [11:34:43]FM_MakeSignedData done [11:34:43]CreateOFDProtocolMessage [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 11 00 00 [11:34:43]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [11:34: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:34:43]wFMCommunicate OK [11:34:43]CreateOFDProtocolMessage done [11:34:43]OFDSenderStorePacket 104348 [11:34:43]StoreOFDPacket docnum=104348 [11:34: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 0F 01 00 00 4F BF 07 01 08 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 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 51 00 00 00 F4 03 04 00 D2 B6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 22 BF DE 76 82 8E 37 EC AE A8 4A 0F 81 [11:34:43]CheckFolder [11:34:43]dirname=/storage/ofd_packets [11:34:43]CheckFolder done [11:34:43]ProducePacketName [11:34:43]name=ofd_packets/00104348 [11:34:43]NVStorageSaveData ofd_packets/00104348 [11:34:43]File name is /storage/ofd_packets/00104348 [11:34:43]Write 301 bytes [11:34:43]NVStorageSaveData done [11:34:43]OFDSenderStorePacket done [11:34:43]KKMCreateOFDPacket done [11:34:43]NVStorageSaveData kkm_last_timestamp [11:34:43]File name is /storage/kkm_last_timestamp [11:34:43]Write 4 bytes [11:34:43]NVStorageSaveData done [11:34:43]ExternCall_PrintAddStr [11:34:43]wPrintStart [11:34:43]Write to MH i2c: 01 00 00 9E 06 A4 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 07 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [11:34:43]RasterBufferAndPrint [11:34:43]line Счет N : (1)673870 [11:34:43]line ИНН: 02508201610067 [11:34:43]line Контрольно-Кассовый Чек [11:34:43]line ПРОДАЖА [11:34:43]line ТРК (МРК, ГНК) : 41 [11:34:43]line Товар: 2710124500 [11:34:43]line Аи-95-К-5 [11:34:43]line 13.540 * 73.90 [11:34:43]line = 1000.61 [11:34:43]line НДС 12% НСП 1% [11:34:43]line > о реализуемом товаре [11:34:43]line ОКРУГЛЕНИЕ: -0.61 [11:34:43]line ИТОГО: 1000.00 [11:34:43]line Внесено: 1000.00 [11:34:43]line СДАЧА: 0.00 [11:34:43]line НСП 1% : 8.85 [11:34:43]line НДС 12% : 106.26 [11:34:43]line Наличными: 1000.00 [11:34:43]line Безнал.: 0.00 [11:34:43]line Место: АЗС № 120 "Партнер Нефть" [11:34:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:34:43]line СНО: Общий режим [11:34:43]line Чек 81 22.06.2024 11:34 [11:34:43]line Смена: 356 ФФД: 1.0 [11:34:43]line ЗНМ: 0300000164 [11:34:43]line РНМ: 0000000000092785 [11:34:43]line Версия ККМ: 001 [11:34:43]line ФМ: 0000000000875093 [11:34:43]line ФД: 104348 [11:34:43]line ФПД: 83712131626626 [11:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113442&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104348&fm=83712131626626&tin=02508201610067®Number=0000000000092785&sum=100000 [11:34:44]OFD Sender: Processing packet 104348 [packets to send 17, broken 16] [11:34:44]ProducePacketName [11:34:44]name=ofd_packets/00104348 [11:34:44]OFD Sender: To server: pG, [11:34:44]CommunicateWithHost lk.salyk.kg:30040 [11:34:44]ConnectInit lk.salyk.kg [11:34:44]written 0, free lines is 4095 [11:34:44]Connected sock=10 [11:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F BF 07 01 08 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 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 51 00 00 00 F4 03 04 00 D2 B6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 22 BF DE 76 82 8E 37 EC AE A8 4A 0F 81 [11:34: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 43 E0 47 00 D2 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 9C 97 01 00 F4 03 04 00 52 5D 76 66 B6 04 01 00 00 03 3E 91 81 85 E0 51 A3 [11:34:44]CommunicateWithHost err = 0 [11:34:44]CheckOFDResponse [11:34:44]1017 (14) - 77093643461234 [11:34:44]1041 (16) - 0000000000875093 [11:34:44]1040 (4) - 104348 [11:34:44]1012 (4) - 22.06.2024 05:12 [11:34:44]1206 (1) - 0 [11:34:44]OFD Sender: Remove packet 104348 [11:34:44]ProducePacketName [11:34:44]name=ofd_packets/00104348 [11:34:44]NVStorageDeleteData [11:34:44]Write to MH i2c: 01 00 00 C9 06 CF [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 07 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 D0 0C B2 [11:34:44]RasterBufferAndPrint [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]written 0, free lines is 3286 [11:34:44]MH_Cut [11:34:44]Write to MH i2c: D1 01 00 D0 06 01 A8 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 01 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 01 00 D0 06 00 A7 [11:34:44]Write to MH i2c: 01 00 00 D1 06 D7 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]OFD Sender: No OFD packet to send [11:34:45]*** Cut start [11:34:45]*** Partial cut [11:34:45]*** CUTSNS_PIN = 1 [11:34:45]*** CUTSNS_PIN = 0 [11:34:45]*** Brake cut motor [11:34:45]Read from MH i2c: 01 [11:34:45]MH_I2C_Read... [11:34:45]*** Stop cut motor [11:34:45]*** Cut end [11:34:45]Read from MH i2c: 01 07 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [11:34:45]process_action close_receipt done [11:34:45]requested_data is exist [11:34:45]produce_requested_data [11:34:45]requested_item fm.sn is exist - process it [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 11 00 00 [11:34:45]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 17 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [11: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 [11:34:45]wFMCommunicate OK [11:34:45]requested_item fd.num is exist - process it [11:34:45]SAM_PROTO_GetFieldsCounters [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 13 00 00 [11:34:45]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 62 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 62 00 D3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 08 [11:34: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 9C 97 01 00 0E 04 04 00 64 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 [11:34:46]wFMCommunicate OK [11:34:46]SAM_PROTO_GetFieldsCounters done [11:34:46]requested_item shift.num is exist - process it [11:34:46]requested_item shift.opened is exist - process it [11:34:46]req_shift_opened [11:34:46]FM_GetShiftState [11:34:46]SAM_PROTO_GetShiftState [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 13 01 00 [11:34:46]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0E 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 49 [11:34:46]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:34:46]wFMCommunicate OK [11:34:46]SAM_PROTO_GetShiftState done [11:34:46]FM_GetShiftState done [11:34:46]req_shift_opened done [11:34:46]requested_item shift.open_date is exist - process it [11:34:46]req_shift_open_date [11:34:46]req_shift_open_date done [11:34:46]produce_requested_data done [11:34:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:34:46]process_action_free close_receipt [11:34:46]json_value_free [11:34:46]json_value_free done [11:34:46]process_json_proto returns [11:34:46]Send response to host [11:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:34:46]free response buf [11:34:46]execute_script done [11:34:46]execute_script returns [11:34:46]free content buf [11:34:46]Sock 7.Close socket [11:34:46]Sock 7.Thread stoped [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:55]accept exits with 9 [11:34:55]New connection [11:34:55]New thread 3066592612 created [11:34:55]Thread 3066449252 joined [11:34:55]Waiting for new connection... [11:34:55] Sock 9.Parse request [11:34:55]Sock 9.Check first char [11:34:55]Sock 9.First char is OK [11:34:55]request: POST /json_proto HTTP/1.0 [11:34:55]Method: POST [11:34:55]URL: /json_proto [11:34:55]Method is POST - this is cgi request [11:34:55]url: /json_proto [11:34:55]query_string will be loaded in cgi processing [11:34:55]execute_cgi json_proto POST (null) [11:34:55]execute_cgi path=json_proto method=POST [11:34:55]POST find Content-Length [11:34:55]Host: 172.17.38.133:8080 [11:34:55]Content-Length: 1172 [11:34:55]Content-Type: application/json [11:34:55] [11:34:55]POST finish read [11:34:55]Found Content-Length = 1172 [11:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673871\u000A22.06.2024 11:11\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 3.210 x 72.90\u000A\u0418\u0422\u041E\u0413: 234.01\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:55]execute_script... [11:34:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673871\u000A22.06.2024 11:11\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 3.210 x 72.90\u000A\u0418\u0422\u041E\u0413: 234.01\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:55]POST & json_proto [11:34:55]process_json_proto [11:34:55]json parsed OK: [11:34:55]protocol is kg_v1.0 [11:34:55]action value=print_text [11:34:55]process_action print_text [11:34:55]cmd_print_text [11:34:55]ExternCall_PrintAddStr [11:34:55]wPrintStart [11:34:55]Write to MH i2c: 01 00 00 D5 06 DB [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [11:34:55]RasterBufferAndPrint [11:34:55]line *****ТОВАРНЫЙ ЧЕК***** [11:34:55]line АЗС 120 [11:34:55]line Партнер нефть [11:34:55]line 02508201610067 [11:34:55]line Кассир : Байбугуева Г. [11:34:55]line Счет N : (1)673871 [11:34:55]line 22.06.2024 11:11 [11:34:55]line ПРОДАЖА [11:34:55]line ТРК (МРК, ГНК): 21 [11:34:55]line Вид ГСМ : 2710194210 [11:34:55]line ДТ(л)-К-5 [11:34:55]line 3.210 x 72.90 [11:34:55]line ИТОГ: 234.01 [11:34:55]line Тип оплаты: Талоны: ТК ГПНА Online [11:34:55]line 30072831 [11:34:55]line ______________________ [11:34:55]line (подпись) [11:34:55]written 0, free lines is 4095 [11:34:55]Write to MH i2c: 01 00 00 E9 06 EF [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 0E 0E 12 [11:34:55]RasterBufferAndPrint [11:34:55]line [11:34:55]line [11:34:55]line [11:34:55]line [11:34:55]line [11:34:55]written 0, free lines is 3600 [11:34:55]MH_Cut [11:34:55]Write to MH i2c: D1 01 00 F0 06 01 C8 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: D1 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: D1 01 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: D1 01 00 F0 06 00 C7 [11:34:55]Write to MH i2c: 01 00 00 F1 06 F7 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** Cut start [11:34:55]*** Partial cut [11:34:55]*** CUTSNS_PIN = 1 [11:34:55]*** CUTSNS_PIN = 0 [11:34:56]*** Brake cut motor [11:34:56]Read from MH i2c: 01 [11:34:56]MH_I2C_Read... [11:34:56]*** Stop cut motor [11:34:56]*** Cut end [11:34:56]Read from MH i2c: 01 07 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [11:34:56]process_action print_text done [11:34:56]requested_data is exist [11:34:56]produce_requested_data [11:34:56]requested_item fm.sn is exist - process it [11:34:56]wFMCommunicate request_size=4 [11:34:56]MH_SAM_APDU [11:34:56]CAPDU: 80 11 00 00 [11:34:56]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:56]Read from MH i2c: E2 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 17 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [11: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 [11:34:56]wFMCommunicate OK [11:34:56]requested_item fd.num is exist - process it [11:34:56]SAM_PROTO_GetFieldsCounters [11:34:56]wFMCommunicate request_size=4 [11:34:56]MH_SAM_APDU [11:34:56]CAPDU: 80 13 00 00 [11:34:56]Write to MH i2c: E2 08 00 F3 06 80 13 00 00 00 00 00 00 75 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:56]Read from MH i2c: E2 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 62 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 62 00 F3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 28 [11: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 9C 97 01 00 0E 04 04 00 64 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 [11:34:56]wFMCommunicate OK [11:34:56]SAM_PROTO_GetFieldsCounters done [11:34:56]requested_item shift.num is exist - process it [11:34:56]requested_item shift.opened is exist - process it [11:34:56]req_shift_opened [11:34:56]FM_GetShiftState [11:34:56]SAM_PROTO_GetShiftState [11:34:56]wFMCommunicate request_size=4 [11:34:56]MH_SAM_APDU [11:34:56]CAPDU: 80 13 01 00 [11:34:56]Write to MH i2c: E2 08 00 F4 06 80 13 01 00 00 00 00 00 77 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:56]Read from MH i2c: E2 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 0E 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 0E 00 F4 06 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 69 [11:34:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:34:56]wFMCommunicate OK [11:34:56]SAM_PROTO_GetShiftState done [11:34:56]FM_GetShiftState done [11:34:56]req_shift_opened done [11:34:56]requested_item shift.open_date is exist - process it [11:34:56]req_shift_open_date [11:34:56]req_shift_open_date done [11:34:56]produce_requested_data done [11:34:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:34:56]process_action_free print_text [11:34:56]json_value_free [11:34:56]json_value_free done [11:34:56]process_json_proto returns [11:34:56]Send response to host [11:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:34:56]free response buf [11:34:56]execute_script done [11:34:56]execute_script returns [11:34:56]free content buf [11:34:56]Sock 9.Close socket [11:34:56]Sock 9.Thread stoped [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:52]accept exits with 7 [11:40:52]New connection [11:40:52]New thread 3066449252 created [11:40:52]Thread 3066592612 joined [11:40:52]Waiting for new connection... [11:40:52] Sock 7.Parse request [11:40:52]Sock 7.Check first char [11:40:52]Sock 7.First char is OK [11:40:52]request: POST /json_proto HTTP/1.0 [11:40:52]Method: POST [11:40:52]URL: /json_proto [11:40:52]Method is POST - this is cgi request [11:40:52]url: /json_proto [11:40:52]query_string will be loaded in cgi processing [11:40:52]execute_cgi json_proto POST (null) [11:40:52]execute_cgi path=json_proto method=POST [11:40:52]POST find Content-Length [11:40:52]Host: 172.17.38.133:8080 [11:40:52]Content-Length: 1167 [11:40:52]Content-Type: application/json [11:40:52] [11:40:52]POST finish read [11:40:52]Found Content-Length = 1167 [11:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673872\u000A22.06.2024 11:17\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 9.790 x 66.40\u000A\u0418\u0422\u041E\u0413: 650.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:52]execute_script... [11:40:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673872\u000A22.06.2024 11:17\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 9.790 x 66.40\u000A\u0418\u0422\u041E\u0413: 650.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:52]POST & json_proto [11:40:52]process_json_proto [11:40:52]json parsed OK: [11:40:52]protocol is kg_v1.0 [11:40:52]action value=print_text [11:40:52]process_action print_text [11:40:52]cmd_print_text [11:40:52]ExternCall_PrintAddStr [11:40:52]wPrintStart [11:40:52]Write to MH i2c: 01 00 00 F5 06 FB [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 FF 0F 10 [11:40:52]RasterBufferAndPrint [11:40:52]line *****ТОВАРНЫЙ ЧЕК***** [11:40:52]line АЗС 120 [11:40:52]line Партнер нефть [11:40:52]line 02508201610067 [11:40:52]line Кассир : Байбугуева Г. [11:40:52]line Счет N : (1)673872 [11:40:52]line 22.06.2024 11:17 [11:40:52]line ПРОДАЖА [11:40:52]line ТРК (МРК, ГНК): 32 [11:40:52]line Вид ГСМ : 2710124130 [11:40:52]line Аи-92-К-5 [11:40:52]line 9.790 x 66.40 [11:40:52]line ИТОГ: 650.06 [11:40:52]line Тип оплаты: Талоны: ТК ГПНА Online [11:40:52]line 30072831 [11:40:52]line ______________________ [11:40:52]line (подпись) [11:40:52]written 0, free lines is 4095 [11:40:52]Write to MH i2c: 01 00 00 09 07 10 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 10 0E 35 [11:40:52]RasterBufferAndPrint [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]written 0, free lines is 3602 [11:40:52]MH_Cut [11:40:52]Write to MH i2c: D1 01 00 10 07 01 E9 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 01 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 01 00 10 07 00 E8 [11:40:52]Write to MH i2c: 01 00 00 11 07 18 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:53]*** Cut start [11:40:53]*** Partial cut [11:40:53]*** CUTSNS_PIN = 1 [11:40:53]*** CUTSNS_PIN = 0 [11:40:53]*** Brake cut motor [11:40:53]Read from MH i2c: 01 [11:40:53]MH_I2C_Read... [11:40:53]*** Stop cut motor [11:40:53]*** Cut end [11:40:53]Read from MH i2c: 01 07 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 FF 0F 2D [11:40:53]process_action print_text done [11:40:53]requested_data is exist [11:40:53]produce_requested_data [11:40:53]requested_item fm.sn is exist - process it [11:40:53]wFMCommunicate request_size=4 [11:40:53]MH_SAM_APDU [11:40:53]CAPDU: 80 11 00 00 [11:40:53]Write to MH i2c: E2 08 00 12 07 80 11 00 00 00 00 00 00 93 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:53]Read from MH i2c: E2 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 17 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 17 00 12 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [11:40: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:40:53]wFMCommunicate OK [11:40:53]requested_item fd.num is exist - process it [11:40:53]SAM_PROTO_GetFieldsCounters [11:40:53]wFMCommunicate request_size=4 [11:40:53]MH_SAM_APDU [11:40:53]CAPDU: 80 13 00 00 [11:40:53]Write to MH i2c: E2 08 00 13 07 80 13 00 00 00 00 00 00 96 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:53]Read from MH i2c: E2 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 62 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 62 00 13 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 49 [11:40: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 9C 97 01 00 0E 04 04 00 64 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 [11:40:53]wFMCommunicate OK [11:40:53]SAM_PROTO_GetFieldsCounters done [11:40:53]requested_item shift.num is exist - process it [11:40:53]requested_item shift.opened is exist - process it [11:40:53]req_shift_opened [11:40:53]FM_GetShiftState [11:40:53]SAM_PROTO_GetShiftState [11:40:53]wFMCommunicate request_size=4 [11:40:53]MH_SAM_APDU [11:40:53]CAPDU: 80 13 01 00 [11:40:53]Write to MH i2c: E2 08 00 14 07 80 13 01 00 00 00 00 00 98 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:53]Read from MH i2c: E2 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 0E 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: E2 0E 00 14 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8A [11:40:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:40:53]wFMCommunicate OK [11:40:53]SAM_PROTO_GetShiftState done [11:40:53]FM_GetShiftState done [11:40:53]req_shift_opened done [11:40:53]requested_item shift.open_date is exist - process it [11:40:53]req_shift_open_date [11:40:53]req_shift_open_date done [11:40:53]produce_requested_data done [11:40:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:40:53]process_action_free print_text [11:40:53]json_value_free [11:40:53]json_value_free done [11:40:53]process_json_proto returns [11:40:53]Send response to host [11:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104348,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:40:53]free response buf [11:40:53]execute_script done [11:40:53]execute_script returns [11:40:53]free content buf [11:40:53]Sock 7.Close socket [11:40:53]Sock 7.Thread stoped [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:37]accept exits with 9 [11:41:37]New connection [11:41:37]New thread 3066592612 created [11:41:37]Thread 3066449252 joined [11:41:37]Waiting for new connection... [11:41:37] Sock 9.Parse request [11:41:37]Sock 9.Check first char [11:41:37]Sock 9.First char is OK [11:41:37]request: POST /json_proto HTTP/1.0 [11:41:37]Method: POST [11:41:37]URL: /json_proto [11:41:37]Method is POST - this is cgi request [11:41:37]url: /json_proto [11:41:37]query_string will be loaded in cgi processing [11:41:37]execute_cgi json_proto POST (null) [11:41:37]execute_cgi path=json_proto method=POST [11:41:37]POST find Content-Length [11:41:37]Host: 172.17.38.133:8080 [11:41:37]Content-Length: 677 [11:41:37]Content-Type: application/json [11:41:37] [11:41:37]POST finish read [11:41:37]Found Content-Length = 677 [11:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673873", "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" : 6.770, "sum" : 500.30, "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:41:37]execute_script... [11:41: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)673873", "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" : 6.770, "sum" : 500.30, "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:41:37]POST & json_proto [11:41:37]process_json_proto [11:41:37]json parsed OK: [11:41:37]protocol is kg_v1.0 [11:41:37]action value=close_receipt [11:41:37]process_action close_receipt [11:41:37]cmd_close_receipt [11:41:37]MH_GetDate [11:41:37]Write to MH i2c: F0 00 00 15 07 0B [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: F0 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: F0 09 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: F0 09 00 15 07 00 72 B8 76 66 BD 8F 7C 64 46 [11:41:37]GetLastDocTimeStamp 1719056082 [11:41:37]current date 1719056498 [11:41:37]FM_GetShiftState [11:41:37]SAM_PROTO_GetShiftState [11:41:37]wFMCommunicate request_size=4 [11:41:37]MH_SAM_APDU [11:41:37]CAPDU: 80 13 01 00 [11:41:37]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:37]Read from MH i2c: E2 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 0E 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [11:41:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:41:37]wFMCommunicate OK [11:41:37]SAM_PROTO_GetShiftState done [11:41:37]FM_GetShiftState done [11:41:37]opened in 1719016176 [11:41:37]opened+sec_in_day 1719102576 [11:41:37]quantity*price = 50030 [11:41:37]sum+1 = 50031 [11:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 22.06.2024 11:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104349 ФПД: 241488405981544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104349&fm=241488405981544&tin=02508201610067®Number=0000000000092785&sum=50000 [11:41:38]StoreToDocumentArchive [11:41:38]shift 356 fd 104349 [11:41:38]save to /storage/0356/doc_00104349 [11:41:38]save last doc name /storage/0356/doc_00104349 to /storage/kkm_last_doc_name [11:41:38]save OK [11:41:38]Clear old archive folders... [11:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:38]tlvbuf is 00FB4F60 [11:41:38]SAM_PROTO_ClearQueue [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 09 00 00 [11:41:38]Write to MH i2c: E2 08 00 23 07 80 09 00 00 00 00 00 00 9C [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 03 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [11:41:38]RAPDU: 90 00 [11:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_ClearQueue done [11:41:38]KKMCreateOFDPacket [11:41:38]OFDProtocolAddRootSTLVToBuf [11:41:38]FM_MakeSignedData [11:41:38]FM_MakeSignedData [11:41:38]SAM_PROTO_SignData [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 0D 01 02 [11:41:38]Write to MH i2c: E2 08 00 24 07 80 0D 01 02 00 00 00 00 A4 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 03 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [11:41:38]RAPDU: 90 00 [11:41:38]wFMCommunicate OK [11:41:38]wFMCommunicate request_size=255 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 B8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DB [11:41:38]Write to MH i2c: E2 02 01 25 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 B8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DB 00 00 F3 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [11:41:39]RAPDU: 90 00 [11:41:39]wFMCommunicate OK [11:41:39]wFMCommunicate request_size=10 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 0D 02 02 05 A1 E6 A7 E9 68 [11:41:39]Write to MH i2c: E2 0D 00 26 07 80 0D 02 02 05 00 A1 E6 A7 E9 68 00 00 30 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [11:41:39]RAPDU: 90 00 [11:41:39]wFMCommunicate OK [11:41:39]wFMCommunicate request_size=4 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 0D 03 02 [11:41:39]Write to MH i2c: E2 08 00 27 07 80 0D 03 02 00 00 00 00 A9 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 0B 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 0B 00 27 07 00 8A 83 D0 82 4A 90 25 74 90 00 7C [11:41:39]RAPDU: 8A 83 D0 82 4A 90 25 74 90 00 [11:41:39]wFMCommunicate OK [11:41:39]SAM_PROTO_SignData done [11:41:39]FM_MakeSignedData done [11:41:39]CreateOFDProtocolMessage [11:41:39]wFMCommunicate request_size=4 [11:41:39]MH_SAM_APDU [11:41:39]CAPDU: 80 11 00 00 [11:41:39]Write to MH i2c: E2 08 00 28 07 80 11 00 00 00 00 00 00 A9 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:39]Read from MH i2c: E2 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 17 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: E2 17 00 28 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [11:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:41:39]wFMCommunicate OK [11:41:39]CreateOFDProtocolMessage done [11:41:39]OFDSenderStorePacket 104349 [11:41:39]StoreOFDPacket docnum=104349 [11:41: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 0F 01 00 00 92 46 07 01 9A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 B8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DB A1 E6 A7 E9 68 8A 83 D0 82 4A 90 25 74 [11:41:39]CheckFolder [11:41:39]dirname=/storage/ofd_packets [11:41:39]CheckFolder done [11:41:39]ProducePacketName [11:41:39]name=ofd_packets/00104349 [11:41:39]NVStorageSaveData ofd_packets/00104349 [11:41:39]File name is /storage/ofd_packets/00104349 [11:41:39]Write 301 bytes [11:41:39]NVStorageSaveData done [11:41:39]OFDSenderStorePacket done [11:41:39]KKMCreateOFDPacket done [11:41:39]NVStorageSaveData kkm_last_timestamp [11:41:39]File name is /storage/kkm_last_timestamp [11:41:39]Write 4 bytes [11:41:39]NVStorageSaveData done [11:41:39]ExternCall_PrintAddStr [11:41:39]wPrintStart [11:41:39]Write to MH i2c: 01 00 00 29 07 30 [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 07 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [11:41:39]RasterBufferAndPrint [11:41:39]line Счет N : (1)673873 [11:41:39]line ИНН: 02508201610067 [11:41:39]line Контрольно-Кассовый Чек [11:41:39]line ПРОДАЖА [11:41:39]line ТРК (МРК, ГНК) : 41 [11:41:39]line Товар: 2710124500 [11:41:39]line Аи-95-К-5 [11:41:39]line 6.770 * 73.90 [11:41:39]line = 500.30 [11:41:39]line НДС 12% НСП 1% [11:41:39]line > о реализуемом товаре [11:41:39]line ОКРУГЛЕНИЕ: -0.30 [11:41:39]line ИТОГО: 500.00 [11:41:39]line Внесено: 500.00 [11:41:39]line СДАЧА: 0.00 [11:41:39]line НСП 1% : 4.43 [11:41:39]line НДС 12% : 53.13 [11:41:39]line Наличными: 500.00 [11:41:39]line Безнал.: 0.00 [11:41:39]line Место: АЗС № 120 "Партнер Нефть" [11:41:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:41:39]line СНО: Общий режим [11:41:39]line Чек 82 22.06.2024 11:41 [11:41:39]line Смена: 356 ФФД: 1.0 [11:41:39]line ЗНМ: 0300000164 [11:41:39]line РНМ: 0000000000092785 [11:41:39]line Версия ККМ: 001 [11:41:39]line ФМ: 0000000000875093 [11:41:39]line ФД: 104349 [11:41:39]line ФПД: 241488405981544 [11:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104349&fm=241488405981544&tin=02508201610067®Number=0000000000092785&sum=50000 [11:41:39]OFD Sender: Processing packet 104349 [packets to send 17, broken 16] [11:41:39]ProducePacketName [11:41:39]name=ofd_packets/00104349 [11:41:39]OFD Sender: To server: pG, [11:41:39]CommunicateWithHost lk.salyk.kg:30040 [11:41:39]ConnectInit lk.salyk.kg [11:41:39]written 0, free lines is 4095 [11:41:39]Connected sock=10 [11:41: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 0F 01 00 00 92 46 07 01 9A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 B8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DB A1 E6 A7 E9 68 8A 83 D0 82 4A 90 25 74 [11:41:39]Write to MH i2c: 01 00 00 54 07 5B [11:41:39]Write i2c OK [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 07 00 [11:41:39]MH_I2C_Read... [11:41:39]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 C8 0C 36 [11:41:39]RasterBufferAndPrint [11:41:39]line [11:41:39]line [11:41:39]line [11:41:39]line [11:41:39]line [11:41:39]written 0, free lines is 3279 [11:41:40]MH_Cut [11:41:40]Write to MH i2c: D1 01 00 5B 07 01 34 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 01 00 [11:41:40]MH_I2C_Read... [11:41:40]Read from MH i2c: D1 01 00 5B 07 00 33 [11:41:40]Write to MH i2c: 01 00 00 5C 07 63 [11:41:40]Write i2c OK [11:41:40]MH_I2C_Read... [11:41: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 83 83 47 00 A6 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 9D 97 01 00 F4 03 04 00 F1 5E 76 66 B6 04 01 00 00 00 E4 D2 6C AF 1D 12 CE [11:41:40]CommunicateWithHost err = 0 [11:41:40]CheckOFDResponse [11:41:40]1017 (14) - 77093643461234 [11:41:40]1041 (16) - 0000000000875093 [11:41:40]1040 (4) - 104349 [11:41:40]1012 (4) - 22.06.2024 05:19 [11:41:40]1206 (1) - 0 [11:41:40]OFD Sender: Remove packet 104349 [11:41:40]ProducePacketName [11:41:40]name=ofd_packets/00104349 [11:41:40]NVStorageDeleteData [11:41:40]OFD Sender: No OFD packet to send [11:41:40]*** Cut start [11:41:40]*** Partial cut [11:41:40]*** CUTSNS_PIN = 1 [11:41:40]*** CUTSNS_PIN = 0 [11:41:41]*** Brake cut motor [11:41:41]Read from MH i2c: 01 [11:41:41]MH_I2C_Read... [11:41:41]*** Stop cut motor [11:41:41]*** Cut end [11:41:41]Read from MH i2c: 01 07 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [11:41:41]process_action close_receipt done [11:41:41]requested_data is exist [11:41:41]produce_requested_data [11:41:41]requested_item fm.sn is exist - process it [11:41:41]wFMCommunicate request_size=4 [11:41:41]MH_SAM_APDU [11:41:41]CAPDU: 80 11 00 00 [11:41:41]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:41]Read from MH i2c: E2 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 17 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [11:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:41:41]wFMCommunicate OK [11:41:41]requested_item fd.num is exist - process it [11:41:41]SAM_PROTO_GetFieldsCounters [11:41:41]wFMCommunicate request_size=4 [11:41:41]MH_SAM_APDU [11:41:41]CAPDU: 80 13 00 00 [11:41:41]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:41]Read from MH i2c: E2 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 62 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 62 00 5E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 98 [11:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [11:41:41]wFMCommunicate OK [11:41:41]SAM_PROTO_GetFieldsCounters done [11:41:41]requested_item shift.num is exist - process it [11:41:41]requested_item shift.opened is exist - process it [11:41:41]req_shift_opened [11:41:41]FM_GetShiftState [11:41:41]SAM_PROTO_GetShiftState [11:41:41]wFMCommunicate request_size=4 [11:41:41]MH_SAM_APDU [11:41:41]CAPDU: 80 13 01 00 [11:41:41]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [11:41:41]Write i2c OK [11:41:41]MH_I2C_Read... [11:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:41]Read from MH i2c: E2 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 0E 00 [11:41:41]MH_I2C_Read... [11:41:41]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D5 [11:41:41]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:41:41]wFMCommunicate OK [11:41:41]SAM_PROTO_GetShiftState done [11:41:41]FM_GetShiftState done [11:41:41]req_shift_opened done [11:41:41]requested_item shift.open_date is exist - process it [11:41:41]req_shift_open_date [11:41:41]req_shift_open_date done [11:41:41]produce_requested_data done [11:41:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:41:41]process_action_free close_receipt [11:41:41]json_value_free [11:41:41]json_value_free done [11:41:41]process_json_proto returns [11:41:41]Send response to host [11:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:41:41]free response buf [11:41:41]execute_script done [11:41:41]execute_script returns [11:41:41]free content buf [11:41:41]Sock 9.Close socket [11:41:41]Sock 9.Thread stoped [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [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:08]accept exits with 7 [11:43:08]New connection [11:43:08]New thread 3066449252 created [11:43:08]Thread 3066592612 joined [11:43:08]Waiting for new connection... [11:43:08] Sock 7.Parse request [11:43:08]Sock 7.Check first char [11:43:08]Sock 7.First char is OK [11:43:08]request: POST /json_proto HTTP/1.0 [11:43:08]Method: POST [11:43:08]URL: /json_proto [11:43:08]Method is POST - this is cgi request [11:43:08]url: /json_proto [11:43:08]query_string will be loaded in cgi processing [11:43:08]execute_cgi json_proto POST (null) [11:43:08]execute_cgi path=json_proto method=POST [11:43:08]POST find Content-Length [11:43:08]Host: 172.17.38.133:8080 [11:43:08]Content-Length: 1196 [11:43:08]Content-Type: application/json [11:43:08] [11:43:08]POST finish read [11:43:08]Found Content-Length = 1196 [11:43: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673874\u000A22.06.2024 11:20\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\u000A3543782\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:08]execute_script... [11:43: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673874\u000A22.06.2024 11:20\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\u000A3543782\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:08]POST & json_proto [11:43:08]process_json_proto [11:43:08]json parsed OK: [11:43:08]protocol is kg_v1.0 [11:43:08]action value=print_text [11:43:08]process_action print_text [11:43:08]cmd_print_text [11:43:08]ExternCall_PrintAddStr [11:43:08]wPrintStart [11:43:08]Write to MH i2c: 01 00 00 60 07 67 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [11:43:08]RasterBufferAndPrint [11:43:08]line *****ТОВАРНЫЙ ЧЕК***** [11:43:08]line АЗС 120 [11:43:08]line Партнер нефть [11:43:08]line 02508201610067 [11:43:08]line Кассир : Байбугуева Г. [11:43:08]line Счет N : (1)673874 [11:43:08]line 22.06.2024 11:20 [11:43:08]line ПРОДАЖА [11:43:08]line ТРК (МРК, ГНК): 32 [11:43:08]line Вид ГСМ : 2710124130 [11:43:08]line Аи-92-К-5 [11:43:08]line 10.000 x 66.40 [11:43:08]line ИТОГ: 664.00 [11:43:08]line Тип оплаты: Талоны: Партнер нефть [11:43:08]line 3543782 [11:43:08]line ______________________ [11:43:08]line (подпись) [11:43:08]written 0, free lines is 4095 [11:43:08]Write to MH i2c: 01 00 00 74 07 7B [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 12 0E A2 [11:43:08]RasterBufferAndPrint [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]written 0, free lines is 3604 [11:43:08]MH_Cut [11:43:08]Write to MH i2c: D1 01 00 7B 07 01 54 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 7B 07 00 53 [11:43:08]Write to MH i2c: 01 00 00 7C 07 83 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** Cut start [11:43:08]*** Partial cut [11:43:08]*** CUTSNS_PIN = 1 [11:43:09]*** CUTSNS_PIN = 0 [11:43:09]*** Brake cut motor [11:43:09]Read from MH i2c: 01 [11:43:09]MH_I2C_Read... [11:43:09]*** Stop cut motor [11:43:09]*** Cut end [11:43:09]Read from MH i2c: 01 07 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 FF 0F 98 [11:43:09]process_action print_text done [11:43:09]requested_data is exist [11:43:09]produce_requested_data [11:43:09]requested_item fm.sn is exist - process it [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 11 00 00 [11:43:09]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [11:43: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:43:09]wFMCommunicate OK [11:43:09]requested_item fd.num is exist - process it [11:43:09]SAM_PROTO_GetFieldsCounters [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 00 00 [11:43:09]Write to MH i2c: E2 08 00 7E 07 80 13 00 00 00 00 00 00 01 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 7E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B8 [11:43: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 9D 97 01 00 0E 04 04 00 64 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 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetFieldsCounters done [11:43:09]requested_item shift.num is exist - process it [11:43:09]requested_item shift.opened is exist - process it [11:43:09]req_shift_opened [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 7F 07 80 13 01 00 00 00 00 00 03 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 7F 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F5 [11:43:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]req_shift_opened done [11:43:09]requested_item shift.open_date is exist - process it [11:43:09]req_shift_open_date [11:43:09]req_shift_open_date done [11:43:09]produce_requested_data done [11:43:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:43:09]process_action_free print_text [11:43:09]json_value_free [11:43:09]json_value_free done [11:43:09]process_json_proto returns [11:43:09]Send response to host [11:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:43:09]free response buf [11:43:09]execute_script done [11:43:09]execute_script returns [11:43:09]free content buf [11:43:09]Sock 7.Close socket [11:43:09]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:48]accept exits with 9 [11:47:48]New connection [11:47:48]New thread 3066592612 created [11:47:48]Thread 3066449252 joined [11:47:48]Waiting for new connection... [11:47:48] Sock 9.Parse request [11:47:48]Sock 9.Check first char [11:47:48]Sock 9.First char is OK [11:47:48]request: POST /json_proto HTTP/1.0 [11:47:48]Method: POST [11:47:48]URL: /json_proto [11:47:48]Method is POST - this is cgi request [11:47:48]url: /json_proto [11:47:48]query_string will be loaded in cgi processing [11:47:48]execute_cgi json_proto POST (null) [11:47:48]execute_cgi path=json_proto method=POST [11:47:48]POST find Content-Length [11:47:48]Host: 172.17.38.133:8080 [11:47:48]Content-Length: 1169 [11:47:48]Content-Type: application/json [11:47:48] [11:47:48]POST finish read [11:47:48]Found Content-Length = 1169 [11:47: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673876\u000A22.06.2024 11: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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:48]execute_script... [11:47: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673876\u000A22.06.2024 11: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\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:48]POST & json_proto [11:47:48]process_json_proto [11:47:48]json parsed OK: [11:47:48]protocol is kg_v1.0 [11:47:48]action value=print_text [11:47:48]process_action print_text [11:47:48]cmd_print_text [11:47:48]ExternCall_PrintAddStr [11:47:48]wPrintStart [11:47:48]Write to MH i2c: 01 00 00 80 07 87 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [11:47:48]RasterBufferAndPrint [11:47:48]line *****ТОВАРНЫЙ ЧЕК***** [11:47:48]line АЗС 120 [11:47:48]line Партнер нефть [11:47:48]line 02508201610067 [11:47:48]line Кассир : Байбугуева Г. [11:47:48]line Счет N : (1)673876 [11:47:48]line 22.06.2024 11:24 [11:47:48]line ПРОДАЖА [11:47:48]line ТРК (МРК, ГНК): 42 [11:47:48]line Вид ГСМ : 2710124130 [11:47:48]line Аи-92-К-5 [11:47:48]line 15.070 x 66.40 [11:47:48]line ИТОГ: 1000.65 [11:47:48]line Тип оплаты: Талоны: ТК ГПНА Online [11:47:48]line 30072831 [11:47:48]line ______________________ [11:47:48]line (подпись) [11:47:48]written 0, free lines is 4095 [11:47:49]Write to MH i2c: 01 00 00 94 07 9B [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 07 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 11 0E C1 [11:47:49]RasterBufferAndPrint [11:47:49]line [11:47:49]line [11:47:49]line [11:47:49]line [11:47:49]line [11:47:49]written 0, free lines is 3603 [11:47:49]MH_Cut [11:47:49]Write to MH i2c: D1 01 00 9B 07 01 74 [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: D1 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: D1 01 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: D1 01 00 9B 07 00 73 [11:47:49]Write to MH i2c: 01 00 00 9C 07 A3 [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]*** Cut start [11:47:49]*** Partial cut [11:47:49]*** CUTSNS_PIN = 1 [11:47:49]*** CUTSNS_PIN = 0 [11:47:49]*** Brake cut motor [11:47:50]Read from MH i2c: 01 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 07 00 [11:47:50]*** Stop cut motor [11:47:50]*** Cut end [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [11:47:50]process_action print_text done [11:47:50]requested_data is exist [11:47:50]produce_requested_data [11:47:50]requested_item fm.sn is exist - process it [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 11 00 00 [11:47:50]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 17 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [11:47: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:47:50]wFMCommunicate OK [11:47:50]requested_item fd.num is exist - process it [11:47:50]SAM_PROTO_GetFieldsCounters [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 13 00 00 [11:47:50]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 62 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D8 [11:47: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 9D 97 01 00 0E 04 04 00 64 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 [11:47:50]wFMCommunicate OK [11:47:50]SAM_PROTO_GetFieldsCounters done [11:47:50]requested_item shift.num is exist - process it [11:47:50]requested_item shift.opened is exist - process it [11:47:50]req_shift_opened [11:47:50]FM_GetShiftState [11:47:50]SAM_PROTO_GetShiftState [11:47:50]wFMCommunicate request_size=4 [11:47:50]MH_SAM_APDU [11:47:50]CAPDU: 80 13 01 00 [11:47:50]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:50]Read from MH i2c: E2 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 0E 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 15 [11:47:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:47:50]wFMCommunicate OK [11:47:50]SAM_PROTO_GetShiftState done [11:47:50]FM_GetShiftState done [11:47:50]req_shift_opened done [11:47:50]requested_item shift.open_date is exist - process it [11:47:50]req_shift_open_date [11:47:50]req_shift_open_date done [11:47:50]produce_requested_data done [11:47:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:47:50]process_action_free print_text [11:47:50]json_value_free [11:47:50]json_value_free done [11:47:50]process_json_proto returns [11:47:50]Send response to host [11:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104349,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:47:50]free response buf [11:47:50]execute_script done [11:47:50]execute_script returns [11:47:50]free content buf [11:47:50]Sock 9.Close socket [11:47:50]Sock 9.Thread stoped [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]accept exits with 10 [11:48:10]New connection [11:48:10]New thread 3066449252 created [11:48:10]Thread 3066592612 joined [11:48:10]Waiting for new connection... [11:48:10] Sock 10.Parse request [11:48:10]Sock 10.Check first char [11:48:10]Sock 10.First char is OK [11:48:10]request: POST /json_proto HTTP/1.0 [11:48:10]Method: POST [11:48:10]URL: /json_proto [11:48:10]Method is POST - this is cgi request [11:48:10]url: /json_proto [11:48:10]query_string will be loaded in cgi processing [11:48:10]execute_cgi json_proto POST (null) [11:48:10]execute_cgi path=json_proto method=POST [11:48:10]POST find Content-Length [11:48:10]Host: 172.17.38.133:8080 [11:48:10]Content-Length: 687 [11:48:10]Content-Type: application/json [11:48:10] [11:48:10]POST finish read [11:48:10]Found Content-Length = 687 [11:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673875", "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 }]} ], "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:48:10]execute_script... [11: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)673875", "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 }]} ], "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:48:10]POST & json_proto [11:48:10]process_json_proto [11:48:10]json parsed OK: [11:48:10]protocol is kg_v1.0 [11:48:10]action value=close_receipt [11:48:10]process_action close_receipt [11:48:10]cmd_close_receipt [11:48:10]MH_GetDate [11:48:10]Write to MH i2c: F0 00 00 A0 07 96 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: F0 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: F0 09 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: F0 09 00 A0 07 00 FB B9 76 66 BD 8F 7C 64 5B [11:48:10]GetLastDocTimeStamp 1719056498 [11:48:10]current date 1719056891 [11:48:10]FM_GetShiftState [11:48:10]SAM_PROTO_GetShiftState [11:48:10]wFMCommunicate request_size=4 [11:48:10]MH_SAM_APDU [11:48:10]CAPDU: 80 13 01 00 [11:48:10]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:10]Read from MH i2c: E2 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0E 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 17 [11:48:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:48:10]wFMCommunicate OK [11:48:10]SAM_PROTO_GetShiftState done [11:48:10]FM_GetShiftState done [11:48:10]opened in 1719016176 [11:48:10]opened+sec_in_day 1719102576 [11:48:10]quantity*price = 200037 [11:48:10]sum+1 = 200039 [11:48:10]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 СНО: Общий режим Чек 83 22.06.2024 11:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104350 ФПД: 137772766359288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104350&fm=137772766359288&tin=02508201610067®Number=0000000000092785&sum=200000 [11:48:11]StoreToDocumentArchive [11:48:11]shift 356 fd 104350 [11:48:11]save to /storage/0356/doc_00104350 [11:48:11]save last doc name /storage/0356/doc_00104350 to /storage/kkm_last_doc_name [11:48:11]save OK [11:48:11]Clear old archive folders... [11:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:48:11]tlvbuf is 00FCA930 [11:48:11]SAM_PROTO_ClearQueue [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 09 00 00 [11:48:11]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [11:48:11]RAPDU: 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_ClearQueue done [11:48:11]KKMCreateOFDPacket [11:48:11]OFDProtocolAddRootSTLVToBuf [11:48:11]FM_MakeSignedData [11:48:11]FM_MakeSignedData [11:48:11]SAM_PROTO_SignData [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 0D 01 02 [11:48:11]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [11:48:11]RAPDU: 90 00 [11:48:11]wFMCommunicate OK [11:48:11]wFMCommunicate request_size=255 [11:48:11]MH_SAM_APDU [11:48: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 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 53 00 00 00 F4 03 04 00 FB B9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [11:48:11]Write to MH i2c: E2 02 01 B0 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 53 00 00 00 F4 03 04 00 FB B9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 7C [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:11]Read from MH i2c: E2 03 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [11:48:11]RAPDU: 90 00 [11:48:11]wFMCommunicate OK [11:48:11]wFMCommunicate request_size=11 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 0D 02 02 06 7D 4D B8 CC 6E F8 [11:48:11]Write to MH i2c: E2 0E 00 B1 07 80 0D 02 02 06 00 7D 4D B8 CC 6E F8 00 00 F2 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:11]Read from MH i2c: E2 03 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [11:48:11]RAPDU: 90 00 [11:48:11]wFMCommunicate OK [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 0D 03 02 [11:48:11]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0B 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0B 00 B2 07 00 0D 35 D0 93 99 78 E2 A5 90 00 72 [11:48:11]RAPDU: 0D 35 D0 93 99 78 E2 A5 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_SignData done [11:48:11]FM_MakeSignedData done [11:48:11]CreateOFDProtocolMessage [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 11 00 00 [11:48:11]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 17 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [11: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 [11:48:11]wFMCommunicate OK [11:48:11]CreateOFDProtocolMessage done [11:48:11]OFDSenderStorePacket 104350 [11:48:11]StoreOFDPacket docnum=104350 [11: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 10 01 00 00 9B 47 08 01 3F D3 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 53 00 00 00 F4 03 04 00 FB B9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D 4D B8 CC 6E F8 0D 35 D0 93 99 78 E2 A5 [11:48:11]CheckFolder [11:48:11]dirname=/storage/ofd_packets [11:48:11]CheckFolder done [11:48:11]ProducePacketName [11:48:11]name=ofd_packets/00104350 [11:48:11]NVStorageSaveData ofd_packets/00104350 [11:48:11]File name is /storage/ofd_packets/00104350 [11:48:11]Write 302 bytes [11:48:11]NVStorageSaveData done [11:48:11]OFDSenderStorePacket done [11:48:11]KKMCreateOFDPacket done [11:48:11]NVStorageSaveData kkm_last_timestamp [11:48:11]File name is /storage/kkm_last_timestamp [11:48:11]Write 4 bytes [11:48:11]NVStorageSaveData done [11:48:11]ExternCall_PrintAddStr [11:48:11]wPrintStart [11:48:11]Write to MH i2c: 01 00 00 B4 07 BB [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 07 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [11:48:11]RasterBufferAndPrint [11:48:11]line Счет N : (1)673875 [11:48:11]line ИНН: 02508201610067 [11:48:11]line Контрольно-Кассовый Чек [11:48:11]line ПРОДАЖА [11:48:11]line ТРК (МРК, ГНК) : 11 [11:48:11]line Товар: 2710194210 [11:48:11]line ДТ(л)-К-5 [11:48:11]line 27.440 * 72.90 [11:48:11]line = 2000.38 [11:48:11]line НДС 12% НСП 1% [11:48:11]line > о реализуемом товаре [11:48:11]line ОКРУГЛЕНИЕ: -0.38 [11:48:11]line ИТОГО: 2000.00 [11:48:11]line Внесено: 2000.00 [11:48:11]line СДАЧА: 0.00 [11:48:11]line НСП 1% : 17.70 [11:48:11]line НДС 12% : 212.43 [11:48:11]line Наличными: 2000.00 [11:48:11]line Безнал.: 0.00 [11:48:11]line Место: АЗС № 120 "Партнер Нефть" [11:48:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:48:11]line СНО: Общий режим [11:48:11]line Чек 83 22.06.2024 11:48 [11:48:11]line Смена: 356 ФФД: 1.0 [11:48:11]line ЗНМ: 0300000164 [11:48:11]line РНМ: 0000000000092785 [11:48:11]line Версия ККМ: 001 [11:48:11]line ФМ: 0000000000875093 [11:48:12]line ФД: 104350 [11:48:12]line ФПД: 137772766359288 [11:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104350&fm=137772766359288&tin=02508201610067®Number=0000000000092785&sum=200000 [11:48:12]OFD Sender: Processing packet 104350 [packets to send 17, broken 16] [11:48:12]ProducePacketName [11:48:12]name=ofd_packets/00104350 [11:48:12]OFD Sender: To server: pG, [11:48:12]CommunicateWithHost lk.salyk.kg:30040 [11:48:12]ConnectInit lk.salyk.kg [11:48:12]written 0, free lines is 4095 [11:48:12]Connected sock=9 [11: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 10 01 00 00 9B 47 08 01 3F D3 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 53 00 00 00 F4 03 04 00 FB B9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D 4D B8 CC 6E F8 0D 35 D0 93 99 78 E2 A5 [11: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 F5 5F 47 00 2B CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 97 01 00 F4 03 04 00 7A 60 76 66 B6 04 01 00 00 D3 95 0B 8F EB 69 4E EC [11:48:12]CommunicateWithHost err = 0 [11:48:12]CheckOFDResponse [11:48:12]1017 (14) - 77093643461234 [11:48:12]1041 (16) - 0000000000875093 [11:48:12]1040 (4) - 104350 [11:48:12]1012 (4) - 22.06.2024 05:26 [11:48:12]1206 (1) - 0 [11:48:12]OFD Sender: Remove packet 104350 [11:48:12]ProducePacketName [11:48:12]name=ofd_packets/00104350 [11:48:12]NVStorageDeleteData [11:48:12]Write to MH i2c: 01 00 00 DF 07 E6 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 D6 0C CF [11:48:12]RasterBufferAndPrint [11:48:12]line [11:48:12]line [11:48:12]line [11:48:12]line [11:48:12]line [11:48:12]written 0, free lines is 3294 [11:48:12]MH_Cut [11:48:12]Write to MH i2c: D1 01 00 E6 07 01 BF [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: D1 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: D1 01 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: D1 01 00 E6 07 00 BE [11:48:12]Write to MH i2c: 01 00 00 E7 07 EE [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:13]OFD Sender: No OFD packet to send [11:48:13]*** Cut start [11:48:13]*** Partial cut [11:48:13]*** CUTSNS_PIN = 1 [11:48:13]*** CUTSNS_PIN = 0 [11:48:13]*** Brake cut motor [11:48:13]Read from MH i2c: 01 [11:48:14]MH_I2C_Read... [11:48:14]*** Stop cut motor [11:48:14]*** Cut end [11:48:14]Read from MH i2c: 01 07 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FF 0F 03 [11:48:14]process_action close_receipt done [11:48:14]requested_data is exist [11:48:14]produce_requested_data [11:48:14]requested_item fm.sn is exist - process it [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 11 00 00 [11:48:14]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 17 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [11:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:48:14]wFMCommunicate OK [11:48:14]requested_item fd.num is exist - process it [11:48:14]SAM_PROTO_GetFieldsCounters [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 13 00 00 [11:48:14]Write to MH i2c: E2 08 00 E9 07 80 13 00 00 00 00 00 00 6C [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 62 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 62 00 E9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 27 [11: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 9E 97 01 00 0E 04 04 00 64 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 [11:48:14]wFMCommunicate OK [11:48:14]SAM_PROTO_GetFieldsCounters done [11:48:14]requested_item shift.num is exist - process it [11:48:14]requested_item shift.opened is exist - process it [11:48:14]req_shift_opened [11:48:14]FM_GetShiftState [11:48:14]SAM_PROTO_GetShiftState [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 13 01 00 [11:48:14]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 60 [11:48:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:48:14]wFMCommunicate OK [11:48:14]SAM_PROTO_GetShiftState done [11:48:14]FM_GetShiftState done [11:48:14]req_shift_opened done [11:48:14]requested_item shift.open_date is exist - process it [11:48:14]req_shift_open_date [11:48:14]req_shift_open_date done [11:48:14]produce_requested_data done [11:48:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104350,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:48:14]process_action_free close_receipt [11:48:14]json_value_free [11:48:14]json_value_free done [11:48:14]process_json_proto returns [11:48:14]Send response to host [11:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104350,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:48:14]free response buf [11:48:14]execute_script done [11:48:14]execute_script returns [11:48:14]free content buf [11:48:14]Sock 10.Close socket [11:48:14]Sock 10.Thread stoped [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:46]accept exits with 7 [11:49:46]New connection [11:49:46]New thread 3066592612 created [11:49:46]Thread 3066449252 joined [11:49:46]Waiting for new connection... [11:49:46] Sock 7.Parse request [11:49:46]Sock 7.Check first char [11:49:46]Sock 7.First char is OK [11:49:46]request: POST /json_proto HTTP/1.0 [11:49:46]Method: POST [11:49:46]URL: /json_proto [11:49:46]Method is POST - this is cgi request [11:49:46]url: /json_proto [11:49:46]query_string will be loaded in cgi processing [11:49:46]execute_cgi json_proto POST (null) [11:49:46]execute_cgi path=json_proto method=POST [11:49:46]POST find Content-Length [11:49:46]Host: 172.17.38.133:8080 [11:49:46]Content-Length: 801 [11:49:46]Content-Type: application/json [11:49:46] [11:49:46]POST finish read [11:49:46]Found Content-Length = 801 [11:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673877", "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.630, "sum" : 905.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 905.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:46]execute_script... [11:49: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)673877", "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.630, "sum" : 905.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 905.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:46]POST & json_proto [11:49:46]process_json_proto [11:49:46]json parsed OK: [11:49:46]protocol is kg_v1.0 [11:49:46]action value=close_receipt [11:49:46]process_action close_receipt [11:49:46]cmd_close_receipt [11:49:46]MH_GetDate [11:49:46]Write to MH i2c: F0 00 00 EB 07 E1 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: F0 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: F0 09 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: F0 09 00 EB 07 00 5B BA 76 66 BD 8F 7C 64 07 [11:49:46]GetLastDocTimeStamp 1719056891 [11:49:46]current date 1719056987 [11:49:46]FM_GetShiftState [11:49:46]SAM_PROTO_GetShiftState [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 13 01 00 [11:49:46]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0E 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 62 [11:49:46]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:49:46]wFMCommunicate OK [11:49:46]SAM_PROTO_GetShiftState done [11:49:46]FM_GetShiftState done [11:49:46]opened in 1719016176 [11:49:46]opened+sec_in_day 1719102576 [11:49:46]quantity*price = 90503 [11:49:46]sum+1 = 90504 [11:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 905.03 НСП 1% : 8.01 НДС 12% : 96.11 Наличными: 0.00 Безнал.: 905.03 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 22.06.2024 11:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104351 ФПД: 174431803051527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114947&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104351&fm=174431803051527&tin=02508201610067®Number=0000000000092785&sum=90503 [11:49:47]StoreToDocumentArchive [11:49:47]shift 356 fd 104351 [11:49:47]save to /storage/0356/doc_00104351 [11:49:47]save last doc name /storage/0356/doc_00104351 to /storage/kkm_last_doc_name [11:49:47]save OK [11:49:47]Clear old archive folders... [11:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:47]tlvbuf is 00FAB880 [11:49:47]SAM_PROTO_ClearQueue [11:49:47]wFMCommunicate request_size=4 [11:49:47]MH_SAM_APDU [11:49:47]CAPDU: 80 09 00 00 [11:49:47]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:47]Read from MH i2c: E2 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 03 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [11:49:47]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_ClearQueue done [11:49:48]KKMCreateOFDPacket [11:49:48]OFDProtocolAddRootSTLVToBuf [11:49:48]FM_MakeSignedData [11:49:48]FM_MakeSignedData [11:49:48]SAM_PROTO_SignData [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 01 02 [11:49:48]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=255 [11:49:48]MH_SAM_APDU [11:49: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 3E 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 61 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 5B BA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E [11:49:48]Write to MH i2c: E2 02 01 FB 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 61 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 5B BA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E 00 00 14 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]OFD Sender: No OFD packet to send [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=10 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 02 02 05 A5 11 A8 8E 07 [11:49:48]Write to MH i2c: E2 0D 00 FC 07 80 0D 02 02 05 00 A5 11 A8 8E 07 00 00 7A [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 03 02 [11:49:48]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0B 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0B 00 FD 07 00 17 41 53 6D A6 A1 CA 18 90 00 C1 [11:49:48]RAPDU: 17 41 53 6D A6 A1 CA 18 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_SignData done [11:49:48]FM_MakeSignedData done [11:49:48]CreateOFDProtocolMessage [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 11 00 00 [11:49:48]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [11:49: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:49:48]wFMCommunicate OK [11:49:48]CreateOFDProtocolMessage done [11:49:48]OFDSenderStorePacket 104351 [11:49:48]StoreOFDPacket docnum=104351 [11:49: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 3C 35 07 01 51 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 61 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 5B BA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E A5 11 A8 8E 07 17 41 53 6D A6 A1 CA 18 [11:49:48]CheckFolder [11:49:48]dirname=/storage/ofd_packets [11:49:48]CheckFolder done [11:49:48]ProducePacketName [11:49:48]name=ofd_packets/00104351 [11:49:48]NVStorageSaveData ofd_packets/00104351 [11:49:48]File name is /storage/ofd_packets/00104351 [11:49:48]Write 301 bytes [11:49:48]NVStorageSaveData done [11:49:48]OFDSenderStorePacket done [11:49:48]KKMCreateOFDPacket done [11:49:48]NVStorageSaveData kkm_last_timestamp [11:49:48]File name is /storage/kkm_last_timestamp [11:49:48]Write 4 bytes [11:49:48]NVStorageSaveData done [11:49:48]ExternCall_PrintAddStr [11:49:48]wPrintStart [11:49:48]Write to MH i2c: 01 00 00 FF 07 06 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 07 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [11:49:48]RasterBufferAndPrint [11:49:48]line Счет N : (1)673877 [11:49:48]line ИНН: 02508201610067 [11:49:48]line Контрольно-Кассовый Чек [11:49:48]line ПРОДАЖА [11:49:48]line ТРК (МРК, ГНК) : 32 [11:49:48]line Товар: 2710124130 [11:49:48]line Аи-92-К-5 [11:49:48]line 13.630 * 66.40 [11:49:48]line = 905.03 [11:49:48]line НДС 12% НСП 1% [11:49:48]line > о реализуемом товаре [11:49:48]line ИТОГО: 905.03 [11:49:48]line НСП 1% : 8.01 [11:49:48]line НДС 12% : 96.11 [11:49:48]line Наличными: 0.00 [11:49:48]line Безнал.: 905.03 [11:49:48]line Место: АЗС № 120 "Партнер Нефть" [11:49:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:49:48]line СНО: Общий режим [11:49:48]line Чек 84 22.06.2024 11:49 [11:49:48]line Смена: 356 ФФД: 1.0 [11:49:48]line ЗНМ: 0300000164 [11:49:48]line РНМ: 0000000000092785 [11:49:48]line Версия ККМ: 001 [11:49:48]line Платежная система: O! деньги [11:49:48]line ФМ: 0000000000875093 [11:49:48]line ФД: 104351 [11:49:48]line ФПД: 174431803051527 [11:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114947&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104351&fm=174431803051527&tin=02508201610067®Number=0000000000092785&sum=90503 [11:49:48]OFD Sender: Processing packet 104351 [packets to send 17, broken 16] [11:49:48]ProducePacketName [11:49:48]name=ofd_packets/00104351 [11:49:48]OFD Sender: To server: pG, [11:49:48]CommunicateWithHost lk.salyk.kg:30040 [11:49:48]ConnectInit lk.salyk.kg [11:49:48]written 0, free lines is 4095 [11:49:48]Connected sock=10 [11:49: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 3C 35 07 01 51 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 61 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 5B BA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E A5 11 A8 8E 07 17 41 53 6D A6 A1 CA 18 [11:49: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 EC 29 47 00 B5 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 9F 97 01 00 F4 03 04 00 DB 60 76 66 B6 04 01 00 00 28 0E 56 81 7E 42 02 59 [11:49:49]CommunicateWithHost err = 0 [11:49:49]CheckOFDResponse [11:49:49]1017 (14) - 77093643461234 [11:49:49]1041 (16) - 0000000000875093 [11:49:49]1040 (4) - 104351 [11:49:49]1012 (4) - 22.06.2024 05:27 [11:49:49]1206 (1) - 0 [11:49:49]OFD Sender: Remove packet 104351 [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00104351 [11:49:49]NVStorageDeleteData [11:49:49]Write to MH i2c: 01 00 00 29 08 31 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 07 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 DF 0C 23 [11:49:49]RasterBufferAndPrint [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]written 0, free lines is 3301 [11:49:49]MH_Cut [11:49:49]Write to MH i2c: D1 01 00 30 08 01 0A [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 01 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 01 00 30 08 00 09 [11:49:49]Write to MH i2c: 01 00 00 31 08 39 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]OFD Sender: No OFD packet to send [11:49:50]*** Cut start [11:49:50]*** Partial cut [11:49:50]*** CUTSNS_PIN = 1 [11:49:50]*** CUTSNS_PIN = 0 [11:49:50]*** Brake cut motor [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]*** Stop cut motor [11:49:50]*** Cut end [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 FF 0F 4E [11:49:50]process_action close_receipt done [11:49:50]requested_data is exist [11:49:50]produce_requested_data [11:49:50]requested_item fm.sn is exist - process it [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 11 00 00 [11:49:50]Write to MH i2c: E2 08 00 32 08 80 11 00 00 00 00 00 00 B4 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 32 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [11:49: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:49:50]wFMCommunicate OK [11:49:50]requested_item fd.num is exist - process it [11:49:50]SAM_PROTO_GetFieldsCounters [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 00 00 [11:49:50]Write to MH i2c: E2 08 00 33 08 80 13 00 00 00 00 00 00 B7 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 62 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 62 00 33 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 76 [11:49: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 9F 97 01 00 0E 04 04 00 64 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 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_GetFieldsCounters done [11:49:50]requested_item shift.num is exist - process it [11:49:50]requested_item shift.opened is exist - process it [11:49:50]req_shift_opened [11:49:50]FM_GetShiftState [11:49:50]SAM_PROTO_GetShiftState [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 01 00 [11:49:50]Write to MH i2c: E2 08 00 34 08 80 13 01 00 00 00 00 00 B9 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 34 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AB [11:49:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_GetShiftState done [11:49:50]FM_GetShiftState done [11:49:50]req_shift_opened done [11:49:50]requested_item shift.open_date is exist - process it [11:49:50]req_shift_open_date [11:49:50]req_shift_open_date done [11:49:50]produce_requested_data done [11:49:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104351,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:49:50]process_action_free close_receipt [11:49:50]json_value_free [11:49:50]json_value_free done [11:49:50]process_json_proto returns [11:49:50]Send response to host [11:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104351,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:49:50]free response buf [11:49:50]execute_script done [11:49:50]execute_script returns [11:49:50]free content buf [11:49:50]Sock 7.Close socket [11:49:50]Sock 7.Thread stoped [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [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]accept exits with 9 [11:54:49]New connection [11:54:49]New thread 3066449252 created [11:54:49]Thread 3066592612 joined [11:54:49]Waiting for new connection... [11:54:49] Sock 9.Parse request [11:54:49]Sock 9.Check first char [11:54:49]Sock 9.First char is OK [11:54:49]request: POST /json_proto HTTP/1.0 [11:54:49]Method: POST [11:54:49]URL: /json_proto [11:54:49]Method is POST - this is cgi request [11:54:49]url: /json_proto [11:54:49]query_string will be loaded in cgi processing [11:54:49]execute_cgi json_proto POST (null) [11:54:49]execute_cgi path=json_proto method=POST [11:54:49]POST find Content-Length [11:54:49]Host: 172.17.38.133:8080 [11:54:49]Content-Length: 682 [11:54:49]Content-Type: application/json [11:54:49] [11:54:49]POST finish read [11:54:49]Found Content-Length = 682 [11:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673878", "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.750, "sum" : 1510.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1510.00, "payments": [ { "type": 0, "sum" : 1510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:49]execute_script... [11:54:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673878", "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.750, "sum" : 1510.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1510.00, "payments": [ { "type": 0, "sum" : 1510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:49]POST & json_proto [11:54:49]process_json_proto [11:54:49]json parsed OK: [11:54:49]protocol is kg_v1.0 [11:54:49]action value=close_receipt [11:54:49]process_action close_receipt [11:54:49]cmd_close_receipt [11:54:49]MH_GetDate [11:54:49]Write to MH i2c: F0 00 00 35 08 2C [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: F0 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: F0 09 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: F0 09 00 35 08 00 8A BB 76 66 BD 8F 7C 64 82 [11:54:49]GetLastDocTimeStamp 1719056987 [11:54:49]current date 1719057290 [11:54:49]FM_GetShiftState [11:54:49]SAM_PROTO_GetShiftState [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 13 01 00 [11:54:49]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0E 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AD [11:54:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:54:49]wFMCommunicate OK [11:54:49]SAM_PROTO_GetShiftState done [11:54:49]FM_GetShiftState done [11:54:49]opened in 1719016176 [11:54:49]opened+sec_in_day 1719102576 [11:54:49]quantity*price = 151060 [11:54:49]sum+1 = 151061 [11:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1510.00 Внесено: 3000.00 СДАЧА: 1490.00 НСП 1% : 13.37 НДС 12% : 160.42 Наличными: 1510.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 22.06.2024 11:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104352 ФПД: 163472207962075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115450&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104352&fm=163472207962075&tin=02508201610067®Number=0000000000092785&sum=151000 [11:54:50]StoreToDocumentArchive [11:54:50]shift 356 fd 104352 [11:54:50]save to /storage/0356/doc_00104352 [11:54:50]save last doc name /storage/0356/doc_00104352 to /storage/kkm_last_doc_name [11:54:50]save OK [11:54:50]Clear old archive folders... [11:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:50]tlvbuf is 00FAD1B0 [11:54:50]SAM_PROTO_ClearQueue [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 09 00 00 [11:54:50]Write to MH i2c: E2 08 00 43 08 80 09 00 00 00 00 00 00 BD [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_ClearQueue done [11:54:50]KKMCreateOFDPacket [11:54:50]OFDProtocolAddRootSTLVToBuf [11:54:50]FM_MakeSignedData [11:54:50]FM_MakeSignedData [11:54:50]SAM_PROTO_SignData [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 01 02 [11:54:50]Write to MH i2c: E2 08 00 44 08 80 0D 01 02 00 00 00 00 C5 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=255 [11:54:51]MH_SAM_APDU [11:54: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 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 14 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8A BB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 [11:54:51]Write to MH i2c: E2 02 01 45 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 14 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8A BB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 00 00 93 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=10 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 02 02 05 AD 56 E2 DF DB [11:54:51]Write to MH i2c: E2 0D 00 46 08 80 0D 02 02 05 00 AD 56 E2 DF DB 00 00 71 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 03 02 [11:54:51]Write to MH i2c: E2 08 00 47 08 80 0D 03 02 00 00 00 00 CA [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0B 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0B 00 47 08 00 21 70 D4 E3 86 C5 BB 08 90 00 21 [11:54:51]RAPDU: 21 70 D4 E3 86 C5 BB 08 90 00 [11:54:51]wFMCommunicate OK [11:54:51]SAM_PROTO_SignData done [11:54:51]FM_MakeSignedData done [11:54:51]CreateOFDProtocolMessage [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 11 00 00 [11:54:51]Write to MH i2c: E2 08 00 48 08 80 11 00 00 00 00 00 00 CA [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 48 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [11:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:54:51]wFMCommunicate OK [11:54:51]CreateOFDProtocolMessage done [11:54:51]OFDSenderStorePacket 104352 [11:54:51]StoreOFDPacket docnum=104352 [11:54: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 8E F9 07 01 BF 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 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 14 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8A BB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 AD 56 E2 DF DB 21 70 D4 E3 86 C5 BB 08 [11:54:51]CheckFolder [11:54:51]dirname=/storage/ofd_packets [11:54:51]CheckFolder done [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00104352 [11:54:51]NVStorageSaveData ofd_packets/00104352 [11:54:51]File name is /storage/ofd_packets/00104352 [11:54:51]Write 301 bytes [11:54:51]NVStorageSaveData done [11:54:51]OFDSenderStorePacket done [11:54:51]KKMCreateOFDPacket done [11:54:51]NVStorageSaveData kkm_last_timestamp [11:54:51]File name is /storage/kkm_last_timestamp [11:54:51]Write 4 bytes [11:54:51]NVStorageSaveData done [11:54:51]ExternCall_PrintAddStr [11:54:51]wPrintStart [11:54:51]Write to MH i2c: 01 00 00 49 08 51 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [11:54:51]RasterBufferAndPrint [11:54:51]line Счет N : (1)673878 [11:54:51]line ИНН: 02508201610067 [11:54:51]line Контрольно-Кассовый Чек [11:54:51]line ПРОДАЖА [11:54:51]line ТРК (МРК, ГНК) : 32 [11:54:51]line Товар: 2710124130 [11:54:51]line Аи-92-К-5 [11:54:51]line 22.750 * 66.40 [11:54:51]line = 1510.60 [11:54:51]line НДС 12% НСП 1% [11:54:51]line > о реализуемом товаре [11:54:51]line ОКРУГЛЕНИЕ: -0.60 [11:54:51]line ИТОГО: 1510.00 [11:54:51]line Внесено: 3000.00 [11:54:51]line СДАЧА: 1490.00 [11:54:51]line НСП 1% : 13.37 [11:54:51]line НДС 12% : 160.42 [11:54:51]line Наличными: 1510.00 [11:54:51]line Безнал.: 0.00 [11:54:51]line Место: АЗС № 120 "Партнер Нефть" [11:54:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:54:51]line СНО: Общий режим [11:54:51]line Чек 85 22.06.2024 11:54 [11:54:51]line Смена: 356 ФФД: 1.0 [11:54:51]line ЗНМ: 0300000164 [11:54:51]line РНМ: 0000000000092785 [11:54:51]line Версия ККМ: 001 [11:54:51]line ФМ: 0000000000875093 [11:54:51]line ФД: 104352 [11:54:51]line ФПД: 163472207962075 [11:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115450&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104352&fm=163472207962075&tin=02508201610067®Number=0000000000092785&sum=151000 [11:54:51]OFD Sender: Processing packet 104352 [packets to send 17, broken 16] [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00104352 [11:54:51]OFD Sender: To server: pG, [11:54:51]CommunicateWithHost lk.salyk.kg:30040 [11:54:51]ConnectInit lk.salyk.kg [11:54:51]written 0, free lines is 4095 [11:54:51]Connected sock=10 [11:54: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 8E F9 07 01 BF 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 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 14 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8A BB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 AD 56 E2 DF DB 21 70 D4 E3 86 C5 BB 08 [11:54: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 A6 E2 47 00 68 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 A0 97 01 00 F4 03 04 00 0A 62 76 66 B6 04 01 00 00 8E 35 71 2C 5F 44 D3 78 [11:54:52]CommunicateWithHost err = 0 [11:54:52]CheckOFDResponse [11:54:52]1017 (14) - 77093643461234 [11:54:52]1041 (16) - 0000000000875093 [11:54:52]1040 (4) - 104352 [11:54:52]1012 (4) - 22.06.2024 05:32 [11:54:52]1206 (1) - 0 [11:54:52]OFD Sender: Remove packet 104352 [11:54:52]ProducePacketName [11:54:52]name=ofd_packets/00104352 [11:54:52]NVStorageDeleteData [11:54:52]Write to MH i2c: 01 00 00 74 08 7C [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 D4 0C 63 [11:54:52]RasterBufferAndPrint [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]written 0, free lines is 3292 [11:54:52]MH_Cut [11:54:52]Write to MH i2c: D1 01 00 7B 08 01 55 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 01 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 01 00 7B 08 00 54 [11:54:52]Write to MH i2c: 01 00 00 7C 08 84 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]OFD Sender: No OFD packet to send [11:54:53]*** Cut start [11:54:53]*** Partial cut [11:54:53]*** CUTSNS_PIN = 1 [11:54:53]*** CUTSNS_PIN = 0 [11:54:53]*** Brake cut motor [11:54:53]Read from MH i2c: 01 [11:54:53]MH_I2C_Read... [11:54:53]*** Stop cut motor [11:54:53]*** Cut end [11:54:53]Read from MH i2c: 01 07 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 FF 0F 99 [11:54:53]process_action close_receipt done [11:54:53]requested_data is exist [11:54:53]produce_requested_data [11:54:53]requested_item fm.sn is exist - process it [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 11 00 00 [11:54:53]Write to MH i2c: E2 08 00 7D 08 80 11 00 00 00 00 00 00 FF [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:53]Read from MH i2c: E2 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 17 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 17 00 7D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [11:54: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:54:53]wFMCommunicate OK [11:54:53]requested_item fd.num is exist - process it [11:54:53]SAM_PROTO_GetFieldsCounters [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 13 00 00 [11:54:53]Write to MH i2c: E2 08 00 7E 08 80 13 00 00 00 00 00 00 02 [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:53]Read from MH i2c: E2 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 62 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 62 00 7E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C5 [11:54: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 A0 97 01 00 0E 04 04 00 64 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 [11:54:53]wFMCommunicate OK [11:54:53]SAM_PROTO_GetFieldsCounters done [11:54:53]requested_item shift.num is exist - process it [11:54:53]requested_item shift.opened is exist - process it [11:54:53]req_shift_opened [11:54:53]FM_GetShiftState [11:54:53]SAM_PROTO_GetShiftState [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 13 01 00 [11:54:53]Write to MH i2c: E2 08 00 7F 08 80 13 01 00 00 00 00 00 04 [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:53]Read from MH i2c: E2 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 0E 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 0E 00 7F 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F6 [11:54:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:54:53]wFMCommunicate OK [11:54:53]SAM_PROTO_GetShiftState done [11:54:53]FM_GetShiftState done [11:54:53]req_shift_opened done [11:54:53]requested_item shift.open_date is exist - process it [11:54:53]req_shift_open_date [11:54:53]req_shift_open_date done [11:54:53]produce_requested_data done [11:54:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104352,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:54:53]process_action_free close_receipt [11:54:53]json_value_free [11:54:53]json_value_free done [11:54:53]process_json_proto returns [11:54:53]Send response to host [11:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104352,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:54:53]free response buf [11:54:53]execute_script done [11:54:53]execute_script returns [11:54:53]free content buf [11:54:53]Sock 9.Close socket [11:54:53]Sock 9.Thread stoped [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:14]accept exits with 7 [11:57:14]New connection [11:57:14]New thread 3066592612 created [11:57:14]Thread 3066449252 joined [11:57:14]Waiting for new connection... [11:57:14] Sock 7.Parse request [11:57:14]Sock 7.Check first char [11:57:14]Sock 7.First char is OK [11:57:14]request: POST /json_proto HTTP/1.0 [11:57:14]Method: POST [11:57:14]URL: /json_proto [11:57:14]Method is POST - this is cgi request [11:57:14]url: /json_proto [11:57:14]query_string will be loaded in cgi processing [11:57:14]execute_cgi json_proto POST (null) [11:57:14]execute_cgi path=json_proto method=POST [11:57:14]POST find Content-Length [11:57:14]Host: 172.17.38.133:8080 [11:57:14]Content-Length: 819 [11:57:14]Content-Type: application/json [11:57:14] [11:57:14]POST finish read [11:57:14]Found Content-Length = 819 [11:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673880", "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.370, "sum" : 1950.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1950.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:14]execute_script... [11:57: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)673880", "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.370, "sum" : 1950.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1950.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:14]POST & json_proto [11:57:14]process_json_proto [11:57:14]json parsed OK: [11:57:14]protocol is kg_v1.0 [11:57:14]action value=close_receipt [11:57:14]process_action close_receipt [11:57:14]cmd_close_receipt [11:57:14]MH_GetDate [11:57:14]Write to MH i2c: F0 00 00 80 08 77 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: F0 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: F0 09 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: F0 09 00 80 08 00 1B BC 76 66 BD 8F 7C 64 5F [11:57:14]GetLastDocTimeStamp 1719057290 [11:57:14]current date 1719057435 [11:57:14]FM_GetShiftState [11:57:14]SAM_PROTO_GetShiftState [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 13 01 00 [11:57:14]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0E 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F8 [11:57:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_GetShiftState done [11:57:14]FM_GetShiftState done [11:57:14]opened in 1719016176 [11:57:14]opened+sec_in_day 1719102576 [11:57:14]quantity*price = 195016 [11:57:14]sum+1 = 195018 [11:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1950.17 НСП 1% : 17.26 НДС 12% : 207.10 Наличными: 0.00 Безнал.: 1950.17 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 86 22.06.2024 11:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104353 ФПД: 155362428600537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104353&fm=155362428600537&tin=02508201610067®Number=0000000000092785&sum=195017 [11:57:15]StoreToDocumentArchive [11:57:15]shift 356 fd 104353 [11:57:15]save to /storage/0356/doc_00104353 [11:57:15]save last doc name /storage/0356/doc_00104353 to /storage/kkm_last_doc_name [11:57:15]save OK [11:57:15]Clear old archive folders... [11:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:15]tlvbuf is 0100CAD0 [11:57:15]SAM_PROTO_ClearQueue [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 09 00 00 [11:57:15]Write to MH i2c: E2 08 00 8E 08 80 09 00 00 00 00 00 00 08 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:15]Read from MH i2c: E2 03 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [11:57:15]RAPDU: 90 00 [11:57:15]wFMCommunicate OK [11:57:15]SAM_PROTO_ClearQueue done [11:57:15]KKMCreateOFDPacket [11:57:15]OFDProtocolAddRootSTLVToBuf [11:57:15]FM_MakeSignedData [11:57:15]FM_MakeSignedData [11:57:15]SAM_PROTO_SignData [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 0D 01 02 [11:57:15]Write to MH i2c: E2 08 00 8F 08 80 0D 01 02 00 00 00 00 10 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [11:57:15]RAPDU: 90 00 [11:57:15]wFMCommunicate OK [11:57:15]wFMCommunicate request_size=255 [11:57:15]MH_SAM_APDU [11:57: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 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 F9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1B BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8D [11:57:15]Write to MH i2c: E2 02 01 90 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 F9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1B BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8D 00 00 CF [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=10 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 02 02 05 4D 22 5E 40 D9 [11:57:16]Write to MH i2c: E2 0D 00 91 08 80 0D 02 02 05 00 4D 22 5E 40 D9 00 00 03 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 03 02 [11:57:16]Write to MH i2c: E2 08 00 92 08 80 0D 03 02 00 00 00 00 15 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0B 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0B 00 92 08 00 2C C1 97 E6 9C 6B 31 0F 90 00 C7 [11:57:16]RAPDU: 2C C1 97 E6 9C 6B 31 0F 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_SignData done [11:57:16]FM_MakeSignedData done [11:57:16]CreateOFDProtocolMessage [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 11 00 00 [11:57:16]Write to MH i2c: E2 08 00 93 08 80 11 00 00 00 00 00 00 15 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 93 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [11:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:57:16]wFMCommunicate OK [11:57:16]CreateOFDProtocolMessage done [11:57:16]OFDSenderStorePacket 104353 [11:57:16]StoreOFDPacket docnum=104353 [11:57: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 0F 99 07 01 42 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 F9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1B BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8D 4D 22 5E 40 D9 2C C1 97 E6 9C 6B 31 0F [11:57:16]CheckFolder [11:57:16]dirname=/storage/ofd_packets [11:57:16]CheckFolder done [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00104353 [11:57:16]NVStorageSaveData ofd_packets/00104353 [11:57:16]File name is /storage/ofd_packets/00104353 [11:57:16]Write 301 bytes [11:57:16]NVStorageSaveData done [11:57:16]OFDSenderStorePacket done [11:57:16]KKMCreateOFDPacket done [11:57:16]NVStorageSaveData kkm_last_timestamp [11:57:16]File name is /storage/kkm_last_timestamp [11:57:16]Write 4 bytes [11:57:16]NVStorageSaveData done [11:57:16]ExternCall_PrintAddStr [11:57:16]wPrintStart [11:57:16]Write to MH i2c: 01 00 00 94 08 9C [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 FF 0F B1 [11:57:16]RasterBufferAndPrint [11:57:16]line Счет N : (1)673880 [11:57:16]line ИНН: 02508201610067 [11:57:16]line Контрольно-Кассовый Чек [11:57:16]line ПРОДАЖА [11:57:16]line ТРК (МРК, ГНК) : 42 [11:57:16]line Товар: 2710124130 [11:57:16]line Аи-92-К-5 [11:57:16]line 29.370 * 66.40 [11:57:16]line = 1950.17 [11:57:16]line НДС 12% НСП 1% [11:57:16]line > о реализуемом товаре [11:57:16]line ИТОГО: 1950.17 [11:57:16]line НСП 1% : 17.26 [11:57:16]line НДС 12% : 207.10 [11:57:16]line Наличными: 0.00 [11:57:16]line Безнал.: 1950.17 [11:57:16]line Место: АЗС № 120 "Партнер Нефть" [11:57:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:57:16]line СНО: Общий режим [11:57:16]line Чек 86 22.06.2024 11:57 [11:57:16]line Смена: 356 ФФД: 1.0 [11:57:16]line ЗНМ: 0300000164 [11:57:16]line РНМ: 0000000000092785 [11:57:16]line Версия ККМ: 001 [11:57:16]line Платежная система: Бакай Банк [11:57:16]line ФМ: 0000000000875093 [11:57:16]line ФД: 104353 [11:57:16]line ФПД: 155362428600537 [11:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104353&fm=155362428600537&tin=02508201610067®Number=0000000000092785&sum=195017 [11:57:16]written 0, free lines is 4095 [11:57:16]OFD Sender: Processing packet 104353 [packets to send 17, broken 16] [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00104353 [11:57:16]OFD Sender: To server: pG, [11:57:16]CommunicateWithHost lk.salyk.kg:30040 [11:57:16]ConnectInit lk.salyk.kg [11:57:16]Connected sock=10 [11:57: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 0F 99 07 01 42 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 F9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1B BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8D 4D 22 5E 40 D9 2C C1 97 E6 9C 6B 31 0F [11:57: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 74 DE 47 00 31 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 9A 62 76 66 B6 04 01 00 00 F3 21 91 54 96 45 C3 0D [11:57:16]CommunicateWithHost err = 0 [11:57:16]CheckOFDResponse [11:57:16]1017 (14) - 77093643461234 [11:57:16]1041 (16) - 0000000000875093 [11:57:16]1040 (4) - 104353 [11:57:16]1012 (4) - 22.06.2024 05:35 [11:57:16]1206 (1) - 0 [11:57:16]OFD Sender: Remove packet 104353 [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00104353 [11:57:16]NVStorageDeleteData [11:57:16]Write to MH i2c: 01 00 00 BE 08 C6 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 E1 0C BA [11:57:16]RasterBufferAndPrint [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]written 0, free lines is 3303 [11:57:16]MH_Cut [11:57:16]Write to MH i2c: D1 01 00 C5 08 01 9F [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 01 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 01 00 C5 08 00 9E [11:57:16]Write to MH i2c: 01 00 00 C6 08 CE [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:17]OFD Sender: No OFD packet to send [11:57:17]*** Cut start [11:57:17]*** Partial cut [11:57:17]*** CUTSNS_PIN = 1 [11:57:17]*** CUTSNS_PIN = 0 [11:57:17]*** Brake cut motor [11:57:18]Read from MH i2c: 01 [11:57:18]MH_I2C_Read... [11:57:18]*** Stop cut motor [11:57:18]*** Cut end [11:57:18]Read from MH i2c: 01 07 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [11:57:18]process_action close_receipt done [11:57:18]requested_data is exist [11:57:18]produce_requested_data [11:57:18]requested_item fm.sn is exist - process it [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 11 00 00 [11:57:18]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [11:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:57:18]wFMCommunicate OK [11:57:18]requested_item fd.num is exist - process it [11:57:18]SAM_PROTO_GetFieldsCounters [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 13 00 00 [11:57:18]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 62 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 62 00 C8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 13 [11:57: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 A1 97 01 00 0E 04 04 00 64 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 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_GetFieldsCounters done [11:57:18]requested_item shift.num is exist - process it [11:57:18]requested_item shift.opened is exist - process it [11:57:18]req_shift_opened [11:57:18]FM_GetShiftState [11:57:18]SAM_PROTO_GetShiftState [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 13 01 00 [11:57:18]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0E 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 40 [11:57:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_GetShiftState done [11:57:18]FM_GetShiftState done [11:57:18]req_shift_opened done [11:57:18]requested_item shift.open_date is exist - process it [11:57:18]req_shift_open_date [11:57:18]req_shift_open_date done [11:57:18]produce_requested_data done [11:57:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104353,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:57:18]process_action_free close_receipt [11:57:18]json_value_free [11:57:18]json_value_free done [11:57:18]process_json_proto returns [11:57:18]Send response to host [11:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104353,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:57:18]free response buf [11:57:18]execute_script done [11:57:18]execute_script returns [11:57:18]free content buf [11:57:18]Sock 7.Close socket [11:57:18]Sock 7.Thread stoped [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:53]accept exits with 9 [11:58:53]New connection [11:58:53]New thread 3066449252 created [11:58:53]Thread 3066592612 joined [11:58:53]Waiting for new connection... [11:58:53] Sock 9.Parse request [11:58:53]Sock 9.Check first char [11:58:53]Sock 9.First char is OK [11:58:53]request: POST /json_proto HTTP/1.0 [11:58:53]Method: POST [11:58:53]URL: /json_proto [11:58:53]Method is POST - this is cgi request [11:58:53]url: /json_proto [11:58:53]query_string will be loaded in cgi processing [11:58:53]execute_cgi json_proto POST (null) [11:58:53]execute_cgi path=json_proto method=POST [11:58:53]POST find Content-Length [11:58:53]Host: 172.17.38.133:8080 [11:58:53]Content-Length: 682 [11:58:53]Content-Type: application/json [11:58:53] [11:58:53]POST finish read [11:58:53]Found Content-Length = 682 [11:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673881", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:53]execute_script... [11:58: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)673881", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:53]POST & json_proto [11:58:53]process_json_proto [11:58:53]json parsed OK: [11:58:53]protocol is kg_v1.0 [11:58:53]action value=close_receipt [11:58:53]process_action close_receipt [11:58:53]cmd_close_receipt [11:58:53]MH_GetDate [11:58:53]Write to MH i2c: F0 00 00 CA 08 C1 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 09 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 09 00 CA 08 00 7E BC 76 66 BD 8F 7C 64 0C [11:58:53]GetLastDocTimeStamp 1719057435 [11:58:53]current date 1719057534 [11:58:53]FM_GetShiftState [11:58:53]SAM_PROTO_GetShiftState [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 13 01 00 [11:58:53]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0E 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 42 [11:58:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:58:53]wFMCommunicate OK [11:58:53]SAM_PROTO_GetShiftState done [11:58:53]FM_GetShiftState done [11:58:53]opened in 1719016176 [11:58:53]opened+sec_in_day 1719102576 [11:58:53]quantity*price = 120051 [11:58:53]sum+1 = 120052 [11:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 22.06.2024 11:58 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104354 ФПД: 29420319213641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115854&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104354&fm=29420319213641&tin=02508201610067®Number=0000000000092785&sum=120000 [11:58:54]StoreToDocumentArchive [11:58:54]shift 356 fd 104354 [11:58:54]save to /storage/0356/doc_00104354 [11:58:54]save last doc name /storage/0356/doc_00104354 to /storage/kkm_last_doc_name [11:58:54]save OK [11:58:54]Clear old archive folders... [11:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:54]tlvbuf is 00FE7140 [11:58:54]SAM_PROTO_ClearQueue [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 09 00 00 [11:58:54]Write to MH i2c: E2 08 00 D8 08 80 09 00 00 00 00 00 00 52 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [11:58:54]RAPDU: 90 00 [11:58:54]wFMCommunicate OK [11:58:54]SAM_PROTO_ClearQueue done [11:58:54]KKMCreateOFDPacket [11:58:54]OFDProtocolAddRootSTLVToBuf [11:58:54]FM_MakeSignedData [11:58:54]FM_MakeSignedData [11:58:54]SAM_PROTO_SignData [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 0D 01 02 [11:58:54]Write to MH i2c: E2 08 00 D9 08 80 0D 01 02 00 00 00 00 5A [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 03 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [11:58:55]RAPDU: 90 00 [11:58:55]wFMCommunicate OK [11:58:55]wFMCommunicate request_size=255 [11:58:55]MH_SAM_APDU [11:58: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7E BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1A [11:58:55]Write to MH i2c: E2 02 01 DA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7E BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1A 00 00 99 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:55]Read from MH i2c: E2 03 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [11:58:55]RAPDU: 90 00 [11:58:55]wFMCommunicate OK [11:58:55]wFMCommunicate request_size=10 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 0D 02 02 05 C1 F3 AD 08 49 [11:58:55]Write to MH i2c: E2 0D 00 DB 08 80 0D 02 02 05 00 C1 F3 AD 08 49 00 00 19 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:55]Read from MH i2c: E2 03 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [11:58:55]RAPDU: 90 00 [11:58:55]wFMCommunicate OK [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 0D 03 02 [11:58:55]Write to MH i2c: E2 08 00 DC 08 80 0D 03 02 00 00 00 00 5F [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0B 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0B 00 DC 08 00 AD A7 36 B0 99 CC 77 FA 90 00 70 [11:58:55]RAPDU: AD A7 36 B0 99 CC 77 FA 90 00 [11:58:55]wFMCommunicate OK [11:58:55]SAM_PROTO_SignData done [11:58:55]FM_MakeSignedData done [11:58:55]CreateOFDProtocolMessage [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 11 00 00 [11:58:55]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 17 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [11:58:55]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:55]wFMCommunicate OK [11:58:55]CreateOFDProtocolMessage done [11:58:55]OFDSenderStorePacket 104354 [11:58:55]StoreOFDPacket docnum=104354 [11:58: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 EF 68 07 01 23 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7E BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1A C1 F3 AD 08 49 AD A7 36 B0 99 CC 77 FA [11:58:55]CheckFolder [11:58:55]dirname=/storage/ofd_packets [11:58:55]CheckFolder done [11:58:55]ProducePacketName [11:58:55]name=ofd_packets/00104354 [11:58:55]NVStorageSaveData ofd_packets/00104354 [11:58:55]File name is /storage/ofd_packets/00104354 [11:58:55]Write 301 bytes [11:58:55]NVStorageSaveData done [11:58:55]OFDSenderStorePacket done [11:58:55]KKMCreateOFDPacket done [11:58:55]NVStorageSaveData kkm_last_timestamp [11:58:55]File name is /storage/kkm_last_timestamp [11:58:55]Write 4 bytes [11:58:55]NVStorageSaveData done [11:58:55]ExternCall_PrintAddStr [11:58:55]wPrintStart [11:58:55]Write to MH i2c: 01 00 00 DE 08 E6 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [11:58:55]RasterBufferAndPrint [11:58:55]line Счет N : (1)673881 [11:58:55]line ИНН: 02508201610067 [11:58:55]line Контрольно-Кассовый Чек [11:58:55]line ПРОДАЖА [11:58:55]line ТРК (МРК, ГНК) : 42 [11:58:55]line Товар: 2710124130 [11:58:55]line Аи-92-К-5 [11:58:55]line 18.080 * 66.40 [11:58:55]line = 1200.51 [11:58:55]line НДС 12% НСП 1% [11:58:55]line > о реализуемом товаре [11:58:55]line ОКРУГЛЕНИЕ: -0.51 [11:58:55]line ИТОГО: 1200.00 [11:58:55]line Внесено: 1200.00 [11:58:55]line СДАЧА: 0.00 [11:58:55]line НСП 1% : 10.62 [11:58:55]line НДС 12% : 127.49 [11:58:55]line Наличными: 1200.00 [11:58:55]line Безнал.: 0.00 [11:58:55]line Место: АЗС № 120 "Партнер Нефть" [11:58:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:58:55]line СНО: Общий режим [11:58:55]line Чек 87 22.06.2024 11:58 [11:58:55]line Смена: 356 ФФД: 1.0 [11:58:55]line ЗНМ: 0300000164 [11:58:55]line РНМ: 0000000000092785 [11:58:55]line Версия ККМ: 001 [11:58:55]line ФМ: 0000000000875093 [11:58:55]line ФД: 104354 [11:58:55]line ФПД: 29420319213641 [11:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115854&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104354&fm=29420319213641&tin=02508201610067®Number=0000000000092785&sum=120000 [11:58:55]OFD Sender: Processing packet 104354 [packets to send 17, broken 16] [11:58:55]ProducePacketName [11:58:55]name=ofd_packets/00104354 [11:58:55]OFD Sender: To server: pG, [11:58:55]CommunicateWithHost lk.salyk.kg:30040 [11:58:55]ConnectInit lk.salyk.kg [11:58:55]written 0, free lines is 4095 [11:58:55]Connected sock=10 [11:58: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 EF 68 07 01 23 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7E BC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1A C1 F3 AD 08 49 AD A7 36 B0 99 CC 77 FA [11:58: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 A3 69 47 00 27 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 A2 97 01 00 F4 03 04 00 FE 62 76 66 B6 04 01 00 00 8C 5B 20 76 1E 1E 22 FB [11:58:56]CommunicateWithHost err = 0 [11:58:56]CheckOFDResponse [11:58:56]1017 (14) - 77093643461234 [11:58:56]1041 (16) - 0000000000875093 [11:58:56]1040 (4) - 104354 [11:58:56]1012 (4) - 22.06.2024 05:37 [11:58:56]1206 (1) - 0 [11:58:56]OFD Sender: Remove packet 104354 [11:58:56]ProducePacketName [11:58:56]name=ofd_packets/00104354 [11:58:56]NVStorageDeleteData [11:58:56]Write to MH i2c: 01 00 00 09 09 12 [11:58:56]Write i2c OK [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: 01 [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: 01 07 00 [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 D4 0C F9 [11:58:56]RasterBufferAndPrint [11:58:56]line [11:58:56]line [11:58:56]line [11:58:56]line [11:58:56]line [11:58:56]written 0, free lines is 3292 [11:58:56]MH_Cut [11:58:56]Write to MH i2c: D1 01 00 10 09 01 EB [11:58:56]Write i2c OK [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: D1 [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: D1 01 00 [11:58:56]MH_I2C_Read... [11:58:56]Read from MH i2c: D1 01 00 10 09 00 EA [11:58:56]Write to MH i2c: 01 00 00 11 09 1A [11:58:56]Write i2c OK [11:58:56]MH_I2C_Read... [11:58:56]OFD Sender: No OFD packet to send [11:58:56]*** Cut start [11:58:56]*** Partial cut [11:58:56]*** CUTSNS_PIN = 1 [11:58:57]*** CUTSNS_PIN = 0 [11:58:57]*** Brake cut motor [11:58:57]Read from MH i2c: 01 [11:58:57]MH_I2C_Read... [11:58:57]*** Stop cut motor [11:58:57]*** Cut end [11:58:57]Read from MH i2c: 01 07 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [11:58:57]process_action close_receipt done [11:58:57]requested_data is exist [11:58:57]produce_requested_data [11:58:57]requested_item fm.sn is exist - process it [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 11 00 00 [11:58:57]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 17 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [11:58:57]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:57]wFMCommunicate OK [11:58:57]requested_item fd.num is exist - process it [11:58:57]SAM_PROTO_GetFieldsCounters [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 13 00 00 [11:58:57]Write to MH i2c: E2 08 00 13 09 80 13 00 00 00 00 00 00 98 [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 62 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 62 00 13 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 63 [11:58: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 A2 97 01 00 0E 04 04 00 64 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 [11:58:57]wFMCommunicate OK [11:58:57]SAM_PROTO_GetFieldsCounters done [11:58:57]requested_item shift.num is exist - process it [11:58:57]requested_item shift.opened is exist - process it [11:58:57]req_shift_opened [11:58:57]FM_GetShiftState [11:58:57]SAM_PROTO_GetShiftState [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 13 01 00 [11:58:57]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 0E 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [11:58:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:58:57]wFMCommunicate OK [11:58:57]SAM_PROTO_GetShiftState done [11:58:57]FM_GetShiftState done [11:58:57]req_shift_opened done [11:58:57]requested_item shift.open_date is exist - process it [11:58:57]req_shift_open_date [11:58:57]req_shift_open_date done [11:58:57]produce_requested_data done [11:58:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104354,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:58:57]process_action_free close_receipt [11:58:57]json_value_free [11:58:57]json_value_free done [11:58:57]process_json_proto returns [11:58:57]Send response to host [11:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104354,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:58:57]free response buf [11:58:57]execute_script done [11:58:57]execute_script returns [11:58:57]free content buf [11:58:57]Sock 9.Close socket [11:58:57]Sock 9.Thread stoped [11:58:58]accept exits with 7 [11:58:58]New connection [11:58:58]New thread 3066592612 created [11:58:58]Thread 3066449252 joined [11:58:58]Waiting for new connection... [11:58:58] Sock 7.Parse request [11:58:58]Sock 7.Check first char [11:58:58]Sock 7.First char is OK [11:58:58]request: POST /json_proto HTTP/1.0 [11:58:58]Method: POST [11:58:58]URL: /json_proto [11:58:58]Method is POST - this is cgi request [11:58:58]url: /json_proto [11:58:58]query_string will be loaded in cgi processing [11:58:58]execute_cgi json_proto POST (null) [11:58:58]execute_cgi path=json_proto method=POST [11:58:58]POST find Content-Length [11:58:58]Host: 172.17.38.133:8080 [11:58:58]Content-Length: 1167 [11:58:58]Content-Type: application/json [11:58:58] [11:58:58]POST finish read [11:58:58]Found Content-Length = 1167 [11:58: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673882\u000A22.06.2024 11:35\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:58]execute_script... [11:58: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673882\u000A22.06.2024 11:35\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:58]POST & json_proto [11:58:58]process_json_proto [11:58:58]json parsed OK: [11:58:58]protocol is kg_v1.0 [11:58:58]action value=print_text [11:58:58]process_action print_text [11:58:58]cmd_print_text [11:58:58]ExternCall_PrintAddStr [11:58:58]wPrintStart [11:58:58]Write to MH i2c: 01 00 00 15 09 1E [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 07 00 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 FF 0F 33 [11:58:58]RasterBufferAndPrint [11:58:58]line *****ТОВАРНЫЙ ЧЕК***** [11:58:58]line АЗС 120 [11:58:58]line Партнер нефть [11:58:58]line 02508201610067 [11:58:58]line Кассир : Байбугуева Г. [11:58:58]line Счет N : (1)673882 [11:58:58]line 22.06.2024 11:35 [11:58:58]line ПРОДАЖА [11:58:58]line ТРК (МРК, ГНК): 32 [11:58:58]line Вид ГСМ : 2710124130 [11:58:58]line Аи-92-К-5 [11:58:58]line 5.000 x 66.40 [11:58:58]line ИТОГ: 332.00 [11:58:58]line Тип оплаты: Талоны: ТК ГПНА Online [11:58:58]line 30101606 [11:58:58]line ______________________ [11:58:58]line (подпись) [11:58:58]written 0, free lines is 4095 [11:58:58]Write to MH i2c: 01 00 00 29 09 32 [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 07 00 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 10 0E 57 [11:58:58]RasterBufferAndPrint [11:58:58]line [11:58:58]line [11:58:58]line [11:58:58]line [11:58:58]line [11:58:58]written 0, free lines is 3603 [11:58:58]MH_Cut [11:58:58]Write to MH i2c: D1 01 00 30 09 01 0B [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: D1 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: D1 01 00 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: D1 01 00 30 09 00 0A [11:58:58]Write to MH i2c: 01 00 00 31 09 3A [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]*** Cut start [11:58:58]*** Partial cut [11:58:58]*** CUTSNS_PIN = 1 [11:58:58]*** CUTSNS_PIN = 0 [11:58:59]*** Brake cut motor [11:58:59]Read from MH i2c: 01 [11:58:59]MH_I2C_Read... [11:58:59]*** Stop cut motor [11:58:59]*** Cut end [11:58:59]Read from MH i2c: 01 07 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [11:58:59]process_action print_text done [11:58:59]requested_data is exist [11:58:59]produce_requested_data [11:58:59]requested_item fm.sn is exist - process it [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 11 00 00 [11:58:59]Write to MH i2c: E2 08 00 32 09 80 11 00 00 00 00 00 00 B5 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 17 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 17 00 32 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [11:58:59]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:59]wFMCommunicate OK [11:58:59]requested_item fd.num is exist - process it [11:58:59]SAM_PROTO_GetFieldsCounters [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 13 00 00 [11:58:59]Write to MH i2c: E2 08 00 33 09 80 13 00 00 00 00 00 00 B8 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 62 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 62 00 33 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 83 [11:58: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 A2 97 01 00 0E 04 04 00 64 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 [11:58:59]wFMCommunicate OK [11:58:59]SAM_PROTO_GetFieldsCounters done [11:58:59]requested_item shift.num is exist - process it [11:58:59]requested_item shift.opened is exist - process it [11:58:59]req_shift_opened [11:58:59]FM_GetShiftState [11:58:59]SAM_PROTO_GetShiftState [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 13 01 00 [11:58:59]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AC [11:58:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [11:58:59]wFMCommunicate OK [11:58:59]SAM_PROTO_GetShiftState done [11:58:59]FM_GetShiftState done [11:58:59]req_shift_opened done [11:58:59]requested_item shift.open_date is exist - process it [11:58:59]req_shift_open_date [11:58:59]req_shift_open_date done [11:58:59]produce_requested_data done [11:58:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104354,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [11:58:59]process_action_free print_text [11:58:59]json_value_free [11:58:59]json_value_free done [11:58:59]process_json_proto returns [11:58:59]Send response to host [11:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104354,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [11:58:59]free response buf [11:58:59]execute_script done [11:58:59]execute_script returns [11:58:59]free content buf [11:58:59]Sock 7.Close socket [11:58:59]Sock 7.Thread stoped [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:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]accept exits with 9 [12:02:31]New connection [12:02:31]New thread 3066449252 created [12:02:31]Thread 3066592612 joined [12:02:31]Waiting for new connection... [12:02:31] Sock 9.Parse request [12:02:31]Sock 9.Check first char [12:02:31]Sock 9.First char is OK [12:02:31]request: POST /json_proto HTTP/1.0 [12:02:31]Method: POST [12:02:31]URL: /json_proto [12:02:31]Method is POST - this is cgi request [12:02:31]url: /json_proto [12:02:31]query_string will be loaded in cgi processing [12:02:31]execute_cgi json_proto POST (null) [12:02:31]execute_cgi path=json_proto method=POST [12:02:31]POST find Content-Length [12:02:31]Host: 172.17.38.133:8080 [12:02:31]Content-Length: 819 [12:02:31]Content-Type: application/json [12:02:31] [12:02:31]POST finish read [12:02:31]Found Content-Length = 819 [12:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673883", "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 }]} ], "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" ] } } [12:02:31]execute_script... [12:02:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673883", "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 }]} ], "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" ] } } [12:02:31]POST & json_proto [12:02:31]process_json_proto [12:02:31]json parsed OK: [12:02:31]protocol is kg_v1.0 [12:02:31]action value=close_receipt [12:02:31]process_action close_receipt [12:02:31]cmd_close_receipt [12:02:31]MH_GetDate [12:02:31]Write to MH i2c: F0 00 00 35 09 2D [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: F0 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: F0 09 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: F0 09 00 35 09 00 58 BD 76 66 BD 8F 7C 64 53 [12:02:31]GetLastDocTimeStamp 1719057534 [12:02:31]current date 1719057752 [12:02:31]FM_GetShiftState [12:02:31]SAM_PROTO_GetShiftState [12:02:31]wFMCommunicate request_size=4 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 13 01 00 [12:02:31]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 0E 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AE [12:02:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:02:31]wFMCommunicate OK [12:02:31]SAM_PROTO_GetShiftState done [12:02:31]FM_GetShiftState done [12:02:31]opened in 1719016176 [12:02:31]opened+sec_in_day 1719102576 [12:02:31]quantity*price = 200047 [12:02:31]sum+1 = 200048 [12:02:31]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 СНО: Общий режим Чек 88 22.06.2024 12:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104355 ФПД: 30190222050166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104355&fm=30190222050166&tin=02508201610067®Number=0000000000092785&sum=200047 [12:02:32]StoreToDocumentArchive [12:02:32]shift 356 fd 104355 [12:02:32]save to /storage/0356/doc_00104355 [12:02:32]save last doc name /storage/0356/doc_00104355 to /storage/kkm_last_doc_name [12:02:32]save OK [12:02:32]Clear old archive folders... [12:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:32]tlvbuf is 010092B0 [12:02:32]SAM_PROTO_ClearQueue [12:02:32]wFMCommunicate request_size=4 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 09 00 00 [12:02:32]Write to MH i2c: E2 08 00 43 09 80 09 00 00 00 00 00 00 BE [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:32]Read from MH i2c: E2 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 03 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [12:02:32]RAPDU: 90 00 [12:02:32]wFMCommunicate OK [12:02:32]SAM_PROTO_ClearQueue done [12:02:32]KKMCreateOFDPacket [12:02:32]OFDProtocolAddRootSTLVToBuf [12:02:32]FM_MakeSignedData [12:02:32]FM_MakeSignedData [12:02:32]SAM_PROTO_SignData [12:02:32]wFMCommunicate request_size=4 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 0D 01 02 [12:02:32]Write to MH i2c: E2 08 00 44 09 80 0D 01 02 00 00 00 00 C6 [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:32]Read from MH i2c: E2 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 03 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [12:02:32]RAPDU: 90 00 [12:02:32]wFMCommunicate OK [12:02:32]wFMCommunicate request_size=255 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 F4 03 04 00 58 BD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B [12:02:32]Write to MH i2c: E2 02 01 45 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 F4 03 04 00 58 BD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B 00 00 BA [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:33]Read from MH i2c: E2 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 03 00 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [12:02:33]RAPDU: 90 00 [12:02:33]wFMCommunicate OK [12:02:33]wFMCommunicate request_size=10 [12:02:33]MH_SAM_APDU [12:02:33]CAPDU: 80 0D 02 02 05 75 35 76 03 76 [12:02:33]Write to MH i2c: E2 0D 00 46 09 80 0D 02 02 05 00 75 35 76 03 76 00 00 6C [12:02:33]Write i2c OK [12:02:33]MH_I2C_Read... [12:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:33]Read from MH i2c: E2 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 03 00 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [12:02:33]RAPDU: 90 00 [12:02:33]wFMCommunicate OK [12:02:33]wFMCommunicate request_size=4 [12:02:33]MH_SAM_APDU [12:02:33]CAPDU: 80 0D 03 02 [12:02:33]Write to MH i2c: E2 08 00 47 09 80 0D 03 02 00 00 00 00 CB [12:02:33]Write i2c OK [12:02:33]MH_I2C_Read... [12:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:33]Read from MH i2c: E2 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 0B 00 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 0B 00 47 09 00 A2 E7 D2 C5 83 5D 3C C2 90 00 CA [12:02:33]RAPDU: A2 E7 D2 C5 83 5D 3C C2 90 00 [12:02:33]wFMCommunicate OK [12:02:33]SAM_PROTO_SignData done [12:02:33]FM_MakeSignedData done [12:02:33]CreateOFDProtocolMessage [12:02:33]wFMCommunicate request_size=4 [12:02:33]MH_SAM_APDU [12:02:33]CAPDU: 80 11 00 00 [12:02:33]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [12:02:33]Write i2c OK [12:02:33]MH_I2C_Read... [12:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:33]Read from MH i2c: E2 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 17 00 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [12:02:33]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:33]wFMCommunicate OK [12:02:33]CreateOFDProtocolMessage done [12:02:33]OFDSenderStorePacket 104355 [12:02:33]StoreOFDPacket docnum=104355 [12:02: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 14 B4 07 01 B3 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 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 58 00 00 00 F4 03 04 00 58 BD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B 75 35 76 03 76 A2 E7 D2 C5 83 5D 3C C2 [12:02:33]CheckFolder [12:02:33]dirname=/storage/ofd_packets [12:02:33]CheckFolder done [12:02:33]ProducePacketName [12:02:33]name=ofd_packets/00104355 [12:02:33]NVStorageSaveData ofd_packets/00104355 [12:02:33]File name is /storage/ofd_packets/00104355 [12:02:33]Write 301 bytes [12:02:33]NVStorageSaveData done [12:02:33]OFDSenderStorePacket done [12:02:33]KKMCreateOFDPacket done [12:02:33]NVStorageSaveData kkm_last_timestamp [12:02:33]File name is /storage/kkm_last_timestamp [12:02:33]Write 4 bytes [12:02:33]NVStorageSaveData done [12:02:33]ExternCall_PrintAddStr [12:02:33]wPrintStart [12:02:33]Write to MH i2c: 01 00 00 49 09 52 [12:02:33]Write i2c OK [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: 01 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: 01 07 00 [12:02:33]MH_I2C_Read... [12:02:33]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 FF 0F 67 [12:02:33]RasterBufferAndPrint [12:02:33]line Счет N : (1)673883 [12:02:33]line ИНН: 02508201610067 [12:02:33]line Контрольно-Кассовый Чек [12:02:33]line ПРОДАЖА [12:02:33]line ТРК (МРК, ГНК) : 41 [12:02:33]line Товар: 2710124500 [12:02:33]line Аи-95-К-5 [12:02:33]line 27.070 * 73.90 [12:02:33]line = 2000.47 [12:02:33]line НДС 12% НСП 1% [12:02:33]line > о реализуемом товаре [12:02:33]line ИТОГО: 2000.47 [12:02:33]line НСП 1% : 17.70 [12:02:33]line НДС 12% : 212.44 [12:02:33]line Наличными: 0.00 [12:02:33]line Безнал.: 2000.47 [12:02:33]line Место: АЗС № 120 "Партнер Нефть" [12:02:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:02:33]line СНО: Общий режим [12:02:33]line Чек 88 22.06.2024 12:02 [12:02:33]line Смена: 356 ФФД: 1.0 [12:02:33]line ЗНМ: 0300000164 [12:02:33]line РНМ: 0000000000092785 [12:02:33]line Версия ККМ: 001 [12:02:33]line Платежная система: Бакай Банк [12:02:33]line ФМ: 0000000000875093 [12:02:33]line ФД: 104355 [12:02:33]line ФПД: 30190222050166 [12:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104355&fm=30190222050166&tin=02508201610067®Number=0000000000092785&sum=200047 [12:02:33]OFD Sender: Processing packet 104355 [packets to send 17, broken 16] [12:02:33]ProducePacketName [12:02:33]name=ofd_packets/00104355 [12:02:33]OFD Sender: To server: pG, [12:02:33]CommunicateWithHost lk.salyk.kg:30040 [12:02:33]ConnectInit lk.salyk.kg [12:02:33]written 0, free lines is 4095 [12:02:33]Connected sock=10 [12:02: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 14 B4 07 01 B3 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 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 58 00 00 00 F4 03 04 00 58 BD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1B 75 35 76 03 76 A2 E7 D2 C5 83 5D 3C C2 [12:02: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 BC 98 47 00 49 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 A3 97 01 00 F4 03 04 00 D7 63 76 66 B6 04 01 00 00 5E FF B5 0B 29 42 EA D2 [12:02:33]CommunicateWithHost err = 0 [12:02:33]CheckOFDResponse [12:02:33]1017 (14) - 77093643461234 [12:02:33]1041 (16) - 0000000000875093 [12:02:33]1040 (4) - 104355 [12:02:33]1012 (4) - 22.06.2024 05:40 [12:02:33]1206 (1) - 0 [12:02:33]OFD Sender: Remove packet 104355 [12:02:33]ProducePacketName [12:02:33]name=ofd_packets/00104355 [12:02:33]NVStorageDeleteData [12:02:34]Write to MH i2c: 01 00 00 73 09 7C [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: 01 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: 01 07 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 DD 0C 6C [12:02:34]RasterBufferAndPrint [12:02:34]line [12:02:34]line [12:02:34]line [12:02:34]line [12:02:34]line [12:02:34]written 0, free lines is 3299 [12:02:34]MH_Cut [12:02:34]Write to MH i2c: D1 01 00 7A 09 01 55 [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: D1 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: D1 01 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: D1 01 00 7A 09 00 54 [12:02:34]Write to MH i2c: 01 00 00 7B 09 84 [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]OFD Sender: No OFD packet to send [12:02:34]*** Cut start [12:02:34]*** Partial cut [12:02:34]*** CUTSNS_PIN = 1 [12:02:34]*** CUTSNS_PIN = 0 [12:02:35]*** Brake cut motor [12:02:35]Read from MH i2c: 01 [12:02:35]MH_I2C_Read... [12:02:35]*** Stop cut motor [12:02:35]*** Cut end [12:02:35]Read from MH i2c: 01 07 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [12:02:35]process_action close_receipt done [12:02:35]requested_data is exist [12:02:35]produce_requested_data [12:02:35]requested_item fm.sn is exist - process it [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 11 00 00 [12:02:35]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 17 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [12:02: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:02:35]wFMCommunicate OK [12:02:35]requested_item fd.num is exist - process it [12:02:35]SAM_PROTO_GetFieldsCounters [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 13 00 00 [12:02:35]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 62 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D1 [12:02: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 A3 97 01 00 0E 04 04 00 64 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:02:35]wFMCommunicate OK [12:02:35]SAM_PROTO_GetFieldsCounters done [12:02:35]requested_item shift.num is exist - process it [12:02:35]requested_item shift.opened is exist - process it [12:02:35]req_shift_opened [12:02:35]FM_GetShiftState [12:02:35]SAM_PROTO_GetShiftState [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 13 01 00 [12:02:35]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F6 [12:02:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:02:35]wFMCommunicate OK [12:02:35]SAM_PROTO_GetShiftState done [12:02:35]FM_GetShiftState done [12:02:35]req_shift_opened done [12:02:35]requested_item shift.open_date is exist - process it [12:02:35]req_shift_open_date [12:02:35]req_shift_open_date done [12:02:35]produce_requested_data done [12:02:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:02:35]process_action_free close_receipt [12:02:35]json_value_free [12:02:35]json_value_free done [12:02:35]process_json_proto returns [12:02:35]Send response to host [12:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:02:35]free response buf [12:02:35]execute_script done [12:02:35]execute_script returns [12:02:35]free content buf [12:02:35]Sock 9.Close socket [12:02:35]Sock 9.Thread stoped [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:01]accept exits with 7 [12:04:01]New connection [12:04:01]New thread 3066592612 created [12:04:01]Thread 3066449252 joined [12:04:01]Waiting for new connection... [12:04:01] Sock 7.Parse request [12:04:01]Sock 7.Check first char [12:04:01]Sock 7.First char is OK [12:04:01]request: POST /json_proto HTTP/1.0 [12:04:01]Method: POST [12:04:01]URL: /json_proto [12:04:01]Method is POST - this is cgi request [12:04:01]url: /json_proto [12:04:01]query_string will be loaded in cgi processing [12:04:01]execute_cgi json_proto POST (null) [12:04:01]execute_cgi path=json_proto method=POST [12:04:01]POST find Content-Length [12:04:01]Host: 172.17.38.133:8080 [12:04:01]Content-Length: 1176 [12:04:01]Content-Type: application/json [12:04:01] [12:04:01]POST finish read [12:04:01]Found Content-Length = 1176 [12:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673879\u000A22.06.2024 11:41\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 165.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 12028.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101747\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:01]execute_script... [12:04:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673879\u000A22.06.2024 11:41\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 165.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 12028.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101747\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:01]POST & json_proto [12:04:01]process_json_proto [12:04:01]json parsed OK: [12:04:01]protocol is kg_v1.0 [12:04:01]action value=print_text [12:04:01]process_action print_text [12:04:01]cmd_print_text [12:04:01]ExternCall_PrintAddStr [12:04:01]wPrintStart [12:04:01]Write to MH i2c: 01 00 00 7F 09 88 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [12:04:01]RasterBufferAndPrint [12:04:01]line *****ТОВАРНЫЙ ЧЕК***** [12:04:01]line АЗС 120 [12:04:01]line Партнер нефть [12:04:01]line 02508201610067 [12:04:01]line Кассир : Байбугуева Г. [12:04:01]line Счет N : (1)673879 [12:04:01]line 22.06.2024 11:41 [12:04:01]line ПРОДАЖА [12:04:01]line ТРК (МРК, ГНК): 21 [12:04:01]line Вид ГСМ : 2710194210 [12:04:01]line ДТ(л)-К-5 [12:04:01]line 165.000 x 72.90 [12:04:01]line ИТОГ: 12028.50 [12:04:01]line Тип оплаты: Талоны: ТК ГПНА Online [12:04:01]line 30101747 [12:04:01]line ______________________ [12:04:01]line (подпись) [12:04:01]written 0, free lines is 4095 [12:04:01]Write to MH i2c: 01 00 00 93 09 9C [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 10 0E C1 [12:04:01]RasterBufferAndPrint [12:04:01]line [12:04:01]line [12:04:01]line [12:04:01]line [12:04:01]line [12:04:01]written 0, free lines is 3602 [12:04:01]MH_Cut [12:04:01]Write to MH i2c: D1 01 00 9A 09 01 75 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: D1 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: D1 01 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: D1 01 00 9A 09 00 74 [12:04:01]Write to MH i2c: 01 00 00 9B 09 A4 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:02]*** Cut start [12:04:02]*** Partial cut [12:04:02]*** CUTSNS_PIN = 1 [12:04:02]*** CUTSNS_PIN = 0 [12:04:02]*** Brake cut motor [12:04:02]Read from MH i2c: 01 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: 01 07 00 [12:04:02]MH_I2C_Read... [12:04:02]*** Stop cut motor [12:04:02]*** Cut end [12:04:02]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 FF 0F B9 [12:04:02]process_action print_text done [12:04:02]requested_data is exist [12:04:02]produce_requested_data [12:04:02]requested_item fm.sn is exist - process it [12:04:02]wFMCommunicate request_size=4 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 11 00 00 [12:04:02]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 17 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [12:04: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:04:02]wFMCommunicate OK [12:04:02]requested_item fd.num is exist - process it [12:04:02]SAM_PROTO_GetFieldsCounters [12:04:02]wFMCommunicate request_size=4 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 13 00 00 [12:04:02]Write to MH i2c: E2 08 00 9D 09 80 13 00 00 00 00 00 00 22 [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 62 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 62 00 9D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F1 [12:04: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 A3 97 01 00 0E 04 04 00 64 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:04:02]wFMCommunicate OK [12:04:02]SAM_PROTO_GetFieldsCounters done [12:04:02]requested_item shift.num is exist - process it [12:04:02]requested_item shift.opened is exist - process it [12:04:02]req_shift_opened [12:04:02]FM_GetShiftState [12:04:02]SAM_PROTO_GetShiftState [12:04:02]wFMCommunicate request_size=4 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 13 01 00 [12:04:02]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 0E 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 16 [12:04:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:04:02]wFMCommunicate OK [12:04:02]SAM_PROTO_GetShiftState done [12:04:02]FM_GetShiftState done [12:04:02]req_shift_opened done [12:04:02]requested_item shift.open_date is exist - process it [12:04:02]req_shift_open_date [12:04:02]req_shift_open_date done [12:04:02]produce_requested_data done [12:04:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:04:02]process_action_free print_text [12:04:02]json_value_free [12:04:02]json_value_free done [12:04:02]process_json_proto returns [12:04:02]Send response to host [12:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:04:02]free response buf [12:04:02]execute_script done [12:04:02]execute_script returns [12:04:02]free content buf [12:04:02]Sock 7.Close socket [12:04:02]Sock 7.Thread stoped [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:38]accept exits with 9 [12:04:38]New connection [12:04:38]New thread 3066449252 created [12:04:38]Thread 3066592612 joined [12:04:38]Waiting for new connection... [12:04:38] Sock 9.Parse request [12:04:38]Sock 9.Check first char [12:04:38]Sock 9.First char is OK [12:04:38]request: POST /json_proto HTTP/1.0 [12:04:38]Method: POST [12:04:38]URL: /json_proto [12:04:38]Method is POST - this is cgi request [12:04:38]url: /json_proto [12:04:38]query_string will be loaded in cgi processing [12:04:38]execute_cgi json_proto POST (null) [12:04:38]execute_cgi path=json_proto method=POST [12:04:38]POST find Content-Length [12:04:38]Host: 172.17.38.133:8080 [12:04:38]Content-Length: 1196 [12:04:38]Content-Type: application/json [12:04:38] [12:04:38]POST finish read [12:04:38]Found Content-Length = 1196 [12:04: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673884\u000A22.06.2024 11: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\u000A3543783\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:38]execute_script... [12:04: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673884\u000A22.06.2024 11: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\u000A3543783\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:38]POST & json_proto [12:04:38]process_json_proto [12:04:38]json parsed OK: [12:04:38]protocol is kg_v1.0 [12:04:38]action value=print_text [12:04:38]process_action print_text [12:04:38]cmd_print_text [12:04:38]ExternCall_PrintAddStr [12:04:38]wPrintStart [12:04:38]Write to MH i2c: 01 00 00 9F 09 A8 [12:04:38]Write i2c OK [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 07 00 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [12:04:38]RasterBufferAndPrint [12:04:38]line *****ТОВАРНЫЙ ЧЕК***** [12:04:38]line АЗС 120 [12:04:38]line Партнер нефть [12:04:38]line 02508201610067 [12:04:38]line Кассир : Байбугуева Г. [12:04:38]line Счет N : (1)673884 [12:04:38]line 22.06.2024 11:41 [12:04:38]line ПРОДАЖА [12:04:38]line ТРК (МРК, ГНК): 32 [12:04:38]line Вид ГСМ : 2710124130 [12:04:38]line Аи-92-К-5 [12:04:38]line 10.000 x 66.40 [12:04:38]line ИТОГ: 664.00 [12:04:38]line Тип оплаты: Талоны: Партнер нефть [12:04:38]line 3543783 [12:04:38]line ______________________ [12:04:38]line (подпись) [12:04:38]written 0, free lines is 4095 [12:04:38]Write to MH i2c: 01 00 00 B3 09 BC [12:04:38]Write i2c OK [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 07 00 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 12 0E E3 [12:04:38]RasterBufferAndPrint [12:04:38]line [12:04:38]line [12:04:38]line [12:04:38]line [12:04:38]line [12:04:38]written 0, free lines is 3604 [12:04:38]MH_Cut [12:04:38]Write to MH i2c: D1 01 00 BA 09 01 95 [12:04:38]Write i2c OK [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: D1 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: D1 01 00 [12:04:38]MH_I2C_Read... [12:04:38]Read from MH i2c: D1 01 00 BA 09 00 94 [12:04:38]Write to MH i2c: 01 00 00 BB 09 C4 [12:04:38]Write i2c OK [12:04:38]MH_I2C_Read... [12:04:38]*** Cut start [12:04:38]*** Partial cut [12:04:38]*** CUTSNS_PIN = 1 [12:04:38]*** CUTSNS_PIN = 0 [12:04:39]*** Brake cut motor [12:04:39]Read from MH i2c: 01 [12:04:39]MH_I2C_Read... [12:04:39]*** Stop cut motor [12:04:39]*** Cut end [12:04:39]Read from MH i2c: 01 07 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [12:04:39]process_action print_text done [12:04:39]requested_data is exist [12:04:39]produce_requested_data [12:04:39]requested_item fm.sn is exist - process it [12:04:39]wFMCommunicate request_size=4 [12:04:39]MH_SAM_APDU [12:04:39]CAPDU: 80 11 00 00 [12:04:39]Write to MH i2c: E2 08 00 BC 09 80 11 00 00 00 00 00 00 3F [12:04:39]Write i2c OK [12:04:39]MH_I2C_Read... [12:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:39]Read from MH i2c: E2 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 17 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 17 00 BC 09 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:04:39]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:39]wFMCommunicate OK [12:04:39]requested_item fd.num is exist - process it [12:04:39]SAM_PROTO_GetFieldsCounters [12:04:39]wFMCommunicate request_size=4 [12:04:39]MH_SAM_APDU [12:04:39]CAPDU: 80 13 00 00 [12:04:39]Write to MH i2c: E2 08 00 BD 09 80 13 00 00 00 00 00 00 42 [12:04:39]Write i2c OK [12:04:39]MH_I2C_Read... [12:04:39]OFD Sender: No OFD packet to send [12:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:39]Read from MH i2c: E2 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 62 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 62 00 BD 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 11 [12:04: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 A3 97 01 00 0E 04 04 00 64 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:04:39]wFMCommunicate OK [12:04:39]SAM_PROTO_GetFieldsCounters done [12:04:39]requested_item shift.num is exist - process it [12:04:39]requested_item shift.opened is exist - process it [12:04:39]req_shift_opened [12:04:39]FM_GetShiftState [12:04:39]SAM_PROTO_GetShiftState [12:04:39]wFMCommunicate request_size=4 [12:04:39]MH_SAM_APDU [12:04:39]CAPDU: 80 13 01 00 [12:04:39]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [12:04:39]Write i2c OK [12:04:39]MH_I2C_Read... [12:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:39]Read from MH i2c: E2 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 0E 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 36 [12:04:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:04:39]wFMCommunicate OK [12:04:39]SAM_PROTO_GetShiftState done [12:04:39]FM_GetShiftState done [12:04:39]req_shift_opened done [12:04:39]requested_item shift.open_date is exist - process it [12:04:39]req_shift_open_date [12:04:39]req_shift_open_date done [12:04:39]produce_requested_data done [12:04:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:04:39]process_action_free print_text [12:04:39]json_value_free [12:04:39]json_value_free done [12:04:39]process_json_proto returns [12:04:39]Send response to host [12:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104355,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:04:39]free response buf [12:04:39]execute_script done [12:04:39]execute_script returns [12:04:39]free content buf [12:04:39]Sock 9.Close socket [12:04:39]Sock 9.Thread stoped [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]accept exits with 7 [12:06:09]New connection [12:06:09]New thread 3066592612 created [12:06:09]Thread 3066449252 joined [12:06:09]Waiting for new connection... [12:06:09] Sock 7.Parse request [12:06:09]Sock 7.Check first char [12:06:09]Sock 7.First char is OK [12:06:09]request: POST /json_proto HTTP/1.0 [12:06:09]Method: POST [12:06:09]URL: /json_proto [12:06:09]Method is POST - this is cgi request [12:06:09]url: /json_proto [12:06:09]query_string will be loaded in cgi processing [12:06:09]execute_cgi json_proto POST (null) [12:06:09]execute_cgi path=json_proto method=POST [12:06:09]POST find Content-Length [12:06:09]Host: 172.17.38.133:8080 [12:06:09]Content-Length: 661 [12:06:09]Content-Type: application/json [12:06:09] [12:06:09]POST finish read [12:06:09]Found Content-Length = 661 [12:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673886", "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.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:09]execute_script... [12:06: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)673886", "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.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:09]POST & json_proto [12:06:09]process_json_proto [12:06:09]json parsed OK: [12:06:09]protocol is kg_v1.0 [12:06:09]action value=close_receipt [12:06:09]process_action close_receipt [12:06:09]cmd_close_receipt [12:06:09]MH_GetDate [12:06:09]Write to MH i2c: F0 00 00 BF 09 B7 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: F0 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: F0 09 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: F0 09 00 BF 09 00 32 BE 76 66 BD 8F 7C 64 B8 [12:06:09]GetLastDocTimeStamp 1719057752 [12:06:09]current date 1719057970 [12:06:09]FM_GetShiftState [12:06:09]SAM_PROTO_GetShiftState [12:06:09]wFMCommunicate request_size=4 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 13 01 00 [12:06:09]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:09]Read from MH i2c: E2 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 0E 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 38 [12:06:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:06:09]wFMCommunicate OK [12:06:09]SAM_PROTO_GetShiftState done [12:06:09]FM_GetShiftState done [12:06:09]opened in 1719016176 [12:06:09]opened+sec_in_day 1719102576 [12:06:09]quantity*price = 73900 [12:06:09]sum+1 = 73901 [12:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 Внесено: 1000.00 СДАЧА: 261.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 739.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 89 22.06.2024 12:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104356 ФПД: 25296055845848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120610&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104356&fm=25296055845848&tin=02508201610067®Number=0000000000092785&sum=73900 [12:06:10]StoreToDocumentArchive [12:06:10]shift 356 fd 104356 [12:06:10]save to /storage/0356/doc_00104356 [12:06:10]save last doc name /storage/0356/doc_00104356 to /storage/kkm_last_doc_name [12:06:10]save OK [12:06:10]Clear old archive folders... [12:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:10]tlvbuf is 00FEC070 [12:06:10]SAM_PROTO_ClearQueue [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 09 00 00 [12:06:10]Write to MH i2c: E2 08 00 CD 09 80 09 00 00 00 00 00 00 48 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [12:06:10]RAPDU: 90 00 [12:06:10]wFMCommunicate OK [12:06:10]SAM_PROTO_ClearQueue done [12:06:10]KKMCreateOFDPacket [12:06:10]OFDProtocolAddRootSTLVToBuf [12:06:10]FM_MakeSignedData [12:06:10]FM_MakeSignedData [12:06:10]SAM_PROTO_SignData [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 0D 01 02 [12:06:10]Write to MH i2c: E2 08 00 CE 09 80 0D 01 02 00 00 00 00 50 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [12:06:10]RAPDU: 90 00 [12:06:10]wFMCommunicate OK [12:06:10]wFMCommunicate request_size=255 [12:06:10]MH_SAM_APDU [12:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 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 32 BE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 17 [12:06:10]Write to MH i2c: E2 02 01 CF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 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 32 BE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 17 00 00 2F [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [12:06:10]RAPDU: 90 00 [12:06:10]wFMCommunicate OK [12:06:10]wFMCommunicate request_size=10 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 0D 02 02 05 01 B2 6C 43 D8 [12:06:10]Write to MH i2c: E2 0D 00 D0 09 80 0D 02 02 05 00 01 B2 6C 43 D8 00 00 97 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [12:06:10]RAPDU: 90 00 [12:06:10]wFMCommunicate OK [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 0D 03 02 [12:06:10]Write to MH i2c: E2 08 00 D1 09 80 0D 03 02 00 00 00 00 55 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 0B 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 0B 00 D1 09 00 74 30 ED 24 E6 45 1D 6A 90 00 BD [12:06:10]RAPDU: 74 30 ED 24 E6 45 1D 6A 90 00 [12:06:10]wFMCommunicate OK [12:06:10]SAM_PROTO_SignData done [12:06:10]FM_MakeSignedData done [12:06:10]CreateOFDProtocolMessage [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 11 00 00 [12:06:10]Write to MH i2c: E2 08 00 D2 09 80 11 00 00 00 00 00 00 55 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 17 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 17 00 D2 09 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:06: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:06:10]wFMCommunicate OK [12:06:10]CreateOFDProtocolMessage done [12:06:10]OFDSenderStorePacket 104356 [12:06:10]StoreOFDPacket docnum=104356 [12:06: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 7A 49 07 01 B6 79 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 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 32 BE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 17 01 B2 6C 43 D8 74 30 ED 24 E6 45 1D 6A [12:06:10]CheckFolder [12:06:10]dirname=/storage/ofd_packets [12:06:10]CheckFolder done [12:06:10]ProducePacketName [12:06:10]name=ofd_packets/00104356 [12:06:10]NVStorageSaveData ofd_packets/00104356 [12:06:10]File name is /storage/ofd_packets/00104356 [12:06:10]Write 301 bytes [12:06:10]NVStorageSaveData done [12:06:10]OFDSenderStorePacket done [12:06:10]KKMCreateOFDPacket done [12:06:10]NVStorageSaveData kkm_last_timestamp [12:06:10]File name is /storage/kkm_last_timestamp [12:06:10]Write 4 bytes [12:06:10]NVStorageSaveData done [12:06:10]ExternCall_PrintAddStr [12:06:10]wPrintStart [12:06:10]Write to MH i2c: 01 00 00 D3 09 DC [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 D3 09 00 00 00 00 00 FF 0F F1 [12:06:10]RasterBufferAndPrint [12:06:10]line Счет N : (1)673886 [12:06:10]line ИНН: 02508201610067 [12:06:10]line Контрольно-Кассовый Чек [12:06:10]line ПРОДАЖА [12:06:10]line ТРК (МРК, ГНК) : 31 [12:06:10]line Товар: 2710124500 [12:06:10]line Аи-95-К-5 [12:06:10]line 10.000 * 73.90 [12:06:10]line = 739.00 [12:06:10]line НДС 12% НСП 1% [12:06:10]line > о реализуемом товаре [12:06:10]line ИТОГО: 739.00 [12:06:10]line Внесено: 1000.00 [12:06:10]line СДАЧА: 261.00 [12:06:10]line НСП 1% : 6.54 [12:06:10]line НДС 12% : 78.48 [12:06:10]line Наличными: 739.00 [12:06:10]line Безнал.: 0.00 [12:06:10]line Место: АЗС № 120 "Партнер Нефть" [12:06:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:06:10]line СНО: Общий режим [12:06:10]line Чек 89 22.06.2024 12:06 [12:06:10]line Смена: 356 ФФД: 1.0 [12:06:10]line ЗНМ: 0300000164 [12:06:10]line РНМ: 0000000000092785 [12:06:10]line Версия ККМ: 001 [12:06:10]line ФМ: 0000000000875093 [12:06:10]line ФД: 104356 [12:06:10]line ФПД: 25296055845848 [12:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120610&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104356&fm=25296055845848&tin=02508201610067®Number=0000000000092785&sum=73900 [12:06:11]OFD Sender: Processing packet 104356 [packets to send 17, broken 16] [12:06:11]ProducePacketName [12:06:11]name=ofd_packets/00104356 [12:06:11]OFD Sender: To server: pG, [12:06:11]CommunicateWithHost lk.salyk.kg:30040 [12:06:11]ConnectInit lk.salyk.kg [12:06:11]written 0, free lines is 4095 [12:06:11]Connected sock=10 [12:06: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 7A 49 07 01 B6 79 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 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 32 BE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 17 01 B2 6C 43 D8 74 30 ED 24 E6 45 1D 6A [12:06: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 8F CE 47 00 A9 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 A4 97 01 00 F4 03 04 00 B1 64 76 66 B6 04 01 00 00 47 76 22 3F DD 2A 5B E6 [12:06:11]CommunicateWithHost err = 0 [12:06:11]CheckOFDResponse [12:06:11]1017 (14) - 77093643461234 [12:06:11]1041 (16) - 0000000000875093 [12:06:11]1040 (4) - 104356 [12:06:11]1012 (4) - 22.06.2024 05:44 [12:06:11]1206 (1) - 0 [12:06:11]OFD Sender: Remove packet 104356 [12:06:11]ProducePacketName [12:06:11]name=ofd_packets/00104356 [12:06:11]NVStorageDeleteData [12:06:11]Write to MH i2c: 01 00 00 FD 09 06 [12:06:11]Write i2c OK [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: 01 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: 01 07 00 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 E6 0C FF [12:06:11]RasterBufferAndPrint [12:06:11]line [12:06:11]line [12:06:11]line [12:06:11]line [12:06:11]line [12:06:11]written 0, free lines is 3310 [12:06:11]MH_Cut [12:06:11]Write to MH i2c: D1 01 00 04 0A 01 E0 [12:06:11]Write i2c OK [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: D1 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: D1 01 00 [12:06:11]MH_I2C_Read... [12:06:11]Read from MH i2c: D1 01 00 04 0A 00 DF [12:06:11]Write to MH i2c: 01 00 00 05 0A 0F [12:06:11]Write i2c OK [12:06:11]MH_I2C_Read... [12:06:11]OFD Sender: No OFD packet to send [12:06:12]*** Cut start [12:06:12]*** Partial cut [12:06:12]*** CUTSNS_PIN = 1 [12:06:12]*** CUTSNS_PIN = 0 [12:06:12]*** Brake cut motor [12:06:12]Read from MH i2c: 01 [12:06:12]MH_I2C_Read... [12:06:12]*** Stop cut motor [12:06:12]*** Cut end [12:06:12]Read from MH i2c: 01 07 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: 01 07 00 05 0A 00 00 00 00 00 FF 0F 24 [12:06:12]process_action close_receipt done [12:06:12]requested_data is exist [12:06:12]produce_requested_data [12:06:12]requested_item fm.sn is exist - process it [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 11 00 00 [12:06:12]Write to MH i2c: E2 08 00 06 0A 80 11 00 00 00 00 00 00 8A [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 06 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [12: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 [12:06:12]wFMCommunicate OK [12:06:12]requested_item fd.num is exist - process it [12:06:12]SAM_PROTO_GetFieldsCounters [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 13 00 00 [12:06:12]Write to MH i2c: E2 08 00 07 0A 80 13 00 00 00 00 00 00 8D [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:13]Read from MH i2c: E2 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 62 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 62 00 07 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 60 [12:06: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 A4 97 01 00 0E 04 04 00 64 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:06:13]wFMCommunicate OK [12:06:13]SAM_PROTO_GetFieldsCounters done [12:06:13]requested_item shift.num is exist - process it [12:06:13]requested_item shift.opened is exist - process it [12:06:13]req_shift_opened [12:06:13]FM_GetShiftState [12:06:13]SAM_PROTO_GetShiftState [12:06:13]wFMCommunicate request_size=4 [12:06:13]MH_SAM_APDU [12:06:13]CAPDU: 80 13 01 00 [12:06:13]Write to MH i2c: E2 08 00 08 0A 80 13 01 00 00 00 00 00 8F [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:13]Read from MH i2c: E2 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 0E 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 0E 00 08 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 81 [12:06:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:06:13]wFMCommunicate OK [12:06:13]SAM_PROTO_GetShiftState done [12:06:13]FM_GetShiftState done [12:06:13]req_shift_opened done [12:06:13]requested_item shift.open_date is exist - process it [12:06:13]req_shift_open_date [12:06:13]req_shift_open_date done [12:06:13]produce_requested_data done [12:06:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104356,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:06:13]process_action_free close_receipt [12:06:13]json_value_free [12:06:13]json_value_free done [12:06:13]process_json_proto returns [12:06:13]Send response to host [12:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104356,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:06:13]free response buf [12:06:13]execute_script done [12:06:13]execute_script returns [12:06:13]free content buf [12:06:13]Sock 7.Close socket [12:06:13]Sock 7.Thread stoped [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:41]accept exits with 9 [12:07:41]New connection [12:07:41]New thread 3066449252 created [12:07:41]Thread 3066592612 joined [12:07:41]Waiting for new connection... [12:07:41] Sock 9.Parse request [12:07:41]Sock 9.Check first char [12:07:41]Sock 9.First char is OK [12:07:41]request: POST /json_proto HTTP/1.0 [12:07:41]Method: POST [12:07:41]URL: /json_proto [12:07:41]Method is POST - this is cgi request [12:07:41]url: /json_proto [12:07:41]query_string will be loaded in cgi processing [12:07:41]execute_cgi json_proto POST (null) [12:07:41]execute_cgi path=json_proto method=POST [12:07:41]POST find Content-Length [12:07:41]Host: 172.17.38.133:8080 [12:07:41]Content-Length: 1207 [12:07:41]Content-Type: application/json [12:07:41] [12:07:41]POST finish read [12:07:41]Found Content-Length = 1207 [12:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673887\u000A22.06.2024 11:44\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]execute_script... [12:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673887\u000A22.06.2024 11:44\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]POST & json_proto [12:07:41]process_json_proto [12:07:41]json parsed OK: [12:07:41]protocol is kg_v1.0 [12:07:41]action value=print_text [12:07:41]process_action print_text [12:07:41]cmd_print_text [12:07:41]ExternCall_PrintAddStr [12:07:41]wPrintStart [12:07:41]Write to MH i2c: 01 00 00 09 0A 13 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 07 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 FF 0F 28 [12:07:41]RasterBufferAndPrint [12:07:41]line *****ТОВАРНЫЙ ЧЕК***** [12:07:41]line АЗС 120 [12:07:41]line Партнер нефть [12:07:41]line 02508201610067 [12:07:41]line Кассир : Байбугуева Г. [12:07:41]line Счет N : (1)673887 [12:07:41]line 22.06.2024 11:44 [12:07:41]line ПРОДАЖА [12:07:41]line ТРК (МРК, ГНК): 42 [12:07:41]line Вид ГСМ : 2710124130 [12:07:41]line Аи-92-К-5 [12:07:41]line 40.000 x 66.40 [12:07:41]line ИТОГ: 2656.00 [12:07:41]line Тип оплаты: Талоны: Топливная Карта [12:07:41]line 00562 [12:07:41]line ______________________ [12:07:41]line (подпись) [12:07:41]written 0, free lines is 4095 [12:07:41]Write to MH i2c: 01 00 00 1D 0A 27 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 07 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 12 0E 4E [12:07:41]RasterBufferAndPrint [12:07:41]line [12:07:41]line [12:07:41]line [12:07:41]line [12:07:41]line [12:07:41]written 0, free lines is 3604 [12:07:41]MH_Cut [12:07:41]Write to MH i2c: D1 01 00 24 0A 01 00 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: D1 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: D1 01 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: D1 01 00 24 0A 00 FF [12:07:41]Write to MH i2c: 01 00 00 25 0A 2F [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:42]OFD Sender: No OFD packet to send [12:07:42]*** Cut start [12:07:42]*** Partial cut [12:07:42]*** CUTSNS_PIN = 1 [12:07:42]*** CUTSNS_PIN = 0 [12:07:42]*** Brake cut motor [12:07:42]Read from MH i2c: 01 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: 01 07 00 [12:07:42]MH_I2C_Read... [12:07:42]*** Stop cut motor [12:07:42]*** Cut end [12:07:42]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [12:07:42]process_action print_text done [12:07:42]requested_data is exist [12:07:42]produce_requested_data [12:07:42]requested_item fm.sn is exist - process it [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 11 00 00 [12:07:42]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [12: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 [12:07:43]wFMCommunicate OK [12:07:43]requested_item fd.num is exist - process it [12:07:43]SAM_PROTO_GetFieldsCounters [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 13 00 00 [12:07:43]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 62 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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: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 A4 97 01 00 0E 04 04 00 64 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:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_GetFieldsCounters done [12:07:43]requested_item shift.num is exist - process it [12:07:43]requested_item shift.opened is exist - process it [12:07:43]req_shift_opened [12:07:43]FM_GetShiftState [12:07:43]SAM_PROTO_GetShiftState [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 13 01 00 [12:07:43]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A1 [12:07:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_GetShiftState done [12:07:43]FM_GetShiftState done [12:07:43]req_shift_opened done [12:07:43]requested_item shift.open_date is exist - process it [12:07:43]req_shift_open_date [12:07:43]req_shift_open_date done [12:07:43]produce_requested_data done [12:07:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104356,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:07:43]process_action_free print_text [12:07:43]json_value_free [12:07:43]json_value_free done [12:07:43]process_json_proto returns [12:07:43]Send response to host [12:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104356,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:07:43]free response buf [12:07:43]execute_script done [12:07:43]execute_script returns [12:07:43]free content buf [12:07:43]Sock 9.Close socket [12:07:43]Sock 9.Thread stoped [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:25]accept exits with 7 [12:10:25]New connection [12:10:25]New thread 3066592612 created [12:10:25]Thread 3066449252 joined [12:10:25]Waiting for new connection... [12:10:25] Sock 7.Parse request [12:10:25]Sock 7.Check first char [12:10:25]Sock 7.First char is OK [12:10:25]request: POST /json_proto HTTP/1.0 [12:10:25]Method: POST [12:10:25]URL: /json_proto [12:10:25]Method is POST - this is cgi request [12:10:25]url: /json_proto [12:10:25]query_string will be loaded in cgi processing [12:10:25]execute_cgi json_proto POST (null) [12:10:25]execute_cgi path=json_proto method=POST [12:10:25]POST find Content-Length [12:10:25]Host: 172.17.38.133:8080 [12:10:25]Content-Length: 678 [12:10:25]Content-Type: application/json [12:10:25] [12:10:25]POST finish read [12:10:25]Found Content-Length = 678 [12:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673888", "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:25]execute_script... [12:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673888", "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:25]POST & json_proto [12:10:25]process_json_proto [12:10:25]json parsed OK: [12:10:25]protocol is kg_v1.0 [12:10:25]action value=close_receipt [12:10:25]process_action close_receipt [12:10:25]cmd_close_receipt [12:10:25]MH_GetDate [12:10:25]Write to MH i2c: F0 00 00 29 0A 22 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 09 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 09 00 29 0A 00 32 BF 76 66 BD 8F 7C 64 24 [12:10:25]GetLastDocTimeStamp 1719057970 [12:10:25]current date 1719058226 [12:10:25]FM_GetShiftState [12:10:25]SAM_PROTO_GetShiftState [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 13 01 00 [12:10:25]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0E 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A3 [12:10:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_GetShiftState done [12:10:25]FM_GetShiftState done [12:10:25]opened in 1719016176 [12:10:25]opened+sec_in_day 1719102576 [12:10:25]quantity*price = 70052 [12:10:25]sum+1 = 70053 [12:10:25]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 СНО: Общий режим Чек 90 22.06.2024 12:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104357 ФПД: 112640533375489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121026&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104357&fm=112640533375489&tin=02508201610067®Number=0000000000092785&sum=70000 [12:10:26]StoreToDocumentArchive [12:10:26]shift 356 fd 104357 [12:10:26]save to /storage/0356/doc_00104357 [12:10:26]save last doc name /storage/0356/doc_00104357 to /storage/kkm_last_doc_name [12:10:26]save OK [12:10:26]Clear old archive folders... [12:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:26]tlvbuf is B6F009A0 [12:10:26]SAM_PROTO_ClearQueue [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 09 00 00 [12:10:26]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]SAM_PROTO_ClearQueue done [12:10:26]KKMCreateOFDPacket [12:10:26]OFDProtocolAddRootSTLVToBuf [12:10:26]FM_MakeSignedData [12:10:26]FM_MakeSignedData [12:10:26]SAM_PROTO_SignData [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 01 02 [12:10:26]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=255 [12:10:26]MH_SAM_APDU [12:10: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 5A 00 00 00 F4 03 04 00 32 BF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 66 [12:10:26]Write to MH i2c: E2 02 01 39 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 32 BF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 66 00 00 B6 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=10 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 02 02 05 72 2A FA AA 01 [12:10:26]Write to MH i2c: E2 0D 00 3A 0A 80 0D 02 02 05 00 72 2A FA AA 01 00 00 09 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 03 02 [12:10:26]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0B 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0B 00 3B 0A 00 8F 7E D3 45 68 4E FF C8 90 00 63 [12:10:26]RAPDU: 8F 7E D3 45 68 4E FF C8 90 00 [12:10:26]wFMCommunicate OK [12:10:26]SAM_PROTO_SignData done [12:10:26]FM_MakeSignedData done [12:10:26]CreateOFDProtocolMessage [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 11 00 00 [12:10:26]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 17 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [12:10: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:10:26]wFMCommunicate OK [12:10:26]CreateOFDProtocolMessage done [12:10:26]OFDSenderStorePacket 104357 [12:10:26]StoreOFDPacket docnum=104357 [12:10: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 F4 EC 07 01 DE 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 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 5A 00 00 00 F4 03 04 00 32 BF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 66 72 2A FA AA 01 8F 7E D3 45 68 4E FF C8 [12:10:26]CheckFolder [12:10:26]dirname=/storage/ofd_packets [12:10:26]CheckFolder done [12:10:26]ProducePacketName [12:10:26]name=ofd_packets/00104357 [12:10:26]NVStorageSaveData ofd_packets/00104357 [12:10:26]File name is /storage/ofd_packets/00104357 [12:10:26]Write 301 bytes [12:10:26]NVStorageSaveData done [12:10:26]OFDSenderStorePacket done [12:10:26]KKMCreateOFDPacket done [12:10:26]NVStorageSaveData kkm_last_timestamp [12:10:26]File name is /storage/kkm_last_timestamp [12:10:26]Write 4 bytes [12:10:26]NVStorageSaveData done [12:10:26]ExternCall_PrintAddStr [12:10:26]wPrintStart [12:10:26]Write to MH i2c: 01 00 00 3D 0A 47 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [12:10:26]RasterBufferAndPrint [12:10:26]line Счет N : (1)673888 [12:10:26]line ИНН: 02508201610067 [12:10:26]line Контрольно-Кассовый Чек [12:10:26]line ПРОДАЖА [12:10:26]line ТРК (МРК, ГНК) : 32 [12:10:26]line Товар: 2710124130 [12:10:26]line Аи-92-К-5 [12:10:26]line 10.550 * 66.40 [12:10:26]line = 700.52 [12:10:26]line НДС 12% НСП 1% [12:10:26]line > о реализуемом товаре [12:10:26]line ОКРУГЛЕНИЕ: -0.52 [12:10:26]line ИТОГО: 700.00 [12:10:26]line Внесено: 700.00 [12:10:26]line СДАЧА: 0.00 [12:10:26]line НСП 1% : 6.20 [12:10:26]line НДС 12% : 74.39 [12:10:26]line Наличными: 700.00 [12:10:26]line Безнал.: 0.00 [12:10:26]line Место: АЗС № 120 "Партнер Нефть" [12:10:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:10:26]line СНО: Общий режим [12:10:26]line Чек 90 22.06.2024 12:10 [12:10:26]line Смена: 356 ФФД: 1.0 [12:10:26]line ЗНМ: 0300000164 [12:10:26]line РНМ: 0000000000092785 [12:10:26]line Версия ККМ: 001 [12:10:26]line ФМ: 0000000000875093 [12:10:26]line ФД: 104357 [12:10:27]line ФПД: 112640533375489 [12:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121026&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104357&fm=112640533375489&tin=02508201610067®Number=0000000000092785&sum=70000 [12:10:27]OFD Sender: Processing packet 104357 [packets to send 17, broken 16] [12:10:27]ProducePacketName [12:10:27]name=ofd_packets/00104357 [12:10:27]OFD Sender: To server: pG, [12:10:27]CommunicateWithHost lk.salyk.kg:30040 [12:10:27]ConnectInit lk.salyk.kg [12:10:27]written 0, free lines is 4095 [12:10:27]Connected sock=10 [12:10: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 F4 EC 07 01 DE 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 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 5A 00 00 00 F4 03 04 00 32 BF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 66 72 2A FA AA 01 8F 7E D3 45 68 4E FF C8 [12:10:27]Write to MH i2c: 01 00 00 68 0A 72 [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10: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 DE CF 47 00 3C DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 97 01 00 F4 03 04 00 B1 65 76 66 B6 04 01 00 00 14 58 23 DC 6C 0B 5A 97 [12:10:27]CommunicateWithHost err = 0 [12:10:27]CheckOFDResponse [12:10:27]1017 (14) - 77093643461234 [12:10:27]1041 (16) - 0000000000875093 [12:10:27]1040 (4) - 104357 [12:10:27]1012 (4) - 22.06.2024 05:48 [12:10:27]1206 (1) - 0 [12:10:27]OFD Sender: Remove packet 104357 [12:10:27]ProducePacketName [12:10:27]name=ofd_packets/00104357 [12:10:27]NVStorageDeleteData [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 CD 0C 52 [12:10:27]RasterBufferAndPrint [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]written 0, free lines is 3294 [12:10:27]MH_Cut [12:10:27]Write to MH i2c: D1 01 00 6F 0A 01 4B [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 01 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 01 00 6F 0A 00 4A [12:10:27]Write to MH i2c: 01 00 00 70 0A 7A [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]OFD Sender: No OFD packet to send [12:10:28]*** Cut start [12:10:28]*** Partial cut [12:10:28]*** CUTSNS_PIN = 1 [12:10:28]*** CUTSNS_PIN = 0 [12:10:28]*** Brake cut motor [12:10:28]Read from MH i2c: 01 [12:10:28]MH_I2C_Read... [12:10:28]*** Stop cut motor [12:10:28]*** Cut end [12:10:28]Read from MH i2c: 01 07 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 FF 0F 8F [12:10:28]process_action close_receipt done [12:10:28]requested_data is exist [12:10:28]produce_requested_data [12:10:28]requested_item fm.sn is exist - process it [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 11 00 00 [12:10:28]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 17 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 17 00 71 0A 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:10: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:10:28]wFMCommunicate OK [12:10:28]requested_item fd.num is exist - process it [12:10:28]SAM_PROTO_GetFieldsCounters [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 13 00 00 [12:10:28]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 62 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 62 00 72 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_GetFieldsCounters done [12:10:29]requested_item shift.num is exist - process it [12:10:29]requested_item shift.opened is exist - process it [12:10:29]req_shift_opened [12:10:29]FM_GetShiftState [12:10:29]SAM_PROTO_GetShiftState [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 13 01 00 [12:10:29]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 EC [12:10:29]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_GetShiftState done [12:10:29]FM_GetShiftState done [12:10:29]req_shift_opened done [12:10:29]requested_item shift.open_date is exist - process it [12:10:29]req_shift_open_date [12:10:29]req_shift_open_date done [12:10:29]produce_requested_data done [12:10:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:10:29]process_action_free close_receipt [12:10:29]json_value_free [12:10:29]json_value_free done [12:10:29]process_json_proto returns [12:10:29]Send response to host [12:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:10:29]free response buf [12:10:29]execute_script done [12:10:29]execute_script returns [12:10:29]free content buf [12:10:29]Sock 7.Close socket [12:10:29]Sock 7.Thread stoped [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:01]accept exits with 9 [12:12:01]New connection [12:12:01]New thread 3066449252 created [12:12:01]Thread 3066592612 joined [12:12:01]Waiting for new connection... [12:12:01] Sock 9.Parse request [12:12:01]Sock 9.Check first char [12:12:01]Sock 9.First char is OK [12:12:01]request: POST /json_proto HTTP/1.0 [12:12:01]Method: POST [12:12:01]URL: /json_proto [12:12:01]Method is POST - this is cgi request [12:12:01]url: /json_proto [12:12:01]query_string will be loaded in cgi processing [12:12:01]execute_cgi json_proto POST (null) [12:12:01]execute_cgi path=json_proto method=POST [12:12:01]POST find Content-Length [12:12:01]Host: 172.17.38.133:8080 [12:12:01]Content-Length: 1176 [12:12:01]Content-Type: application/json [12:12:01] [12:12:01]POST finish read [12:12:01]Found Content-Length = 1176 [12:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673885\u000A22.06.2024 11:49\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 165.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 12028.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101747\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:01]execute_script... [12:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673885\u000A22.06.2024 11:49\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 165.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 12028.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101747\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:01]POST & json_proto [12:12:01]process_json_proto [12:12:01]json parsed OK: [12:12:01]protocol is kg_v1.0 [12:12:01]action value=print_text [12:12:01]process_action print_text [12:12:01]cmd_print_text [12:12:01]ExternCall_PrintAddStr [12:12:01]wPrintStart [12:12:01]Write to MH i2c: 01 00 00 74 0A 7E [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 07 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 FF 0F 93 [12:12:01]RasterBufferAndPrint [12:12:01]line *****ТОВАРНЫЙ ЧЕК***** [12:12:01]line АЗС 120 [12:12:01]line Партнер нефть [12:12:01]line 02508201610067 [12:12:01]line Кассир : Байбугуева Г. [12:12:01]line Счет N : (1)673885 [12:12:01]line 22.06.2024 11:49 [12:12:01]line ПРОДАЖА [12:12:01]line ТРК (МРК, ГНК): 21 [12:12:01]line Вид ГСМ : 2710194210 [12:12:01]line ДТ(л)-К-5 [12:12:01]line 165.000 x 72.90 [12:12:01]line ИТОГ: 12028.50 [12:12:01]line Тип оплаты: Талоны: ТК ГПНА Online [12:12:01]line 30101747 [12:12:01]line ______________________ [12:12:01]line (подпись) [12:12:01]written 0, free lines is 4095 [12:12:01]Write to MH i2c: 01 00 00 88 0A 92 [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 07 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 11 0E B8 [12:12:01]RasterBufferAndPrint [12:12:01]line [12:12:01]line [12:12:01]line [12:12:01]line [12:12:01]line [12:12:01]written 0, free lines is 3602 [12:12:01]MH_Cut [12:12:01]Write to MH i2c: D1 01 00 8F 0A 01 6B [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: D1 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: D1 01 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: D1 01 00 8F 0A 00 6A [12:12:01]Write to MH i2c: 01 00 00 90 0A 9A [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:02]*** Cut start [12:12:02]*** Partial cut [12:12:02]*** CUTSNS_PIN = 1 [12:12:02]*** CUTSNS_PIN = 0 [12:12:02]*** Brake cut motor [12:12:02]Read from MH i2c: 01 [12:12:02]MH_I2C_Read... [12:12:02]*** Stop cut motor [12:12:02]*** Cut end [12:12:02]Read from MH i2c: 01 07 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 90 0A 00 00 00 00 00 FF 0F AF [12:12:02]process_action print_text done [12:12:02]requested_data is exist [12:12:02]produce_requested_data [12:12:02]requested_item fm.sn is exist - process it [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 11 00 00 [12:12:02]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 91 0A 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:12: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:12:02]wFMCommunicate OK [12:12:02]requested_item fd.num is exist - process it [12:12:02]SAM_PROTO_GetFieldsCounters [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 13 00 00 [12:12:02]Write to MH i2c: E2 08 00 92 0A 80 13 00 00 00 00 00 00 18 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:03]OFD Sender: No OFD packet to send [12:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:03]Read from MH i2c: E2 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 62 00 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 62 00 92 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EF [12:12: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 A5 97 01 00 0E 04 04 00 64 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:12:03]wFMCommunicate OK [12:12:03]SAM_PROTO_GetFieldsCounters done [12:12:03]requested_item shift.num is exist - process it [12:12:03]requested_item shift.opened is exist - process it [12:12:03]req_shift_opened [12:12:03]FM_GetShiftState [12:12:03]SAM_PROTO_GetShiftState [12:12:03]wFMCommunicate request_size=4 [12:12:03]MH_SAM_APDU [12:12:03]CAPDU: 80 13 01 00 [12:12:03]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [12:12:03]Write i2c OK [12:12:03]MH_I2C_Read... [12:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:03]Read from MH i2c: E2 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 0E 00 [12:12:03]MH_I2C_Read... [12:12:03]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 0C [12:12:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:12:03]wFMCommunicate OK [12:12:03]SAM_PROTO_GetShiftState done [12:12:03]FM_GetShiftState done [12:12:03]req_shift_opened done [12:12:03]requested_item shift.open_date is exist - process it [12:12:03]req_shift_open_date [12:12:03]req_shift_open_date done [12:12:03]produce_requested_data done [12:12:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:12:03]process_action_free print_text [12:12:03]json_value_free [12:12:03]json_value_free done [12:12:03]process_json_proto returns [12:12:03]Send response to host [12:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:12:03]free response buf [12:12:03]execute_script done [12:12:03]execute_script returns [12:12:03]free content buf [12:12:03]Sock 9.Close socket [12:12:03]Sock 9.Thread stoped [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:00]accept exits with 7 [12:15:00]New connection [12:15:00]New thread 3066592612 created [12:15:00]Thread 3066449252 joined [12:15:00]Waiting for new connection... [12:15:00] Sock 7.Parse request [12:15:00]Sock 7.Check first char [12:15:00]Sock 7.First char is OK [12:15:00]request: POST /json_proto HTTP/1.0 [12:15:00]Method: POST [12:15:00]URL: /json_proto [12:15:00]Method is POST - this is cgi request [12:15:00]url: /json_proto [12:15:00]query_string will be loaded in cgi processing [12:15:00]execute_cgi json_proto POST (null) [12:15:00]execute_cgi path=json_proto method=POST [12:15:00]POST find Content-Length [12:15:00]Host: 172.17.38.133:8080 [12:15:00]Content-Length: 1203 [12:15:00]Content-Type: application/json [12:15:00] [12:15:00]POST finish read [12:15:00]Found Content-Length = 1203 [12:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673889\u000A22.06.2024 11:52\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103618/17/16\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:00]execute_script... [12:15: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673889\u000A22.06.2024 11:52\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 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103618/17/16\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:00]POST & json_proto [12:15:00]process_json_proto [12:15:00]json parsed OK: [12:15:00]protocol is kg_v1.0 [12:15:00]action value=print_text [12:15:00]process_action print_text [12:15:00]cmd_print_text [12:15:00]ExternCall_PrintAddStr [12:15:00]wPrintStart [12:15:00]Write to MH i2c: 01 00 00 94 0A 9E [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 FF 0F B3 [12:15:00]RasterBufferAndPrint [12:15:00]line *****ТОВАРНЫЙ ЧЕК***** [12:15:00]line АЗС 120 [12:15:00]line Партнер нефть [12:15:00]line 02508201610067 [12:15:00]line Кассир : Байбугуева Г. [12:15:00]line Счет N : (1)673889 [12:15:00]line 22.06.2024 11:52 [12:15:00]line ПРОДАЖА [12:15:00]line ТРК (МРК, ГНК): 32 [12:15:00]line Вид ГСМ : 2710124130 [12:15:00]line Аи-92-К-5 [12:15:00]line 30.000 x 66.40 [12:15:00]line ИТОГ: 1992.00 [12:15:00]line Тип оплаты: Талоны: Партнер нефть [12:15:00]line 4103618/17/16 [12:15:00]line ______________________ [12:15:00]line (подпись) [12:15:00]written 0, free lines is 4095 [12:15:00]Write to MH i2c: 01 00 00 A8 0A B2 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 16 0E DD [12:15:00]RasterBufferAndPrint [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]written 0, free lines is 3608 [12:15:00]MH_Cut [12:15:00]Write to MH i2c: D1 01 00 AF 0A 01 8B [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 AF 0A 00 8A [12:15:00]Write to MH i2c: 01 00 00 B0 0A BA [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:01]*** Cut start [12:15:01]*** Partial cut [12:15:01]*** CUTSNS_PIN = 1 [12:15:01]*** CUTSNS_PIN = 0 [12:15:01]*** Brake cut motor [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]*** Stop cut motor [12:15:01]*** Cut end [12:15:01]Read from MH i2c: 01 07 00 B0 0A 00 00 00 00 00 FF 0F CF [12:15:01]process_action print_text done [12:15:01]requested_data is exist [12:15:01]produce_requested_data [12:15:01]requested_item fm.sn is exist - process it [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 11 00 00 [12:15:01]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [12: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 [12:15:01]wFMCommunicate OK [12:15:01]requested_item fd.num is exist - process it [12:15:01]SAM_PROTO_GetFieldsCounters [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 13 00 00 [12:15:01]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 B2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0F [12:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetFieldsCounters done [12:15:02]requested_item shift.num is exist - process it [12:15:02]requested_item shift.opened is exist - process it [12:15:02]req_shift_opened [12:15:02]FM_GetShiftState [12:15:02]SAM_PROTO_GetShiftState [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 13 01 00 [12:15:02]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2C [12:15:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetShiftState done [12:15:02]FM_GetShiftState done [12:15:02]req_shift_opened done [12:15:02]requested_item shift.open_date is exist - process it [12:15:02]req_shift_open_date [12:15:02]req_shift_open_date done [12:15:02]produce_requested_data done [12:15:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:15:02]process_action_free print_text [12:15:02]json_value_free [12:15:02]json_value_free done [12:15:02]process_json_proto returns [12:15:02]Send response to host [12:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:15:02]free response buf [12:15:02]execute_script done [12:15:02]execute_script returns [12:15:02]free content buf [12:15:02]Sock 7.Close socket [12:15:02]Sock 7.Thread stoped [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:08]accept exits with 9 [12:17:08]New connection [12:17:08]New thread 3066449252 created [12:17:08]Thread 3066592612 joined [12:17:08]Waiting for new connection... [12:17:08] Sock 9.Parse request [12:17:08]Sock 9.Check first char [12:17:08]Sock 9.First char is OK [12:17:08]request: POST /json_proto HTTP/1.0 [12:17:08]Method: POST [12:17:08]URL: /json_proto [12:17:08]Method is POST - this is cgi request [12:17:08]url: /json_proto [12:17:08]query_string will be loaded in cgi processing [12:17:08]execute_cgi json_proto POST (null) [12:17:08]execute_cgi path=json_proto method=POST [12:17:08]POST find Content-Length [12:17:08]Host: 172.17.38.133:8080 [12:17:08]Content-Length: 1169 [12:17:08]Content-Type: application/json [12:17:08] [12:17:08]POST finish read [12:17:08]Found Content-Length = 1169 [12:17: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673890\u000A22.06.2024 11:54\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" ] } } [12:17:08]execute_script... [12:17: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673890\u000A22.06.2024 11:54\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" ] } } [12:17:08]POST & json_proto [12:17:08]process_json_proto [12:17:08]json parsed OK: [12:17:08]protocol is kg_v1.0 [12:17:08]action value=print_text [12:17:08]process_action print_text [12:17:08]cmd_print_text [12:17:08]ExternCall_PrintAddStr [12:17:08]wPrintStart [12:17:08]Write to MH i2c: 01 00 00 B4 0A BE [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [12:17:08]RasterBufferAndPrint [12:17:08]line *****ТОВАРНЫЙ ЧЕК***** [12:17:08]line АЗС 120 [12:17:08]line Партнер нефть [12:17:08]line 02508201610067 [12:17:08]line Кассир : Байбугуева Г. [12:17:08]line Счет N : (1)673890 [12:17:08]line 22.06.2024 11:54 [12:17:08]line ПРОДАЖА [12:17:08]line ТРК (МРК, ГНК): 42 [12:17:08]line Вид ГСМ : 2710124130 [12:17:08]line Аи-92-К-5 [12:17:08]line 30.000 x 66.40 [12:17:08]line ИТОГ: 1992.00 [12:17:08]line Тип оплаты: Талоны: ТК ГПНА Online [12:17:08]line 30021788 [12:17:08]line ______________________ [12:17:08]line (подпись) [12:17:08]written 0, free lines is 4095 [12:17:09]Write to MH i2c: 01 00 00 C8 0A D2 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 12 0E F9 [12:17:09]RasterBufferAndPrint [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]written 0, free lines is 3603 [12:17:09]MH_Cut [12:17:09]Write to MH i2c: D1 01 00 CF 0A 01 AB [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 01 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 01 00 CF 0A 00 AA [12:17:09]Write to MH i2c: 01 00 00 D0 0A DA [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** Cut start [12:17:09]*** Partial cut [12:17:09]*** CUTSNS_PIN = 1 [12:17:09]*** CUTSNS_PIN = 0 [12:17:09]*** Brake cut motor [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]*** Stop cut motor [12:17:10]*** Cut end [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 D0 0A 00 00 00 00 00 FF 0F EF [12:17:10]process_action print_text done [12:17:10]requested_data is exist [12:17:10]produce_requested_data [12:17:10]requested_item fm.sn is exist - process it [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 11 00 00 [12:17:10]Write to MH i2c: E2 08 00 D1 0A 80 11 00 00 00 00 00 00 55 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 D1 0A 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:17: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:17:10]wFMCommunicate OK [12:17:10]requested_item fd.num is exist - process it [12:17:10]SAM_PROTO_GetFieldsCounters [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 13 00 00 [12:17:10]Write to MH i2c: E2 08 00 D2 0A 80 13 00 00 00 00 00 00 58 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 62 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 62 00 D2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2F [12:17: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 A5 97 01 00 0E 04 04 00 64 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:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_GetFieldsCounters done [12:17:10]requested_item shift.num is exist - process it [12:17:10]requested_item shift.opened is exist - process it [12:17:10]req_shift_opened [12:17:10]FM_GetShiftState [12:17:10]SAM_PROTO_GetShiftState [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 13 01 00 [12:17:10]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0E 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4C [12:17:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_GetShiftState done [12:17:10]FM_GetShiftState done [12:17:10]req_shift_opened done [12:17:10]requested_item shift.open_date is exist - process it [12:17:10]req_shift_open_date [12:17:10]req_shift_open_date done [12:17:10]produce_requested_data done [12:17:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:17:10]process_action_free print_text [12:17:10]json_value_free [12:17:10]json_value_free done [12:17:10]process_json_proto returns [12:17:10]Send response to host [12:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104357,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:17:10]free response buf [12:17:10]execute_script done [12:17:10]execute_script returns [12:17:10]free content buf [12:17:10]Sock 9.Close socket [12:17:10]Sock 9.Thread stoped [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:10]accept exits with 7 [12:20:10]New connection [12:20:10]New thread 3066592612 created [12:20:10]Thread 3066449252 joined [12:20:10]Waiting for new connection... [12:20:10] Sock 7.Parse request [12:20:10]Sock 7.Check first char [12:20:10]Sock 7.First char is OK [12:20:10]request: POST /json_proto HTTP/1.0 [12:20:10]Method: POST [12:20:10]URL: /json_proto [12:20:10]Method is POST - this is cgi request [12:20:10]url: /json_proto [12:20:10]query_string will be loaded in cgi processing [12:20:10]execute_cgi json_proto POST (null) [12:20:10]execute_cgi path=json_proto method=POST [12:20:10]POST find Content-Length [12:20:10]Host: 172.17.38.133:8080 [12:20:10]Content-Length: 687 [12:20:10]Content-Type: application/json [12:20:10] [12:20:10]POST finish read [12:20:10]Found Content-Length = 687 [12:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673893", "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" ] } } [12:20:10]execute_script... [12:20: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)673893", "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" ] } } [12:20:10]POST & json_proto [12:20:10]process_json_proto [12:20:10]json parsed OK: [12:20:10]protocol is kg_v1.0 [12:20:10]action value=close_receipt [12:20:10]process_action close_receipt [12:20:10]cmd_close_receipt [12:20:10]MH_GetDate [12:20:10]Write to MH i2c: F0 00 00 D4 0A CD [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 09 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: F0 09 00 D4 0A 00 7B C1 76 66 BD 8F 7C 64 1A [12:20:10]GetLastDocTimeStamp 1719058226 [12:20:10]current date 1719058811 [12:20:10]FM_GetShiftState [12:20:10]SAM_PROTO_GetShiftState [12:20:10]wFMCommunicate request_size=4 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 13 01 00 [12:20:10]Write to MH i2c: E2 08 00 D5 0A 80 13 01 00 00 00 00 00 5C [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0E 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0E 00 D5 0A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4E [12:20:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:20:10]wFMCommunicate OK [12:20:10]SAM_PROTO_GetShiftState done [12:20:10]FM_GetShiftState done [12:20:10]opened in 1719016176 [12:20:10]opened+sec_in_day 1719102576 [12:20:10]quantity*price = 100018 [12:20:10]sum+1 = 100020 [12:20:10]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 СНО: Общий режим Чек 91 22.06.2024 12:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104358 ФПД: 117909360765758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104358&fm=117909360765758&tin=02508201610067®Number=0000000000092785&sum=100000 [12:20:11]StoreToDocumentArchive [12:20:11]shift 356 fd 104358 [12:20:11]save to /storage/0356/doc_00104358 [12:20:11]save last doc name /storage/0356/doc_00104358 to /storage/kkm_last_doc_name [12:20:11]save OK [12:20:11]Clear old archive folders... [12:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:20:11]tlvbuf is 00FC8560 [12:20:11]SAM_PROTO_ClearQueue [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 09 00 00 [12:20:11]Write to MH i2c: E2 08 00 E2 0A 80 09 00 00 00 00 00 00 5E [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_ClearQueue done [12:20:11]KKMCreateOFDPacket [12:20:11]OFDProtocolAddRootSTLVToBuf [12:20:11]FM_MakeSignedData [12:20:11]FM_MakeSignedData [12:20:11]SAM_PROTO_SignData [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 01 02 [12:20:11]Write to MH i2c: E2 08 00 E3 0A 80 0D 01 02 00 00 00 00 66 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=255 [12:20:11]MH_SAM_APDU [12:20: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 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 5B 00 00 00 F4 03 04 00 7B C1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [12:20:11]Write to MH i2c: E2 02 01 E4 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 5B 00 00 00 F4 03 04 00 7B C1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D0 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=11 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 02 02 06 6B 3C E9 90 6B 3E [12:20:11]Write to MH i2c: E2 0E 00 E5 0A 80 0D 02 02 06 00 6B 3C E9 90 6B 3E 00 00 3E [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 03 02 [12:20:11]Write to MH i2c: E2 08 00 E6 0A 80 0D 03 02 00 00 00 00 6B [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0B 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0B 00 E6 0A 00 D5 42 BD 93 65 A3 7A 03 90 00 58 [12:20:11]RAPDU: D5 42 BD 93 65 A3 7A 03 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_SignData done [12:20:11]FM_MakeSignedData done [12:20:11]CreateOFDProtocolMessage [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 11 00 00 [12:20:11]Write to MH i2c: E2 08 00 E7 0A 80 11 00 00 00 00 00 00 6B [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 E7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [12: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 [12:20:11]wFMCommunicate OK [12:20:11]CreateOFDProtocolMessage done [12:20:11]OFDSenderStorePacket 104358 [12:20:11]StoreOFDPacket docnum=104358 [12: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 10 01 00 00 26 9C 08 01 E8 DA 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 5B 00 00 00 F4 03 04 00 7B C1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6B 3C E9 90 6B 3E D5 42 BD 93 65 A3 7A 03 [12:20:11]CheckFolder [12:20:11]dirname=/storage/ofd_packets [12:20:11]CheckFolder done [12:20:11]ProducePacketName [12:20:11]name=ofd_packets/00104358 [12:20:11]NVStorageSaveData ofd_packets/00104358 [12:20:11]File name is /storage/ofd_packets/00104358 [12:20:11]Write 302 bytes [12:20:11]NVStorageSaveData done [12:20:11]OFDSenderStorePacket done [12:20:11]KKMCreateOFDPacket done [12:20:11]NVStorageSaveData kkm_last_timestamp [12:20:11]File name is /storage/kkm_last_timestamp [12:20:11]Write 4 bytes [12:20:11]NVStorageSaveData done [12:20:11]ExternCall_PrintAddStr [12:20:11]wPrintStart [12:20:11]Write to MH i2c: 01 00 00 E8 0A F2 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [12:20:11]RasterBufferAndPrint [12:20:11]line Счет N : (1)673893 [12:20:11]line ИНН: 02508201610067 [12:20:11]line Контрольно-Кассовый Чек [12:20:11]line ПРОДАЖА [12:20:11]line ТРК (МРК, ГНК) : 11 [12:20:11]line Товар: 2710194210 [12:20:11]line ДТ(л)-К-5 [12:20:11]line 13.720 * 72.90 [12:20:11]line = 1000.19 [12:20:11]line НДС 12% НСП 1% [12:20:11]line > о реализуемом товаре [12:20:11]line ОКРУГЛЕНИЕ: -0.19 [12:20:11]line ИТОГО: 1000.00 [12:20:11]line Внесено: 1000.00 [12:20:11]line СДАЧА: 0.00 [12:20:11]line НСП 1% : 8.85 [12:20:11]line НДС 12% : 106.21 [12:20:11]line Наличными: 1000.00 [12:20:11]line Безнал.: 0.00 [12:20:11]line Место: АЗС № 120 "Партнер Нефть" [12:20:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:20:11]line СНО: Общий режим [12:20:11]line Чек 91 22.06.2024 12:20 [12:20:11]line Смена: 356 ФФД: 1.0 [12:20:11]line ЗНМ: 0300000164 [12:20:11]line РНМ: 0000000000092785 [12:20:11]line Версия ККМ: 001 [12:20:11]line ФМ: 0000000000875093 [12:20:11]line ФД: 104358 [12:20:12]line ФПД: 117909360765758 [12:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104358&fm=117909360765758&tin=02508201610067®Number=0000000000092785&sum=100000 [12:20:12]OFD Sender: Processing packet 104358 [packets to send 17, broken 16] [12:20:12]ProducePacketName [12:20:12]name=ofd_packets/00104358 [12:20:12]OFD Sender: To server: pG, [12:20:12]CommunicateWithHost lk.salyk.kg:30040 [12:20:12]ConnectInit lk.salyk.kg [12:20:12]written 0, free lines is 4095 [12:20:12]Connected sock=10 [12: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 10 01 00 00 26 9C 08 01 E8 DA 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 5B 00 00 00 F4 03 04 00 7B C1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 6B 3C E9 90 6B 3E D5 42 BD 93 65 A3 7A 03 [12: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 FA 6A 47 00 28 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 97 01 00 F4 03 04 00 FA 67 76 66 B6 04 01 00 00 D5 55 CA 8E 45 FA A8 17 [12:20:12]CommunicateWithHost err = 0 [12:20:12]CheckOFDResponse [12:20:12]1017 (14) - 77093643461234 [12:20:12]1041 (16) - 0000000000875093 [12:20:12]1040 (4) - 104358 [12:20:12]1012 (4) - 22.06.2024 05:58 [12:20:12]1206 (1) - 0 [12:20:12]OFD Sender: Remove packet 104358 [12:20:12]ProducePacketName [12:20:12]name=ofd_packets/00104358 [12:20:12]NVStorageDeleteData [12:20:12]Write to MH i2c: 01 00 00 13 0B 1E [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 07 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 D0 0C 01 [12:20:12]RasterBufferAndPrint [12:20:12]line [12:20:12]line [12:20:12]line [12:20:12]line [12:20:12]line [12:20:12]written 0, free lines is 3287 [12:20:12]MH_Cut [12:20:12]Write to MH i2c: D1 01 00 1A 0B 01 F7 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: D1 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: D1 01 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: D1 01 00 1A 0B 00 F6 [12:20:12]Write to MH i2c: 01 00 00 1B 0B 26 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:13]OFD Sender: No OFD packet to send [12:20:13]*** Cut start [12:20:13]*** Partial cut [12:20:13]*** CUTSNS_PIN = 1 [12:20:13]*** CUTSNS_PIN = 0 [12:20:13]*** Brake cut motor [12:20:14]Read from MH i2c: 01 [12:20:14]MH_I2C_Read... [12:20:14]*** Stop cut motor [12:20:14]*** Cut end [12:20:14]Read from MH i2c: 01 07 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [12:20:14]process_action close_receipt done [12:20:14]requested_data is exist [12:20:14]produce_requested_data [12:20:14]requested_item fm.sn is exist - process it [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 11 00 00 [12:20:14]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 17 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [12:20:14]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:14]wFMCommunicate OK [12:20:14]requested_item fd.num is exist - process it [12:20:14]SAM_PROTO_GetFieldsCounters [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 13 00 00 [12:20:14]Write to MH i2c: E2 08 00 1D 0B 80 13 00 00 00 00 00 00 A4 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 62 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 62 00 1D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7F [12:20: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 A6 97 01 00 0E 04 04 00 64 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:20:14]wFMCommunicate OK [12:20:14]SAM_PROTO_GetFieldsCounters done [12:20:14]requested_item shift.num is exist - process it [12:20:14]requested_item shift.opened is exist - process it [12:20:14]req_shift_opened [12:20:14]FM_GetShiftState [12:20:14]SAM_PROTO_GetShiftState [12:20:14]wFMCommunicate request_size=4 [12:20:14]MH_SAM_APDU [12:20:14]CAPDU: 80 13 01 00 [12:20:14]Write to MH i2c: E2 08 00 1E 0B 80 13 01 00 00 00 00 00 A6 [12:20:14]Write i2c OK [12:20:14]MH_I2C_Read... [12:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:14]Read from MH i2c: E2 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 0E 00 [12:20:14]MH_I2C_Read... [12:20:14]Read from MH i2c: E2 0E 00 1E 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 98 [12:20:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:20:14]wFMCommunicate OK [12:20:14]SAM_PROTO_GetShiftState done [12:20:14]FM_GetShiftState done [12:20:14]req_shift_opened done [12:20:14]requested_item shift.open_date is exist - process it [12:20:14]req_shift_open_date [12:20:14]req_shift_open_date done [12:20:14]produce_requested_data done [12:20:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104358,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:20:14]process_action_free close_receipt [12:20:14]json_value_free [12:20:14]json_value_free done [12:20:14]process_json_proto returns [12:20:14]Send response to host [12:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104358,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:20:14]free response buf [12:20:14]execute_script done [12:20:14]execute_script returns [12:20:14]free content buf [12:20:14]Sock 7.Close socket [12:20:14]Sock 7.Thread stoped [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:49]accept exits with 9 [12:23:49]New connection [12:23:49]New thread 3066449252 created [12:23:49]Thread 3066592612 joined [12:23:49]Waiting for new connection... [12:23:49] Sock 9.Parse request [12:23:49]Sock 9.Check first char [12:23:49]Sock 9.First char is OK [12:23:49]request: POST /json_proto HTTP/1.0 [12:23:49]Method: POST [12:23:49]URL: /json_proto [12:23:49]Method is POST - this is cgi request [12:23:49]url: /json_proto [12:23:49]query_string will be loaded in cgi processing [12:23:49]execute_cgi json_proto POST (null) [12:23:49]execute_cgi path=json_proto method=POST [12:23:49]POST find Content-Length [12:23:49]Host: 172.17.38.133:8080 [12:23:49]Content-Length: 1170 [12:23:49]Content-Type: application/json [12:23:49] [12:23:49]POST finish read [12:23:49]Found Content-Length = 1170 [12:23:49]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673891\u000A22.06.2024 12:00\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 148.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 9827.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:49]execute_script... [12:23:49]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673891\u000A22.06.2024 12:00\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 148.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 9827.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:49]POST & json_proto [12:23:49]process_json_proto [12:23:49]json parsed OK: [12:23:49]protocol is kg_v1.0 [12:23:49]action value=print_text [12:23:49]process_action print_text [12:23:49]cmd_print_text [12:23:49]ExternCall_PrintAddStr [12:23:49]wPrintStart [12:23:49]Write to MH i2c: 01 00 00 1F 0B 2A [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [12:23:49]RasterBufferAndPrint [12:23:49]line *****ТОВАРНЫЙ ЧЕК***** [12:23:49]line АЗС 120 [12:23:49]line Партнер нефть [12:23:49]line 02508201610067 [12:23:49]line Кассир : Байбугуева Г. [12:23:49]line Счет N : (1)673891 [12:23:49]line 22.06.2024 12:00 [12:23:49]line ПРОДАЖА [12:23:49]line ТРК (МРК, ГНК): 32 [12:23:49]line Вид ГСМ : 2710124130 [12:23:49]line Аи-92-К-5 [12:23:49]line 148.000 x 66.40 [12:23:49]line ИТОГ: 9827.20 [12:23:49]line Тип оплаты: Талоны: ТК ГПНА Online [12:23:49]line 30101606 [12:23:49]line ______________________ [12:23:49]line (подпись) [12:23:49]written 0, free lines is 4095 [12:23:49]Write to MH i2c: 01 00 00 33 0B 3E [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 11 0E 64 [12:23:49]RasterBufferAndPrint [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]written 0, free lines is 3603 [12:23:49]MH_Cut [12:23:49]Write to MH i2c: D1 01 00 3A 0B 01 17 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 01 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 01 00 3A 0B 00 16 [12:23:49]Write to MH i2c: 01 00 00 3B 0B 46 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:50]*** Cut start [12:23:50]*** Partial cut [12:23:50]*** CUTSNS_PIN = 1 [12:23:50]*** CUTSNS_PIN = 0 [12:23:50]*** Brake cut motor [12:23:50]Read from MH i2c: 01 [12:23:50]MH_I2C_Read... [12:23:50]*** Stop cut motor [12:23:50]*** Cut end [12:23:50]Read from MH i2c: 01 07 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [12:23:50]process_action print_text done [12:23:50]requested_data is exist [12:23:50]produce_requested_data [12:23:50]requested_item fm.sn is exist - process it [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 11 00 00 [12:23:50]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 17 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [12:23: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:23:51]wFMCommunicate OK [12:23:51]requested_item fd.num is exist - process it [12:23:51]SAM_PROTO_GetFieldsCounters [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 13 00 00 [12:23:51]Write to MH i2c: E2 08 00 3D 0B 80 13 00 00 00 00 00 00 C4 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 62 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 62 00 3D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 9F [12:23: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 A6 97 01 00 0E 04 04 00 64 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:23:51]wFMCommunicate OK [12:23:51]SAM_PROTO_GetFieldsCounters done [12:23:51]requested_item shift.num is exist - process it [12:23:51]requested_item shift.opened is exist - process it [12:23:51]req_shift_opened [12:23:51]FM_GetShiftState [12:23:51]SAM_PROTO_GetShiftState [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 13 01 00 [12:23:51]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B8 [12:23:51]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:23:51]wFMCommunicate OK [12:23:51]SAM_PROTO_GetShiftState done [12:23:51]FM_GetShiftState done [12:23:51]req_shift_opened done [12:23:51]requested_item shift.open_date is exist - process it [12:23:51]req_shift_open_date [12:23:51]req_shift_open_date done [12:23:51]produce_requested_data done [12:23:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104358,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:23:51]process_action_free print_text [12:23:51]json_value_free [12:23:51]json_value_free done [12:23:51]process_json_proto returns [12:23:51]Send response to host [12:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104358,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:23:51]free response buf [12:23:51]execute_script done [12:23:51]execute_script returns [12:23:51]free content buf [12:23:51]Sock 9.Close socket [12:23:51]Sock 9.Thread stoped [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:04]accept exits with 7 [12:27:04]New connection [12:27:04]New thread 3066592612 created [12:27:04]Thread 3066449252 joined [12:27:04]Waiting for new connection... [12:27:04] Sock 7.Parse request [12:27:04]Sock 7.Check first char [12:27:04]Sock 7.First char is OK [12:27:04]request: POST /json_proto HTTP/1.0 [12:27:04]Method: POST [12:27:04]URL: /json_proto [12:27:04]Method is POST - this is cgi request [12:27:04]url: /json_proto [12:27:04]query_string will be loaded in cgi processing [12:27:04]execute_cgi json_proto POST (null) [12:27:04]execute_cgi path=json_proto method=POST [12:27:04]POST find Content-Length [12:27:04]Host: 172.17.38.133:8080 [12:27:04]Content-Length: 800 [12:27:04]Content-Type: application/json [12:27:04] [12:27:04]POST finish read [12:27:04]Found Content-Length = 800 [12:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673894", "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 }]} ], "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" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:04]execute_script... [12:27: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)673894", "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 }]} ], "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" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:04]POST & json_proto [12:27:04]process_json_proto [12:27:04]json parsed OK: [12:27:04]protocol is kg_v1.0 [12:27:04]action value=close_receipt [12:27:04]process_action close_receipt [12:27:04]cmd_close_receipt [12:27:04]MH_GetDate [12:27:04]Write to MH i2c: F0 00 00 3F 0B 39 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: F0 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: F0 09 00 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: F0 09 00 3F 0B 00 19 C3 76 66 BD 8F 7C 64 26 [12:27:04]GetLastDocTimeStamp 1719058811 [12:27:04]current date 1719059225 [12:27:04]FM_GetShiftState [12:27:04]SAM_PROTO_GetShiftState [12:27:04]wFMCommunicate request_size=4 [12:27:04]MH_SAM_APDU [12:27:04]CAPDU: 80 13 01 00 [12:27:04]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:04]Read from MH i2c: E2 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: E2 0E 00 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BA [12:27:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:27:04]wFMCommunicate OK [12:27:04]SAM_PROTO_GetShiftState done [12:27:04]FM_GetShiftState done [12:27:04]opened in 1719016176 [12:27:04]opened+sec_in_day 1719102576 [12:27:04]quantity*price = 40039 [12:27:04]sum+1 = 40040 [12:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 92 22.06.2024 12:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104359 ФПД: 9108585810364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104359&fm=9108585810364&tin=02508201610067®Number=0000000000092785&sum=40039 [12:27:05]StoreToDocumentArchive [12:27:05]shift 356 fd 104359 [12:27:05]save to /storage/0356/doc_00104359 [12:27:05]save last doc name /storage/0356/doc_00104359 to /storage/kkm_last_doc_name [12:27:05]save OK [12:27:05]Clear old archive folders... [12:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:05]tlvbuf is 01008CC0 [12:27:05]SAM_PROTO_ClearQueue [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 09 00 00 [12:27:05]Write to MH i2c: E2 08 00 4D 0B 80 09 00 00 00 00 00 00 CA [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [12:27:05]RAPDU: 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_ClearQueue done [12:27:05]KKMCreateOFDPacket [12:27:05]OFDProtocolAddRootSTLVToBuf [12:27:05]FM_MakeSignedData [12:27:05]FM_MakeSignedData [12:27:05]SAM_PROTO_SignData [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 0D 01 02 [12:27:05]Write to MH i2c: E2 08 00 4E 0B 80 0D 01 02 00 00 00 00 D2 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [12:27:05]RAPDU: 90 00 [12:27:05]wFMCommunicate OK [12:27:05]wFMCommunicate request_size=255 [12:27:05]MH_SAM_APDU [12:27: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 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 19 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 08 [12:27:05]Write to MH i2c: E2 02 01 4F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 19 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 08 00 00 68 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [12:27:05]RAPDU: 90 00 [12:27:05]wFMCommunicate OK [12:27:05]wFMCommunicate request_size=10 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 0D 02 02 05 48 C2 05 89 BC [12:27:05]Write to MH i2c: E2 0D 00 50 0B 80 0D 02 02 05 00 48 C2 05 89 BC 00 00 33 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [12:27:05]RAPDU: 90 00 [12:27:05]wFMCommunicate OK [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 0D 03 02 [12:27:05]Write to MH i2c: E2 08 00 51 0B 80 0D 03 02 00 00 00 00 D7 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0B 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0B 00 51 0B 00 72 A8 86 86 56 5C C3 BA 90 00 2D [12:27:05]RAPDU: 72 A8 86 86 56 5C C3 BA 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_SignData done [12:27:05]FM_MakeSignedData done [12:27:05]CreateOFDProtocolMessage [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 11 00 00 [12:27:05]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2A [12:27: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:27:05]wFMCommunicate OK [12:27:05]CreateOFDProtocolMessage done [12:27:05]OFDSenderStorePacket 104359 [12:27:05]StoreOFDPacket docnum=104359 [12:27: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 0D 51 07 01 47 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 19 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 08 48 C2 05 89 BC 72 A8 86 86 56 5C C3 BA [12:27:05]CheckFolder [12:27:05]dirname=/storage/ofd_packets [12:27:05]CheckFolder done [12:27:05]ProducePacketName [12:27:05]name=ofd_packets/00104359 [12:27:05]NVStorageSaveData ofd_packets/00104359 [12:27:05]File name is /storage/ofd_packets/00104359 [12:27:05]Write 301 bytes [12:27:05]NVStorageSaveData done [12:27:05]OFDSenderStorePacket done [12:27:05]KKMCreateOFDPacket done [12:27:05]NVStorageSaveData kkm_last_timestamp [12:27:05]File name is /storage/kkm_last_timestamp [12:27:05]Write 4 bytes [12:27:05]NVStorageSaveData done [12:27:05]ExternCall_PrintAddStr [12:27:05]wPrintStart [12:27:05]Write to MH i2c: 01 00 00 53 0B 5E [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: 01 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: 01 07 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: 01 07 00 53 0B 00 00 00 00 00 FF 0F 73 [12:27:05]RasterBufferAndPrint [12:27:05]line Счет N : (1)673894 [12:27:05]line ИНН: 02508201610067 [12:27:05]line Контрольно-Кассовый Чек [12:27:05]line ПРОДАЖА [12:27:05]line ТРК (МРК, ГНК) : 32 [12:27:05]line Товар: 2710124130 [12:27:05]line Аи-92-К-5 [12:27:05]line 6.030 * 66.40 [12:27:05]line = 400.39 [12:27:05]line НДС 12% НСП 1% [12:27:05]line > о реализуемом товаре [12:27:05]line ИТОГО: 400.39 [12:27:05]line НСП 1% : 3.54 [12:27:05]line НДС 12% : 42.52 [12:27:05]line Наличными: 0.00 [12:27:05]line Безнал.: 400.39 [12:27:05]line Место: АЗС № 120 "Партнер Нефть" [12:27:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:27:05]line СНО: Общий режим [12:27:05]line Чек 92 22.06.2024 12:27 [12:27:05]line Смена: 356 ФФД: 1.0 [12:27:05]line ЗНМ: 0300000164 [12:27:05]line РНМ: 0000000000092785 [12:27:05]line Версия ККМ: 001 [12:27:05]line Платежная система: O! деньги [12:27:05]line ФМ: 0000000000875093 [12:27:05]line ФД: 104359 [12:27:05]line ФПД: 9108585810364 [12:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104359&fm=9108585810364&tin=02508201610067®Number=0000000000092785&sum=40039 [12:27:06]OFD Sender: Processing packet 104359 [packets to send 17, broken 16] [12:27:06]ProducePacketName [12:27:06]name=ofd_packets/00104359 [12:27:06]OFD Sender: To server: pG, [12:27:06]CommunicateWithHost lk.salyk.kg:30040 [12:27:06]ConnectInit lk.salyk.kg [12:27:06]written 0, free lines is 4095 [12:27:06]Connected sock=10 [12:27: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 0D 51 07 01 47 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 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 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 19 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 08 48 C2 05 89 BC 72 A8 86 86 56 5C C3 BA [12:27: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 7A E6 47 00 19 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 A7 97 01 00 F4 03 04 00 98 69 76 66 B6 04 01 00 00 DB 89 34 F1 1C 10 A9 9F [12:27:06]CommunicateWithHost err = 0 [12:27:06]CheckOFDResponse [12:27:06]1017 (14) - 77093643461234 [12:27:06]1041 (16) - 0000000000875093 [12:27:06]1040 (4) - 104359 [12:27:06]1012 (4) - 22.06.2024 06:05 [12:27:06]1206 (1) - 0 [12:27:06]OFD Sender: Remove packet 104359 [12:27:06]ProducePacketName [12:27:06]name=ofd_packets/00104359 [12:27:06]NVStorageDeleteData [12:27:06]Write to MH i2c: 01 00 00 7D 0B 88 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 07 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 E1 0C 7C [12:27:06]RasterBufferAndPrint [12:27:06]line [12:27:06]line [12:27:06]line [12:27:06]line [12:27:06]line [12:27:06]written 0, free lines is 3303 [12:27:06]MH_Cut [12:27:06]Write to MH i2c: D1 01 00 84 0B 01 61 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: D1 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: D1 01 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: D1 01 00 84 0B 00 60 [12:27:06]Write to MH i2c: 01 00 00 85 0B 90 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:07]OFD Sender: No OFD packet to send [12:27:07]*** Cut start [12:27:07]*** Partial cut [12:27:07]*** CUTSNS_PIN = 1 [12:27:07]*** CUTSNS_PIN = 0 [12:27:07]*** Brake cut motor [12:27:07]Read from MH i2c: 01 [12:27:07]MH_I2C_Read... [12:27:07]*** Stop cut motor [12:27:07]*** Cut end [12:27:07]Read from MH i2c: 01 07 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 FF 0F A5 [12:27:07]process_action close_receipt done [12:27:07]requested_data is exist [12:27:07]produce_requested_data [12:27:07]requested_item fm.sn is exist - process it [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 11 00 00 [12:27:07]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:07]Read from MH i2c: E2 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 17 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 17 00 86 0B 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:27: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:27:07]wFMCommunicate OK [12:27:07]requested_item fd.num is exist - process it [12:27:07]SAM_PROTO_GetFieldsCounters [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 13 00 00 [12:27:07]Write to MH i2c: E2 08 00 87 0B 80 13 00 00 00 00 00 00 0E [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 62 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 62 00 87 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 ED [12:27: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 A7 97 01 00 0E 04 04 00 64 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:27:08]wFMCommunicate OK [12:27:08]SAM_PROTO_GetFieldsCounters done [12:27:08]requested_item shift.num is exist - process it [12:27:08]requested_item shift.opened is exist - process it [12:27:08]req_shift_opened [12:27:08]FM_GetShiftState [12:27:08]SAM_PROTO_GetShiftState [12:27:08]wFMCommunicate request_size=4 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 13 01 00 [12:27:08]Write to MH i2c: E2 08 00 88 0B 80 13 01 00 00 00 00 00 10 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0E 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0E 00 88 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 02 [12:27:08]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:27:08]wFMCommunicate OK [12:27:08]SAM_PROTO_GetShiftState done [12:27:08]FM_GetShiftState done [12:27:08]req_shift_opened done [12:27:08]requested_item shift.open_date is exist - process it [12:27:08]req_shift_open_date [12:27:08]req_shift_open_date done [12:27:08]produce_requested_data done [12:27:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104359,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:27:08]process_action_free close_receipt [12:27:08]json_value_free [12:27:08]json_value_free done [12:27:08]process_json_proto returns [12:27:08]Send response to host [12:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104359,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:27:08]free response buf [12:27:08]execute_script done [12:27:08]execute_script returns [12:27:08]free content buf [12:27:08]Sock 7.Close socket [12:27:08]Sock 7.Thread stoped [12:27:08]accept exits with 9 [12:27:08]New connection [12:27:08]New thread 3066449252 created [12:27:08]Thread 3066592612 joined [12:27:08]Waiting for new connection... [12:27:08] Sock 9.Parse request [12:27:08]Sock 9.Check first char [12:27:08]Sock 9.First char is OK [12:27:08]request: POST /json_proto HTTP/1.0 [12:27:08]Method: POST [12:27:08]URL: /json_proto [12:27:08]Method is POST - this is cgi request [12:27:08]url: /json_proto [12:27:08]query_string will be loaded in cgi processing [12:27:08]execute_cgi json_proto POST (null) [12:27:08]execute_cgi path=json_proto method=POST [12:27:08]POST find Content-Length [12:27:08]Host: 172.17.38.133:8080 [12:27:08]Content-Length: 1171 [12:27:08]Content-Type: application/json [12:27:08] [12:27:08]POST finish read [12:27:08]Found Content-Length = 1171 [12:27: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673892\u000A22.06.2024 12: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 157.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 10424.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:08]execute_script... [12:27: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673892\u000A22.06.2024 12: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 157.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 10424.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:08]POST & json_proto [12:27:08]process_json_proto [12:27:08]json parsed OK: [12:27:08]protocol is kg_v1.0 [12:27:08]action value=print_text [12:27:08]process_action print_text [12:27:08]cmd_print_text [12:27:08]ExternCall_PrintAddStr [12:27:08]wPrintStart [12:27:08]Write to MH i2c: 01 00 00 89 0B 94 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 FF 0F A9 [12:27:08]RasterBufferAndPrint [12:27:08]line *****ТОВАРНЫЙ ЧЕК***** [12:27:08]line АЗС 120 [12:27:08]line Партнер нефть [12:27:08]line 02508201610067 [12:27:08]line Кассир : Байбугуева Г. [12:27:08]line Счет N : (1)673892 [12:27:08]line 22.06.2024 12:04 [12:27:08]line ПРОДАЖА [12:27:08]line ТРК (МРК, ГНК): 42 [12:27:08]line Вид ГСМ : 2710124130 [12:27:08]line Аи-92-К-5 [12:27:08]line 157.000 x 66.40 [12:27:08]line ИТОГ: 10424.80 [12:27:08]line Тип оплаты: Талоны: ТК ГПНА Online [12:27:08]line 30101606 [12:27:08]line ______________________ [12:27:08]line (подпись) [12:27:08]written 0, free lines is 4095 [12:27:08]Write to MH i2c: 01 00 00 9D 0B A8 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 11 0E CE [12:27:08]RasterBufferAndPrint [12:27:08]line [12:27:08]line [12:27:08]line [12:27:08]line [12:27:08]line [12:27:08]written 0, free lines is 3605 [12:27:08]MH_Cut [12:27:08]Write to MH i2c: D1 01 00 A4 0B 01 81 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: D1 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: D1 01 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: D1 01 00 A4 0B 00 80 [12:27:08]Write to MH i2c: 01 00 00 A5 0B B0 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:09]*** Cut start [12:27:09]*** Partial cut [12:27:09]*** CUTSNS_PIN = 1 [12:27:09]*** CUTSNS_PIN = 0 [12:27:09]*** Brake cut motor [12:27:09]Read from MH i2c: 01 [12:27:09]MH_I2C_Read... [12:27:09]*** Stop cut motor [12:27:09]*** Cut end [12:27:09]Read from MH i2c: 01 07 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [12:27:09]process_action print_text done [12:27:09]requested_data is exist [12:27:09]produce_requested_data [12:27:09]requested_item fm.sn is exist - process it [12:27:09]wFMCommunicate request_size=4 [12:27:09]MH_SAM_APDU [12:27:09]CAPDU: 80 11 00 00 [12:27:09]Write to MH i2c: E2 08 00 A6 0B 80 11 00 00 00 00 00 00 2B [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:09]Read from MH i2c: E2 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 17 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 17 00 A6 0B 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:27: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:27:09]wFMCommunicate OK [12:27:09]requested_item fd.num is exist - process it [12:27:09]SAM_PROTO_GetFieldsCounters [12:27:09]wFMCommunicate request_size=4 [12:27:09]MH_SAM_APDU [12:27:09]CAPDU: 80 13 00 00 [12:27:09]Write to MH i2c: E2 08 00 A7 0B 80 13 00 00 00 00 00 00 2E [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 A7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0D [12:27: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 A7 97 01 00 0E 04 04 00 64 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:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetFieldsCounters done [12:27:10]requested_item shift.num is exist - process it [12:27:10]requested_item shift.opened is exist - process it [12:27:10]req_shift_opened [12:27:10]FM_GetShiftState [12:27:10]SAM_PROTO_GetShiftState [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 13 01 00 [12:27:10]Write to MH i2c: E2 08 00 A8 0B 80 13 01 00 00 00 00 00 30 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 A8 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 22 [12:27:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetShiftState done [12:27:10]FM_GetShiftState done [12:27:10]req_shift_opened done [12:27:10]requested_item shift.open_date is exist - process it [12:27:10]req_shift_open_date [12:27:10]req_shift_open_date done [12:27:10]produce_requested_data done [12:27:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104359,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:27:10]process_action_free print_text [12:27:10]json_value_free [12:27:10]json_value_free done [12:27:10]process_json_proto returns [12:27:10]Send response to host [12:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104359,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:27:10]free response buf [12:27:10]execute_script done [12:27:10]execute_script returns [12:27:10]free content buf [12:27:10]Sock 9.Close socket [12:27:10]Sock 9.Thread stoped [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:04]accept exits with 7 [12:29:04]New connection [12:29:04]New thread 3066592612 created [12:29:04]Thread 3066449252 joined [12:29:04]Waiting for new connection... [12:29:04] Sock 7.Parse request [12:29:04]Sock 7.Check first char [12:29:04]Sock 7.First char is OK [12:29:04]request: POST /json_proto HTTP/1.0 [12:29:04]Method: POST [12:29:04]URL: /json_proto [12:29:04]Method is POST - this is cgi request [12:29:04]url: /json_proto [12:29:04]query_string will be loaded in cgi processing [12:29:04]execute_cgi json_proto POST (null) [12:29:04]execute_cgi path=json_proto method=POST [12:29:04]POST find Content-Length [12:29:04]Host: 172.17.38.133:8080 [12:29:04]Content-Length: 677 [12:29:04]Content-Type: application/json [12:29:04] [12:29:04]POST finish read [12:29:04]Found Content-Length = 677 [12:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673895", "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.730, "sum" : 380.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:04]execute_script... [12:29: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)673895", "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.730, "sum" : 380.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:04]POST & json_proto [12:29:04]process_json_proto [12:29:04]json parsed OK: [12:29:04]protocol is kg_v1.0 [12:29:04]action value=close_receipt [12:29:04]process_action close_receipt [12:29:04]cmd_close_receipt [12:29:04]MH_GetDate [12:29:04]Write to MH i2c: F0 00 00 A9 0B A3 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 09 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 09 00 A9 0B 00 91 C3 76 66 BD 8F 7C 64 08 [12:29:04]GetLastDocTimeStamp 1719059225 [12:29:04]current date 1719059345 [12:29:04]FM_GetShiftState [12:29:04]SAM_PROTO_GetShiftState [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 13 01 00 [12:29:04]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 24 [12:29:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_GetShiftState done [12:29:04]FM_GetShiftState done [12:29:04]opened in 1719016176 [12:29:04]opened+sec_in_day 1719102576 [12:29:04]quantity*price = 38047 [12:29:04]sum+1 = 38048 [12:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.40 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 93 22.06.2024 12:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104360 ФПД: 42195454850216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122905&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104360&fm=42195454850216&tin=02508201610067®Number=0000000000092785&sum=38000 [12:29:05]StoreToDocumentArchive [12:29:05]shift 356 fd 104360 [12:29:05]save to /storage/0356/doc_00104360 [12:29:05]save last doc name /storage/0356/doc_00104360 to /storage/kkm_last_doc_name [12:29:05]save OK [12:29:05]Clear old archive folders... [12:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:05]tlvbuf is 00FE6D70 [12:29:05]SAM_PROTO_ClearQueue [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 09 00 00 [12:29:05]Write to MH i2c: E2 08 00 B7 0B 80 09 00 00 00 00 00 00 34 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_ClearQueue done [12:29:05]KKMCreateOFDPacket [12:29:05]OFDProtocolAddRootSTLVToBuf [12:29:05]FM_MakeSignedData [12:29:05]FM_MakeSignedData [12:29:05]SAM_PROTO_SignData [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 0D 01 02 [12:29:05]Write to MH i2c: E2 08 00 B8 0B 80 0D 01 02 00 00 00 00 3C [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]wFMCommunicate request_size=255 [12:29:05]MH_SAM_APDU [12:29: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 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 91 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 26 [12:29:05]Write to MH i2c: E2 02 01 B9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 91 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 26 00 00 89 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]wFMCommunicate request_size=10 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 0D 02 02 05 60 65 18 F4 A8 [12:29:06]Write to MH i2c: E2 0D 00 BA 0B 80 0D 02 02 05 00 60 65 18 F4 A8 00 00 C2 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 0D 03 02 [12:29:06]Write to MH i2c: E2 08 00 BB 0B 80 0D 03 02 00 00 00 00 41 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 0B 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 0B 00 BB 0B 00 70 01 99 43 1C BA B9 96 90 00 B4 [12:29:06]RAPDU: 70 01 99 43 1C BA B9 96 90 00 [12:29:06]wFMCommunicate OK [12:29:06]SAM_PROTO_SignData done [12:29:06]FM_MakeSignedData done [12:29:06]CreateOFDProtocolMessage [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 11 00 00 [12:29:06]Write to MH i2c: E2 08 00 BC 0B 80 11 00 00 00 00 00 00 41 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 17 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 17 00 BC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [12:29: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:29:06]wFMCommunicate OK [12:29:06]CreateOFDProtocolMessage done [12:29:06]OFDSenderStorePacket 104360 [12:29:06]StoreOFDPacket docnum=104360 [12:29: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 48 BE 07 01 CA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 91 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 26 60 65 18 F4 A8 70 01 99 43 1C BA B9 96 [12:29:06]CheckFolder [12:29:06]dirname=/storage/ofd_packets [12:29:06]CheckFolder done [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00104360 [12:29:06]NVStorageSaveData ofd_packets/00104360 [12:29:06]File name is /storage/ofd_packets/00104360 [12:29:06]Write 301 bytes [12:29:06]NVStorageSaveData done [12:29:06]OFDSenderStorePacket done [12:29:06]KKMCreateOFDPacket done [12:29:06]NVStorageSaveData kkm_last_timestamp [12:29:06]File name is /storage/kkm_last_timestamp [12:29:06]Write 4 bytes [12:29:06]NVStorageSaveData done [12:29:06]ExternCall_PrintAddStr [12:29:06]wPrintStart [12:29:06]Write to MH i2c: 01 00 00 BD 0B C8 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 FF 0F DD [12:29:06]RasterBufferAndPrint [12:29:06]line Счет N : (1)673895 [12:29:06]line ИНН: 02508201610067 [12:29:06]line Контрольно-Кассовый Чек [12:29:06]line ПРОДАЖА [12:29:06]line ТРК (МРК, ГНК) : 32 [12:29:06]line Товар: 2710124130 [12:29:06]line Аи-92-К-5 [12:29:06]line 5.730 * 66.40 [12:29:06]line = 380.47 [12:29:06]line НДС 12% НСП 1% [12:29:06]line > о реализуемом товаре [12:29:06]line ОКРУГЛЕНИЕ: -0.47 [12:29:06]line ИТОГО: 380.00 [12:29:06]line Внесено: 380.00 [12:29:06]line СДАЧА: 0.00 [12:29:06]line НСП 1% : 3.37 [12:29:06]line НДС 12% : 40.40 [12:29:06]line Наличными: 380.00 [12:29:06]line Безнал.: 0.00 [12:29:06]line Место: АЗС № 120 "Партнер Нефть" [12:29:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:29:06]line СНО: Общий режим [12:29:06]line Чек 93 22.06.2024 12:29 [12:29:06]line Смена: 356 ФФД: 1.0 [12:29:06]line ЗНМ: 0300000164 [12:29:06]line РНМ: 0000000000092785 [12:29:06]line Версия ККМ: 001 [12:29:06]line ФМ: 0000000000875093 [12:29:06]line ФД: 104360 [12:29:06]line ФПД: 42195454850216 [12:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122905&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104360&fm=42195454850216&tin=02508201610067®Number=0000000000092785&sum=38000 [12:29:06]OFD Sender: Processing packet 104360 [packets to send 17, broken 16] [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00104360 [12:29:06]OFD Sender: To server: pG, [12:29:06]CommunicateWithHost lk.salyk.kg:30040 [12:29:06]ConnectInit lk.salyk.kg [12:29:06]written 0, free lines is 4095 [12:29:06]Connected sock=10 [12:29: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 48 BE 07 01 CA D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 91 C3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 26 60 65 18 F4 A8 70 01 99 43 1C BA B9 96 [12:29: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 4E 1E 47 00 63 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 A8 97 01 00 F4 03 04 00 11 6A 76 66 B6 04 01 00 00 DD 3C 81 BF 13 61 82 83 [12:29:07]CommunicateWithHost err = 0 [12:29:07]CheckOFDResponse [12:29:07]1017 (14) - 77093643461234 [12:29:07]1041 (16) - 0000000000875093 [12:29:07]1040 (4) - 104360 [12:29:07]1012 (4) - 22.06.2024 06:07 [12:29:07]1206 (1) - 0 [12:29:07]OFD Sender: Remove packet 104360 [12:29:07]ProducePacketName [12:29:07]name=ofd_packets/00104360 [12:29:07]NVStorageDeleteData [12:29:07]Write to MH i2c: 01 00 00 E8 0B F3 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 D4 0C DA [12:29:07]RasterBufferAndPrint [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]written 0, free lines is 3323 [12:29:07]MH_Cut [12:29:07]Write to MH i2c: D1 01 00 EF 0B 01 CC [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 EF 0B 00 CB [12:29:07]Write to MH i2c: 01 00 00 F0 0B FB [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]OFD Sender: No OFD packet to send [12:29:07]*** Cut start [12:29:07]*** Partial cut [12:29:07]*** CUTSNS_PIN = 1 [12:29:07]*** CUTSNS_PIN = 0 [12:29:08]*** Brake cut motor [12:29:08]Read from MH i2c: 01 [12:29:08]MH_I2C_Read... [12:29:08]*** Stop cut motor [12:29:08]*** Cut end [12:29:08]Read from MH i2c: 01 07 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [12:29:08]process_action close_receipt done [12:29:08]requested_data is exist [12:29:08]produce_requested_data [12:29:08]requested_item fm.sn is exist - process it [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 11 00 00 [12:29:08]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [12:29:08]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:08]wFMCommunicate OK [12:29:08]requested_item fd.num is exist - process it [12:29:08]SAM_PROTO_GetFieldsCounters [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 00 00 [12:29:08]Write to MH i2c: E2 08 00 F2 0B 80 13 00 00 00 00 00 00 79 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 F2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5C [12:29: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 A8 97 01 00 0E 04 04 00 64 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:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetFieldsCounters done [12:29:08]requested_item shift.num is exist - process it [12:29:08]requested_item shift.opened is exist - process it [12:29:08]req_shift_opened [12:29:08]FM_GetShiftState [12:29:08]SAM_PROTO_GetShiftState [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 01 00 [12:29:08]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6D [12:29:08]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetShiftState done [12:29:08]FM_GetShiftState done [12:29:08]req_shift_opened done [12:29:08]requested_item shift.open_date is exist - process it [12:29:08]req_shift_open_date [12:29:08]req_shift_open_date done [12:29:08]produce_requested_data done [12:29:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104360,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:29:08]process_action_free close_receipt [12:29:08]json_value_free [12:29:08]json_value_free done [12:29:08]process_json_proto returns [12:29:08]Send response to host [12:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104360,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:29:08]free response buf [12:29:08]execute_script done [12:29:08]execute_script returns [12:29:08]free content buf [12:29:08]Sock 7.Close socket [12:29:08]Sock 7.Thread stoped [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:31:59]accept exits with 9 [12:31:59]New connection [12:31:59]New thread 3066449252 created [12:31:59]Thread 3066592612 joined [12:31:59]Waiting for new connection... [12:31:59] Sock 9.Parse request [12:31:59]Sock 9.Check first char [12:31:59]Sock 9.First char is OK [12:31:59]request: POST /json_proto HTTP/1.0 [12:31:59]Method: POST [12:31:59]URL: /json_proto [12:31:59]Method is POST - this is cgi request [12:31:59]url: /json_proto [12:31:59]query_string will be loaded in cgi processing [12:31:59]execute_cgi json_proto POST (null) [12:31:59]execute_cgi path=json_proto method=POST [12:31:59]POST find Content-Length [12:31:59]Host: 172.17.38.133:8080 [12:31:59]Content-Length: 682 [12:31:59]Content-Type: application/json [12:31:59] [12:31:59]POST finish read [12:31:59]Found Content-Length = 682 [12:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673897", "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:31:59]execute_script... [12:31: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)673897", "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:31:59]POST & json_proto [12:31:59]process_json_proto [12:31:59]json parsed OK: [12:31:59]protocol is kg_v1.0 [12:31:59]action value=close_receipt [12:31:59]process_action close_receipt [12:31:59]cmd_close_receipt [12:31:59]MH_GetDate [12:31:59]Write to MH i2c: F0 00 00 F4 0B EE [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: F0 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: F0 09 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: F0 09 00 F4 0B 00 40 C4 76 66 BD 8F 7C 64 03 [12:31:59]GetLastDocTimeStamp 1719059345 [12:31:59]current date 1719059520 [12:31:59]FM_GetShiftState [12:31:59]SAM_PROTO_GetShiftState [12:31:59]wFMCommunicate request_size=4 [12:31:59]MH_SAM_APDU [12:31:59]CAPDU: 80 13 01 00 [12:31:59]Write to MH i2c: E2 08 00 F5 0B 80 13 01 00 00 00 00 00 7D [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:59]Read from MH i2c: E2 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 0E 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 0E 00 F5 0B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6F [12:31:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:31:59]wFMCommunicate OK [12:31:59]SAM_PROTO_GetShiftState done [12:31:59]FM_GetShiftState done [12:31:59]opened in 1719016176 [12:31:59]opened+sec_in_day 1719102576 [12:31:59]quantity*price = 100064 [12:31:59]sum+1 = 100066 [12:31:59]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 СНО: Общий режим Чек 94 22.06.2024 12:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104361 ФПД: 14478323867905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123200&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104361&fm=14478323867905&tin=02508201610067®Number=0000000000092785&sum=100000 [12:32:00]StoreToDocumentArchive [12:32:00]shift 356 fd 104361 [12:32:00]save to /storage/0356/doc_00104361 [12:32:00]save last doc name /storage/0356/doc_00104361 to /storage/kkm_last_doc_name [12:32:00]save OK [12:32:00]Clear old archive folders... [12:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:00]tlvbuf is 00FEC220 [12:32:00]SAM_PROTO_ClearQueue [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 09 00 00 [12:32:00]Write to MH i2c: E2 08 00 02 0C 80 09 00 00 00 00 00 00 80 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [12:32:00]RAPDU: 90 00 [12:32:00]wFMCommunicate OK [12:32:00]SAM_PROTO_ClearQueue done [12:32:00]KKMCreateOFDPacket [12:32:00]OFDProtocolAddRootSTLVToBuf [12:32:00]FM_MakeSignedData [12:32:00]FM_MakeSignedData [12:32:00]SAM_PROTO_SignData [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 0D 01 02 [12:32:00]Write to MH i2c: E2 08 00 03 0C 80 0D 01 02 00 00 00 00 88 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [12:32:00]RAPDU: 90 00 [12:32:00]wFMCommunicate OK [12:32:00]wFMCommunicate request_size=255 [12:32:00]MH_SAM_APDU [12:32: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 5E 00 00 00 F4 03 04 00 40 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D [12:32:00]Write to MH i2c: E2 02 01 04 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 40 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D 00 00 83 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [12:32:00]RAPDU: 90 00 [12:32:00]wFMCommunicate OK [12:32:00]wFMCommunicate request_size=10 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 0D 02 02 05 2A FF 59 E1 01 [12:32:00]Write to MH i2c: E2 0D 00 05 0C 80 0D 02 02 05 00 2A FF 59 E1 01 00 00 F9 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [12:32:00]RAPDU: 90 00 [12:32:00]wFMCommunicate OK [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 0D 03 02 [12:32:00]Write to MH i2c: E2 08 00 06 0C 80 0D 03 02 00 00 00 00 8D [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 0B 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 0B 00 06 0C 00 79 48 FD EC E2 F2 30 25 90 00 61 [12:32:00]RAPDU: 79 48 FD EC E2 F2 30 25 90 00 [12:32:00]wFMCommunicate OK [12:32:00]SAM_PROTO_SignData done [12:32:00]FM_MakeSignedData done [12:32:00]CreateOFDProtocolMessage [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 11 00 00 [12:32:00]Write to MH i2c: E2 08 00 07 0C 80 11 00 00 00 00 00 00 8D [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:01]Read from MH i2c: E2 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 17 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 17 00 07 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [12:32:01]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:01]wFMCommunicate OK [12:32:01]CreateOFDProtocolMessage done [12:32:01]OFDSenderStorePacket 104361 [12:32:01]StoreOFDPacket docnum=104361 [12:32: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 06 C3 07 01 6D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 40 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D 2A FF 59 E1 01 79 48 FD EC E2 F2 30 25 [12:32:01]CheckFolder [12:32:01]dirname=/storage/ofd_packets [12:32:01]CheckFolder done [12:32:01]ProducePacketName [12:32:01]name=ofd_packets/00104361 [12:32:01]NVStorageSaveData ofd_packets/00104361 [12:32:01]File name is /storage/ofd_packets/00104361 [12:32:01]Write 301 bytes [12:32:01]NVStorageSaveData done [12:32:01]OFDSenderStorePacket done [12:32:01]KKMCreateOFDPacket done [12:32:01]NVStorageSaveData kkm_last_timestamp [12:32:01]File name is /storage/kkm_last_timestamp [12:32:01]Write 4 bytes [12:32:01]NVStorageSaveData done [12:32:01]ExternCall_PrintAddStr [12:32:01]wPrintStart [12:32:01]Write to MH i2c: 01 00 00 08 0C 14 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 07 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [12:32:01]RasterBufferAndPrint [12:32:01]line Счет N : (1)673897 [12:32:01]line ИНН: 02508201610067 [12:32:01]line Контрольно-Кассовый Чек [12:32:01]line ПРОДАЖА [12:32:01]line ТРК (МРК, ГНК) : 32 [12:32:01]line Товар: 2710124130 [12:32:01]line Аи-92-К-5 [12:32:01]line 15.070 * 66.40 [12:32:01]line = 1000.65 [12:32:01]line НДС 12% НСП 1% [12:32:01]line > о реализуемом товаре [12:32:01]line ОКРУГЛЕНИЕ: -0.65 [12:32:01]line ИТОГО: 1000.00 [12:32:01]line Внесено: 1000.00 [12:32:01]line СДАЧА: 0.00 [12:32:01]line НСП 1% : 8.85 [12:32:01]line НДС 12% : 106.26 [12:32:01]line Наличными: 1000.00 [12:32:01]line Безнал.: 0.00 [12:32:01]line Место: АЗС № 120 "Партнер Нефть" [12:32:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:32:01]line СНО: Общий режим [12:32:01]line Чек 94 22.06.2024 12:32 [12:32:01]line Смена: 356 ФФД: 1.0 [12:32:01]line ЗНМ: 0300000164 [12:32:01]line РНМ: 0000000000092785 [12:32:01]line Версия ККМ: 001 [12:32:01]line ФМ: 0000000000875093 [12:32:01]line ФД: 104361 [12:32:01]line ФПД: 14478323867905 [12:32:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123200&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104361&fm=14478323867905&tin=02508201610067®Number=0000000000092785&sum=100000 [12:32:01]OFD Sender: Processing packet 104361 [packets to send 17, broken 16] [12:32:01]ProducePacketName [12:32:01]name=ofd_packets/00104361 [12:32:01]OFD Sender: To server: pG, [12:32:01]CommunicateWithHost lk.salyk.kg:30040 [12:32:01]ConnectInit lk.salyk.kg [12:32:01]written 0, free lines is 4095 [12:32:01]Connected sock=7 [12:32: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 06 C3 07 01 6D 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 40 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0D 2A FF 59 E1 01 79 48 FD EC E2 F2 30 25 [12:32: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 84 22 47 00 D3 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 A9 97 01 00 F4 03 04 00 BF 6A 76 66 B6 04 01 00 00 6C BA 23 43 2C F0 61 32 [12:32:01]CommunicateWithHost err = 0 [12:32:01]CheckOFDResponse [12:32:01]1017 (14) - 77093643461234 [12:32:01]1041 (16) - 0000000000875093 [12:32:01]1040 (4) - 104361 [12:32:01]1012 (4) - 22.06.2024 06:10 [12:32:01]1206 (1) - 0 [12:32:01]OFD Sender: Remove packet 104361 [12:32:01]ProducePacketName [12:32:01]name=ofd_packets/00104361 [12:32:01]NVStorageDeleteData [12:32:01]Write to MH i2c: 01 00 00 33 0C 3F [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 07 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 CC 0C 1E [12:32:01]RasterBufferAndPrint [12:32:01]line [12:32:01]line [12:32:01]line [12:32:01]line [12:32:01]line [12:32:01]written 0, free lines is 3282 [12:32:01]MH_Cut [12:32:01]Write to MH i2c: D1 01 00 3A 0C 01 18 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: D1 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: D1 01 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: D1 01 00 3A 0C 00 17 [12:32:01]Write to MH i2c: 01 00 00 3B 0C 47 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:02]OFD Sender: No OFD packet to send [12:32:02]*** Cut start [12:32:02]*** Partial cut [12:32:02]*** CUTSNS_PIN = 1 [12:32:02]*** CUTSNS_PIN = 0 [12:32:02]*** Brake cut motor [12:32:03]Read from MH i2c: 01 [12:32:03]MH_I2C_Read... [12:32:03]*** Stop cut motor [12:32:03]*** Cut end [12:32:03]Read from MH i2c: 01 07 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [12:32:03]process_action close_receipt done [12:32:03]requested_data is exist [12:32:03]produce_requested_data [12:32:03]requested_item fm.sn is exist - process it [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 11 00 00 [12:32:03]Write to MH i2c: E2 08 00 3C 0C 80 11 00 00 00 00 00 00 C2 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 3C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [12:32: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:32:03]wFMCommunicate OK [12:32:03]requested_item fd.num is exist - process it [12:32:03]SAM_PROTO_GetFieldsCounters [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 13 00 00 [12:32:03]Write to MH i2c: E2 08 00 3D 0C 80 13 00 00 00 00 00 00 C5 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 62 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 62 00 3D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 AC [12:32: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 A9 97 01 00 0E 04 04 00 64 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 [12:32:03]wFMCommunicate OK [12:32:03]SAM_PROTO_GetFieldsCounters done [12:32:03]requested_item shift.num is exist - process it [12:32:03]requested_item shift.opened is exist - process it [12:32:03]req_shift_opened [12:32:03]FM_GetShiftState [12:32:03]SAM_PROTO_GetShiftState [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 13 01 00 [12:32:03]Write to MH i2c: E2 08 00 3E 0C 80 13 01 00 00 00 00 00 C7 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0E 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0E 00 3E 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B9 [12:32:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:32:03]wFMCommunicate OK [12:32:03]SAM_PROTO_GetShiftState done [12:32:03]FM_GetShiftState done [12:32:03]req_shift_opened done [12:32:03]requested_item shift.open_date is exist - process it [12:32:03]req_shift_open_date [12:32:03]req_shift_open_date done [12:32:03]produce_requested_data done [12:32:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104361,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:32:03]process_action_free close_receipt [12:32:03]json_value_free [12:32:03]json_value_free done [12:32:03]process_json_proto returns [12:32:03]Send response to host [12:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104361,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:32:03]free response buf [12:32:03]execute_script done [12:32:03]execute_script returns [12:32:03]free content buf [12:32:03]Sock 9.Close socket [12:32:03]Sock 9.Thread stoped [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:35]accept exits with 10 [12:33:35]New connection [12:33:35]New thread 3066592612 created [12:33:35]Thread 3066449252 joined [12:33:35]Waiting for new connection... [12:33:35] Sock 10.Parse request [12:33:35]Sock 10.Check first char [12:33:35]Sock 10.First char is OK [12:33:35]request: POST /json_proto HTTP/1.0 [12:33:35]Method: POST [12:33:35]URL: /json_proto [12:33:35]Method is POST - this is cgi request [12:33:35]url: /json_proto [12:33:35]query_string will be loaded in cgi processing [12:33:35]execute_cgi json_proto POST (null) [12:33:35]execute_cgi path=json_proto method=POST [12:33:35]POST find Content-Length [12:33:35]Host: 172.17.38.133:8080 [12:33:35]Content-Length: 682 [12:33:35]Content-Type: application/json [12:33:35] [12:33:35]POST finish read [12:33:35]Found Content-Length = 682 [12:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673896", "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" : 49.000, "sum" : 3621.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3621.00, "payments": [ { "type": 0, "sum" : 3621.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:35]execute_script... [12:33: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)673896", "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" : 49.000, "sum" : 3621.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3621.00, "payments": [ { "type": 0, "sum" : 3621.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:35]POST & json_proto [12:33:35]process_json_proto [12:33:35]json parsed OK: [12:33:35]protocol is kg_v1.0 [12:33:35]action value=close_receipt [12:33:35]process_action close_receipt [12:33:35]cmd_close_receipt [12:33:35]MH_GetDate [12:33:35]Write to MH i2c: F0 00 00 3F 0C 3A [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 09 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 09 00 3F 0C 00 A0 C4 76 66 BD 8F 7C 64 AF [12:33:35]GetLastDocTimeStamp 1719059520 [12:33:35]current date 1719059616 [12:33:35]FM_GetShiftState [12:33:35]SAM_PROTO_GetShiftState [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 01 00 [12:33:35]Write to MH i2c: E2 08 00 40 0C 80 13 01 00 00 00 00 00 C9 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 40 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 BB [12:33:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetShiftState done [12:33:35]FM_GetShiftState done [12:33:35]opened in 1719016176 [12:33:35]opened+sec_in_day 1719102576 [12:33:35]quantity*price = 362110 [12:33:35]sum+1 = 362111 [12:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 3621.00 Внесено: 5000.00 СДАЧА: 1379.00 НСП 1% : 32.04 НДС 12% : 384.54 Наличными: 3621.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 95 22.06.2024 12:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104362 ФПД: 48418006511702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104362&fm=48418006511702&tin=02508201610067®Number=0000000000092785&sum=362100 [12:33:36]StoreToDocumentArchive [12:33:36]shift 356 fd 104362 [12:33:36]save to /storage/0356/doc_00104362 [12:33:36]save last doc name /storage/0356/doc_00104362 to /storage/kkm_last_doc_name [12:33:36]save OK [12:33:36]Clear old archive folders... [12:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:36]tlvbuf is 01008780 [12:33:36]SAM_PROTO_ClearQueue [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 09 00 00 [12:33:36]Write to MH i2c: E2 08 00 4D 0C 80 09 00 00 00 00 00 00 CB [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [12:33:36]RAPDU: 90 00 [12:33:36]wFMCommunicate OK [12:33:36]SAM_PROTO_ClearQueue done [12:33:36]KKMCreateOFDPacket [12:33:36]OFDProtocolAddRootSTLVToBuf [12:33:36]FM_MakeSignedData [12:33:36]FM_MakeSignedData [12:33:36]SAM_PROTO_SignData [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 0D 01 02 [12:33:36]Write to MH i2c: E2 08 00 4E 0C 80 0D 01 02 00 00 00 00 D3 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [12:33:36]RAPDU: 90 00 [12:33:36]wFMCommunicate OK [12:33:36]wFMCommunicate request_size=255 [12:33:36]MH_SAM_APDU [12:33: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 68 BF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 86 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 86 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 96 00 00 00 00 07 04 06 00 74 86 05 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 A0 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2C [12:33:36]Write to MH i2c: E2 02 01 4F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 BF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 86 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 86 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 96 00 00 00 00 07 04 06 00 74 86 05 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 A0 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2C 00 00 DD [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:37]Read from MH i2c: E2 03 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [12:33:37]RAPDU: 90 00 [12:33:37]wFMCommunicate OK [12:33:37]wFMCommunicate request_size=10 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 0D 02 02 05 09 32 14 30 56 [12:33:37]Write to MH i2c: E2 0D 00 50 0C 80 0D 02 02 05 00 09 32 14 30 56 00 00 B5 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [12:33:37]RAPDU: 90 00 [12:33:37]wFMCommunicate OK [12:33:37]wFMCommunicate request_size=4 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 0D 03 02 [12:33:37]Write to MH i2c: E2 08 00 51 0C 80 0D 03 02 00 00 00 00 D8 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 0B 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 0B 00 51 0C 00 5D 5E 40 B0 12 89 B4 71 90 00 44 [12:33:37]RAPDU: 5D 5E 40 B0 12 89 B4 71 90 00 [12:33:37]wFMCommunicate OK [12:33:37]SAM_PROTO_SignData done [12:33:37]FM_MakeSignedData done [12:33:37]CreateOFDProtocolMessage [12:33:37]wFMCommunicate request_size=4 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 11 00 00 [12:33:37]Write to MH i2c: E2 08 00 52 0C 80 11 00 00 00 00 00 00 D8 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 17 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 17 00 52 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [12:33: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:33:37]wFMCommunicate OK [12:33:37]CreateOFDProtocolMessage done [12:33:37]OFDSenderStorePacket 104362 [12:33:37]StoreOFDPacket docnum=104362 [12:33: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 27 7E 07 01 54 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 BF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 86 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 86 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 96 00 00 00 00 07 04 06 00 74 86 05 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 A0 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2C 09 32 14 30 56 5D 5E 40 B0 12 89 B4 71 [12:33:37]CheckFolder [12:33:37]dirname=/storage/ofd_packets [12:33:37]CheckFolder done [12:33:37]ProducePacketName [12:33:37]name=ofd_packets/00104362 [12:33:37]NVStorageSaveData ofd_packets/00104362 [12:33:37]File name is /storage/ofd_packets/00104362 [12:33:37]Write 301 bytes [12:33:37]NVStorageSaveData done [12:33:37]OFDSenderStorePacket done [12:33:37]KKMCreateOFDPacket done [12:33:37]NVStorageSaveData kkm_last_timestamp [12:33:37]File name is /storage/kkm_last_timestamp [12:33:37]Write 4 bytes [12:33:37]NVStorageSaveData done [12:33:37]ExternCall_PrintAddStr [12:33:37]wPrintStart [12:33:37]Write to MH i2c: 01 00 00 53 0C 5F [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [12:33:37]RasterBufferAndPrint [12:33:37]line Счет N : (1)673896 [12:33:37]line ИНН: 02508201610067 [12:33:37]line Контрольно-Кассовый Чек [12:33:37]line ПРОДАЖА [12:33:37]line ТРК (МРК, ГНК) : 41 [12:33:37]line Товар: 2710124500 [12:33:37]line Аи-95-К-5 [12:33:37]line 49.000 * 73.90 [12:33:37]line = 3621.10 [12:33:37]line НДС 12% НСП 1% [12:33:37]line > о реализуемом товаре [12:33:37]line ОКРУГЛЕНИЕ: -0.10 [12:33:37]line ИТОГО: 3621.00 [12:33:37]line Внесено: 5000.00 [12:33:37]line СДАЧА: 1379.00 [12:33:37]line НСП 1% : 32.04 [12:33:37]line НДС 12% : 384.54 [12:33:37]line Наличными: 3621.00 [12:33:37]line Безнал.: 0.00 [12:33:37]line Место: АЗС № 120 "Партнер Нефть" [12:33:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:33:37]line СНО: Общий режим [12:33:37]line Чек 95 22.06.2024 12:33 [12:33:37]line Смена: 356 ФФД: 1.0 [12:33:37]line ЗНМ: 0300000164 [12:33:37]line РНМ: 0000000000092785 [12:33:37]line Версия ККМ: 001 [12:33:37]line ФМ: 0000000000875093 [12:33:37]line ФД: 104362 [12:33:37]line ФПД: 48418006511702 [12:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104362&fm=48418006511702&tin=02508201610067®Number=0000000000092785&sum=362100 [12:33:37]OFD Sender: Processing packet 104362 [packets to send 17, broken 16] [12:33:37]ProducePacketName [12:33:37]name=ofd_packets/00104362 [12:33:37]OFD Sender: To server: pG, [12:33:37]CommunicateWithHost lk.salyk.kg:30040 [12:33:37]ConnectInit lk.salyk.kg [12:33:37]written 0, free lines is 4095 [12:33:37]Connected sock=9 [12:33: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 27 7E 07 01 54 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 BF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 86 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 86 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 96 00 00 00 00 07 04 06 00 74 86 05 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 A0 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2C 09 32 14 30 56 5D 5E 40 B0 12 89 B4 71 [12:33: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 FD CB 47 00 1B 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 AA 97 01 00 F4 03 04 00 1F 6B 76 66 B6 04 01 00 00 68 D7 50 6A 36 A3 D0 C0 [12:33:37]CommunicateWithHost err = 0 [12:33:37]CheckOFDResponse [12:33:37]1017 (14) - 77093643461234 [12:33:37]1041 (16) - 0000000000875093 [12:33:37]1040 (4) - 104362 [12:33:37]1012 (4) - 22.06.2024 06:11 [12:33:37]1206 (1) - 0 [12:33:37]OFD Sender: Remove packet 104362 [12:33:37]ProducePacketName [12:33:37]name=ofd_packets/00104362 [12:33:37]NVStorageDeleteData [12:33:37]Write to MH i2c: 01 00 00 7E 0C 8A [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 DD 0C 7A [12:33:37]RasterBufferAndPrint [12:33:37]line [12:33:37]line [12:33:37]line [12:33:37]line [12:33:37]line [12:33:37]written 0, free lines is 3299 [12:33:37]MH_Cut [12:33:37]Write to MH i2c: D1 01 00 85 0C 01 63 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: D1 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: D1 01 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: D1 01 00 85 0C 00 62 [12:33:37]Write to MH i2c: 01 00 00 86 0C 92 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:38]OFD Sender: No OFD packet to send [12:33:38]*** Cut start [12:33:38]*** Partial cut [12:33:38]*** CUTSNS_PIN = 1 [12:33:38]*** CUTSNS_PIN = 0 [12:33:38]*** Brake cut motor [12:33:39]Read from MH i2c: 01 [12:33:39]MH_I2C_Read... [12:33:39]*** Stop cut motor [12:33:39]*** Cut end [12:33:39]Read from MH i2c: 01 07 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [12:33:39]process_action close_receipt done [12:33:39]requested_data is exist [12:33:39]produce_requested_data [12:33:39]requested_item fm.sn is exist - process it [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 11 00 00 [12:33:39]Write to MH i2c: E2 08 00 87 0C 80 11 00 00 00 00 00 00 0D [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 87 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [12:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:33:39]wFMCommunicate OK [12:33:39]requested_item fd.num is exist - process it [12:33:39]SAM_PROTO_GetFieldsCounters [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 00 00 [12:33:39]Write to MH i2c: E2 08 00 88 0C 80 13 00 00 00 00 00 00 10 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 62 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 62 00 88 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 FB [12:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetFieldsCounters done [12:33:39]requested_item shift.num is exist - process it [12:33:39]requested_item shift.opened is exist - process it [12:33:39]req_shift_opened [12:33:39]FM_GetShiftState [12:33:39]SAM_PROTO_GetShiftState [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 01 00 [12:33:39]Write to MH i2c: E2 08 00 89 0C 80 13 01 00 00 00 00 00 12 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 89 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 04 [12:33:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetShiftState done [12:33:39]FM_GetShiftState done [12:33:39]req_shift_opened done [12:33:39]requested_item shift.open_date is exist - process it [12:33:39]req_shift_open_date [12:33:39]req_shift_open_date done [12:33:39]produce_requested_data done [12:33:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104362,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:33:39]process_action_free close_receipt [12:33:39]json_value_free [12:33:39]json_value_free done [12:33:39]process_json_proto returns [12:33:39]Send response to host [12:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104362,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:33:39]free response buf [12:33:39]execute_script done [12:33:39]execute_script returns [12:33:39]free content buf [12:33:39]Sock 10.Close socket [12:33:39]Sock 10.Thread stoped [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:29]accept exits with 7 [12:34:29]New connection [12:34:29]New thread 3066449252 created [12:34:29]Thread 3066592612 joined [12:34:29]Waiting for new connection... [12:34:29] Sock 7.Parse request [12:34:29]Sock 7.Check first char [12:34:29]Sock 7.First char is OK [12:34:29]request: POST /json_proto HTTP/1.0 [12:34:29]Method: POST [12:34:29]URL: /json_proto [12:34:29]Method is POST - this is cgi request [12:34:29]url: /json_proto [12:34:29]query_string will be loaded in cgi processing [12:34:29]execute_cgi json_proto POST (null) [12:34:29]execute_cgi path=json_proto method=POST [12:34:29]POST find Content-Length [12:34:29]Host: 172.17.38.133:8080 [12:34:29]Content-Length: 677 [12:34:29]Content-Type: application/json [12:34:29] [12:34:29]POST finish read [12:34:29]Found Content-Length = 677 [12:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673898", "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" ] } } [12:34:29]execute_script... [12:34: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)673898", "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" ] } } [12:34:29]POST & json_proto [12:34:29]process_json_proto [12:34:29]json parsed OK: [12:34:29]protocol is kg_v1.0 [12:34:29]action value=close_receipt [12:34:29]process_action close_receipt [12:34:29]cmd_close_receipt [12:34:29]MH_GetDate [12:34:29]Write to MH i2c: F0 00 00 8A 0C 85 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: F0 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: F0 09 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: F0 09 00 8A 0C 00 D6 C4 76 66 BD 8F 7C 64 30 [12:34:29]GetLastDocTimeStamp 1719059616 [12:34:29]current date 1719059670 [12:34:29]FM_GetShiftState [12:34:29]SAM_PROTO_GetShiftState [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 13 01 00 [12:34:29]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0E 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 06 [12:34:29]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_GetShiftState done [12:34:29]FM_GetShiftState done [12:34:29]opened in 1719016176 [12:34:29]opened+sec_in_day 1719102576 [12:34:29]quantity*price = 60025 [12:34:29]sum+1 = 60027 [12:34:29]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 СНО: Общий режим Чек 96 22.06.2024 12:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104363 ФПД: 131377439639774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123430&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104363&fm=131377439639774&tin=02508201610067®Number=0000000000092785&sum=60000 [12:34:30]StoreToDocumentArchive [12:34:30]shift 356 fd 104363 [12:34:30]save to /storage/0356/doc_00104363 [12:34:30]save last doc name /storage/0356/doc_00104363 to /storage/kkm_last_doc_name [12:34:30]save OK [12:34:30]Clear old archive folders... [12:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:30]tlvbuf is 00FB05F0 [12:34:30]SAM_PROTO_ClearQueue [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 09 00 00 [12:34:30]Write to MH i2c: E2 08 00 98 0C 80 09 00 00 00 00 00 00 16 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]SAM_PROTO_ClearQueue done [12:34:30]KKMCreateOFDPacket [12:34:30]OFDProtocolAddRootSTLVToBuf [12:34:30]FM_MakeSignedData [12:34:30]FM_MakeSignedData [12:34:30]SAM_PROTO_SignData [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 01 02 [12:34:30]Write to MH i2c: E2 08 00 99 0C 80 0D 01 02 00 00 00 00 1E [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=255 [12:34:30]MH_SAM_APDU [12:34: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 60 00 00 00 F4 03 04 00 D6 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 77 [12:34:30]Write to MH i2c: E2 02 01 9A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 D6 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 77 00 00 AA [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=10 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 02 02 05 7C B1 9F 08 DE [12:34:30]Write to MH i2c: E2 0D 00 9B 0C 80 0D 02 02 05 00 7C B1 9F 08 DE 00 00 DD [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 03 00 9B 0C 00 90 00 1B [12:34:30]RAPDU: 90 00 [12:34:30]wFMCommunicate OK [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 0D 03 02 [12:34:30]Write to MH i2c: E2 08 00 9C 0C 80 0D 03 02 00 00 00 00 23 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0B 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0B 00 9C 0C 00 B9 82 C4 77 45 87 47 6F 90 00 1C [12:34:30]RAPDU: B9 82 C4 77 45 87 47 6F 90 00 [12:34:30]wFMCommunicate OK [12:34:30]SAM_PROTO_SignData done [12:34:30]FM_MakeSignedData done [12:34:30]CreateOFDProtocolMessage [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 11 00 00 [12:34:30]Write to MH i2c: E2 08 00 9D 0C 80 11 00 00 00 00 00 00 23 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 9D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [12:34: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:34:30]wFMCommunicate OK [12:34:30]CreateOFDProtocolMessage done [12:34:30]OFDSenderStorePacket 104363 [12:34:30]StoreOFDPacket docnum=104363 [12:34: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 69 9C 07 01 36 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 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 60 00 00 00 F4 03 04 00 D6 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 77 7C B1 9F 08 DE B9 82 C4 77 45 87 47 6F [12:34:30]CheckFolder [12:34:30]dirname=/storage/ofd_packets [12:34:30]CheckFolder done [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00104363 [12:34:30]NVStorageSaveData ofd_packets/00104363 [12:34:30]File name is /storage/ofd_packets/00104363 [12:34:30]Write 301 bytes [12:34:30]NVStorageSaveData done [12:34:30]OFDSenderStorePacket done [12:34:30]KKMCreateOFDPacket done [12:34:30]NVStorageSaveData kkm_last_timestamp [12:34:30]File name is /storage/kkm_last_timestamp [12:34:30]Write 4 bytes [12:34:30]NVStorageSaveData done [12:34:30]ExternCall_PrintAddStr [12:34:30]wPrintStart [12:34:30]Write to MH i2c: 01 00 00 9E 0C AA [12:34:30]OFD Sender: Processing packet 104363 [packets to send 17, broken 16] [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00104363 [12:34:30]OFD Sender: To server: pG, [12:34:30]CommunicateWithHost lk.salyk.kg:30040 [12:34:30]ConnectInit lk.salyk.kg [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [12:34:30]RasterBufferAndPrint [12:34:30]line Счет N : (1)673898 [12:34:30]line ИНН: 02508201610067 [12:34:30]line Контрольно-Кассовый Чек [12:34:30]line ПРОДАЖА [12:34:30]line ТРК (МРК, ГНК) : 32 [12:34:30]line Товар: 2710124130 [12:34:30]line Аи-92-К-5 [12:34:30]line 9.040 * 66.40 [12:34:30]line = 600.26 [12:34:30]line НДС 12% НСП 1% [12:34:30]line > о реализуемом товаре [12:34:30]line ОКРУГЛЕНИЕ: -0.26 [12:34:30]line ИТОГО: 600.00 [12:34:30]line Внесено: 600.00 [12:34:30]line СДАЧА: 0.00 [12:34:30]line НСП 1% : 5.31 [12:34:30]line НДС 12% : 63.74 [12:34:30]line Наличными: 600.00 [12:34:30]line Безнал.: 0.00 [12:34:30]line Место: АЗС № 120 "Партнер Нефть" [12:34:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:34:30]line СНО: Общий режим [12:34:30]line Чек 96 22.06.2024 12:34 [12:34:30]line Смена: 356 ФФД: 1.0 [12:34:30]line ЗНМ: 0300000164 [12:34:30]line РНМ: 0000000000092785 [12:34:30]line Версия ККМ: 001 [12:34:30]line ФМ: 0000000000875093 [12:34:30]line ФД: 104363 [12:34:30]line ФПД: 131377439639774 [12:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123430&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104363&fm=131377439639774&tin=02508201610067®Number=0000000000092785&sum=60000 [12:34:30]written 0, free lines is 4095 [12:34:31]Connected sock=9 [12:34: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 69 9C 07 01 36 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 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 60 00 00 00 F4 03 04 00 D6 C4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 77 7C B1 9F 08 DE B9 82 C4 77 45 87 47 6F [12:34: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 B1 D4 47 00 55 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 55 6B 76 66 B6 04 01 00 00 C8 41 3F 34 3E F7 E1 CC [12:34:31]CommunicateWithHost err = 0 [12:34:31]CheckOFDResponse [12:34:31]1017 (14) - 77093643461234 [12:34:31]1041 (16) - 0000000000875093 [12:34:31]1040 (4) - 104363 [12:34:31]1012 (4) - 22.06.2024 06:12 [12:34:31]1206 (1) - 0 [12:34:31]OFD Sender: Remove packet 104363 [12:34:31]ProducePacketName [12:34:31]name=ofd_packets/00104363 [12:34:31]NVStorageDeleteData [12:34:31]Write to MH i2c: 01 00 00 C9 0C D5 [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 07 00 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 E5 0C CD [12:34:31]RasterBufferAndPrint [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]line [12:34:31]written 0, free lines is 3307 [12:34:31]MH_Cut [12:34:31]Write to MH i2c: D1 01 00 D0 0C 01 AE [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 01 00 [12:34:31]MH_I2C_Read... [12:34:31]Read from MH i2c: D1 01 00 D0 0C 00 AD [12:34:31]Write to MH i2c: 01 00 00 D1 0C DD [12:34:31]Write i2c OK [12:34:31]MH_I2C_Read... [12:34:31]OFD Sender: No OFD packet to send [12:34:32]*** Cut start [12:34:32]*** Partial cut [12:34:32]*** CUTSNS_PIN = 1 [12:34:32]*** CUTSNS_PIN = 0 [12:34:32]*** Brake cut motor [12:34:32]Read from MH i2c: 01 [12:34:32]MH_I2C_Read... [12:34:32]*** Stop cut motor [12:34:32]*** Cut end [12:34:32]Read from MH i2c: 01 07 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 FF 0F F2 [12:34:32]process_action close_receipt done [12:34:32]requested_data is exist [12:34:32]produce_requested_data [12:34:32]requested_item fm.sn is exist - process it [12:34:32]wFMCommunicate request_size=4 [12:34:32]MH_SAM_APDU [12:34:32]CAPDU: 80 11 00 00 [12:34:32]Write to MH i2c: E2 08 00 D2 0C 80 11 00 00 00 00 00 00 58 [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:32]Read from MH i2c: E2 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 17 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: E2 17 00 D2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [12:34:32]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:32]wFMCommunicate OK [12:34:32]requested_item fd.num is exist - process it [12:34:32]SAM_PROTO_GetFieldsCounters [12:34:32]wFMCommunicate request_size=4 [12:34:32]MH_SAM_APDU [12:34:32]CAPDU: 80 13 00 00 [12:34:32]Write to MH i2c: E2 08 00 D3 0C 80 13 00 00 00 00 00 00 5B [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 62 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 62 00 D3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 4A [12:34: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 AB 97 01 00 0E 04 04 00 64 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 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_GetFieldsCounters done [12:34:33]requested_item shift.num is exist - process it [12:34:33]requested_item shift.opened is exist - process it [12:34:33]req_shift_opened [12:34:33]FM_GetShiftState [12:34:33]SAM_PROTO_GetShiftState [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 13 01 00 [12:34:33]Write to MH i2c: E2 08 00 D4 0C 80 13 01 00 00 00 00 00 5D [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0E 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0E 00 D4 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4F [12:34:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_GetShiftState done [12:34:33]FM_GetShiftState done [12:34:33]req_shift_opened done [12:34:33]requested_item shift.open_date is exist - process it [12:34:33]req_shift_open_date [12:34:33]req_shift_open_date done [12:34:33]produce_requested_data done [12:34:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104363,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:34:33]process_action_free close_receipt [12:34:33]json_value_free [12:34:33]json_value_free done [12:34:33]process_json_proto returns [12:34:33]Send response to host [12:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104363,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:34:33]free response buf [12:34:33]execute_script done [12:34:33]execute_script returns [12:34:33]free content buf [12:34:33]Sock 7.Close socket [12:34:33]Sock 7.Thread stoped [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:37]accept exits with 10 [12:35:37]New connection [12:35:37]New thread 3066592612 created [12:35:37]Thread 3066449252 joined [12:35:37]Waiting for new connection... [12:35:37] Sock 10.Parse request [12:35:37]Sock 10.Check first char [12:35:37]Sock 10.First char is OK [12:35:37]request: POST /json_proto HTTP/1.0 [12:35:37]Method: POST [12:35:37]URL: /json_proto [12:35:37]Method is POST - this is cgi request [12:35:37]url: /json_proto [12:35:37]query_string will be loaded in cgi processing [12:35:37]execute_cgi json_proto POST (null) [12:35:37]execute_cgi path=json_proto method=POST [12:35:37]POST find Content-Length [12:35:37]Host: 172.17.38.133:8080 [12:35:37]Content-Length: 677 [12:35:37]Content-Type: application/json [12:35:37] [12:35:37]POST finish read [12:35:37]Found Content-Length = 677 [12:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673899", "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" ] } } [12:35:37]execute_script... [12:35: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)673899", "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" ] } } [12:35:37]POST & json_proto [12:35:37]process_json_proto [12:35:37]json parsed OK: [12:35:37]protocol is kg_v1.0 [12:35:37]action value=close_receipt [12:35:37]process_action close_receipt [12:35:37]cmd_close_receipt [12:35:37]MH_GetDate [12:35:37]Write to MH i2c: F0 00 00 D5 0C D0 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: F0 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: F0 09 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: F0 09 00 D5 0C 00 1A C5 76 66 BD 8F 7C 64 C0 [12:35:37]GetLastDocTimeStamp 1719059670 [12:35:37]current date 1719059738 [12:35:37]FM_GetShiftState [12:35:37]SAM_PROTO_GetShiftState [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 13 01 00 [12:35:37]Write to MH i2c: E2 08 00 D6 0C 80 13 01 00 00 00 00 00 5F [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 0E 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 0E 00 D6 0C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 51 [12:35:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:35:37]wFMCommunicate OK [12:35:37]SAM_PROTO_GetShiftState done [12:35:37]FM_GetShiftState done [12:35:37]opened in 1719016176 [12:35:37]opened+sec_in_day 1719102576 [12:35:37]quantity*price = 60025 [12:35:37]sum+1 = 60027 [12:35:37]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 СНО: Общий режим Чек 97 22.06.2024 12:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104364 ФПД: 123933395923976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104364&fm=123933395923976&tin=02508201610067®Number=0000000000092785&sum=60000 [12:35:38]StoreToDocumentArchive [12:35:38]shift 356 fd 104364 [12:35:38]save to /storage/0356/doc_00104364 [12:35:38]save last doc name /storage/0356/doc_00104364 to /storage/kkm_last_doc_name [12:35:38]save OK [12:35:38]Clear old archive folders... [12:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:38]tlvbuf is 00FB6E90 [12:35:38]SAM_PROTO_ClearQueue [12:35:38]wFMCommunicate request_size=4 [12:35:38]MH_SAM_APDU [12:35:38]CAPDU: 80 09 00 00 [12:35:38]Write to MH i2c: E2 08 00 E3 0C 80 09 00 00 00 00 00 00 61 [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:38]Read from MH i2c: E2 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 03 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [12:35:38]RAPDU: 90 00 [12:35:38]wFMCommunicate OK [12:35:38]SAM_PROTO_ClearQueue done [12:35:38]KKMCreateOFDPacket [12:35:38]OFDProtocolAddRootSTLVToBuf [12:35:38]FM_MakeSignedData [12:35:38]FM_MakeSignedData [12:35:38]SAM_PROTO_SignData [12:35:38]wFMCommunicate request_size=4 [12:35:38]MH_SAM_APDU [12:35:38]CAPDU: 80 0D 01 02 [12:35:38]Write to MH i2c: E2 08 00 E4 0C 80 0D 01 02 00 00 00 00 69 [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [12:35:39]RAPDU: 90 00 [12:35:39]wFMCommunicate OK [12:35:39]wFMCommunicate request_size=255 [12:35:39]MH_SAM_APDU [12:35: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 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 61 00 00 00 F4 03 04 00 1A C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 70 [12:35:39]Write to MH i2c: E2 02 01 E5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 1A C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 70 00 00 35 [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [12:35:39]RAPDU: 90 00 [12:35:39]wFMCommunicate OK [12:35:39]wFMCommunicate request_size=10 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 0D 02 02 05 B7 7E 0A 34 08 [12:35:39]Write to MH i2c: E2 0D 00 E6 0C 80 0D 02 02 05 00 B7 7E 0A 34 08 00 00 F1 [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 03 00 E6 0C 00 90 00 66 [12:35:39]RAPDU: 90 00 [12:35:39]wFMCommunicate OK [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 0D 03 02 [12:35:39]Write to MH i2c: E2 08 00 E7 0C 80 0D 03 02 00 00 00 00 6E [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0B 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 0B 00 E7 0C 00 2C 73 83 BA 6D 12 26 7F 90 00 6F [12:35:39]RAPDU: 2C 73 83 BA 6D 12 26 7F 90 00 [12:35:39]wFMCommunicate OK [12:35:39]SAM_PROTO_SignData done [12:35:39]FM_MakeSignedData done [12:35:39]CreateOFDProtocolMessage [12:35:39]wFMCommunicate request_size=4 [12:35:39]MH_SAM_APDU [12:35:39]CAPDU: 80 11 00 00 [12:35:39]Write to MH i2c: E2 08 00 E8 0C 80 11 00 00 00 00 00 00 6E [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:39]Read from MH i2c: E2 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 17 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: E2 17 00 E8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [12: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 [12:35:39]wFMCommunicate OK [12:35:39]CreateOFDProtocolMessage done [12:35:39]OFDSenderStorePacket 104364 [12:35:39]StoreOFDPacket docnum=104364 [12:35: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 0F 01 00 00 D0 07 07 01 E5 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 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 61 00 00 00 F4 03 04 00 1A C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 70 B7 7E 0A 34 08 2C 73 83 BA 6D 12 26 7F [12:35:39]CheckFolder [12:35:39]dirname=/storage/ofd_packets [12:35:39]CheckFolder done [12:35:39]ProducePacketName [12:35:39]name=ofd_packets/00104364 [12:35:39]NVStorageSaveData ofd_packets/00104364 [12:35:39]File name is /storage/ofd_packets/00104364 [12:35:39]Write 301 bytes [12:35:39]NVStorageSaveData done [12:35:39]OFDSenderStorePacket done [12:35:39]KKMCreateOFDPacket done [12:35:39]NVStorageSaveData kkm_last_timestamp [12:35:39]File name is /storage/kkm_last_timestamp [12:35:39]Write 4 bytes [12:35:39]NVStorageSaveData done [12:35:39]ExternCall_PrintAddStr [12:35:39]wPrintStart [12:35:39]Write to MH i2c: 01 00 00 E9 0C F5 [12:35:39]Write i2c OK [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: 01 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: 01 07 00 [12:35:39]MH_I2C_Read... [12:35:39]Read from MH i2c: 01 07 00 E9 0C 00 00 00 00 00 FF 0F 0A [12:35:39]RasterBufferAndPrint [12:35:39]line Счет N : (1)673899 [12:35:39]line ИНН: 02508201610067 [12:35:39]line Контрольно-Кассовый Чек [12:35:39]line ПРОДАЖА [12:35:39]line ТРК (МРК, ГНК) : 32 [12:35:39]line Товар: 2710124130 [12:35:39]line Аи-92-К-5 [12:35:39]line 9.040 * 66.40 [12:35:39]line = 600.26 [12:35:39]line НДС 12% НСП 1% [12:35:39]line > о реализуемом товаре [12:35:39]line ОКРУГЛЕНИЕ: -0.26 [12:35:39]line ИТОГО: 600.00 [12:35:39]line Внесено: 600.00 [12:35:39]line СДАЧА: 0.00 [12:35:39]line НСП 1% : 5.31 [12:35:39]line НДС 12% : 63.74 [12:35:39]line Наличными: 600.00 [12:35:39]line Безнал.: 0.00 [12:35:39]line Место: АЗС № 120 "Партнер Нефть" [12:35:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:35:39]line СНО: Общий режим [12:35:39]line Чек 97 22.06.2024 12:35 [12:35:39]line Смена: 356 ФФД: 1.0 [12:35:39]line ЗНМ: 0300000164 [12:35:39]line РНМ: 0000000000092785 [12:35:39]line Версия ККМ: 001 [12:35:39]OFD Sender: Processing packet 104364 [packets to send 17, broken 16] [12:35:39]line ФМ: 0000000000875093 [12:35:39]ProducePacketName [12:35:39]line ФД: 104364 [12:35:39]name=ofd_packets/00104364 [12:35:39]line ФПД: 123933395923976 [12:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104364&fm=123933395923976&tin=02508201610067®Number=0000000000092785&sum=60000 [12:35:39]OFD Sender: To server: pG, [12:35:39]CommunicateWithHost lk.salyk.kg:30040 [12:35:39]ConnectInit lk.salyk.kg [12:35:39]written 0, free lines is 4095 [12:35:39]Connected sock=9 [12:35: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 0F 01 00 00 D0 07 07 01 E5 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 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 61 00 00 00 F4 03 04 00 1A C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 70 B7 7E 0A 34 08 2C 73 83 BA 6D 12 26 7F [12:35: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 89 A8 47 00 F2 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 AC 97 01 00 F4 03 04 00 9A 6B 76 66 B6 04 01 00 00 36 38 D3 4E 6F 1B F4 03 [12:35:40]CommunicateWithHost err = 0 [12:35:40]CheckOFDResponse [12:35:40]1017 (14) - 77093643461234 [12:35:40]1041 (16) - 0000000000875093 [12:35:40]1040 (4) - 104364 [12:35:40]1012 (4) - 22.06.2024 06:13 [12:35:40]1206 (1) - 0 [12:35:40]OFD Sender: Remove packet 104364 [12:35:40]ProducePacketName [12:35:40]name=ofd_packets/00104364 [12:35:40]NVStorageDeleteData [12:35:40]Write to MH i2c: 01 00 00 14 0D 21 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: 01 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: 01 07 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 D8 0C 0C [12:35:40]RasterBufferAndPrint [12:35:40]line [12:35:40]line [12:35:40]line [12:35:40]line [12:35:40]line [12:35:40]written 0, free lines is 3295 [12:35:40]MH_Cut [12:35:40]Write to MH i2c: D1 01 00 1B 0D 01 FA [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: D1 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: D1 01 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: D1 01 00 1B 0D 00 F9 [12:35:40]Write to MH i2c: 01 00 00 1C 0D 29 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]OFD Sender: No OFD packet to send [12:35:41]*** Cut start [12:35:41]*** Partial cut [12:35:41]*** CUTSNS_PIN = 1 [12:35:41]*** CUTSNS_PIN = 0 [12:35:41]*** Brake cut motor [12:35:41]Read from MH i2c: 01 [12:35:41]MH_I2C_Read... [12:35:41]*** Stop cut motor [12:35:41]*** Cut end [12:35:41]Read from MH i2c: 01 07 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 FF 0F 3E [12:35:41]process_action close_receipt done [12:35:41]requested_data is exist [12:35:41]produce_requested_data [12:35:41]requested_item fm.sn is exist - process it [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 11 00 00 [12:35:41]Write to MH i2c: E2 08 00 1D 0D 80 11 00 00 00 00 00 00 A4 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 17 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 17 00 1D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [12:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:35:41]wFMCommunicate OK [12:35:41]requested_item fd.num is exist - process it [12:35:41]SAM_PROTO_GetFieldsCounters [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 13 00 00 [12:35:41]Write to MH i2c: E2 08 00 1E 0D 80 13 00 00 00 00 00 00 A7 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 62 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 62 00 1E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 9A [12:35: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 AC 97 01 00 0E 04 04 00 64 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 [12:35:41]wFMCommunicate OK [12:35:41]SAM_PROTO_GetFieldsCounters done [12:35:41]requested_item shift.num is exist - process it [12:35:41]requested_item shift.opened is exist - process it [12:35:41]req_shift_opened [12:35:41]FM_GetShiftState [12:35:41]SAM_PROTO_GetShiftState [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 13 01 00 [12:35:41]Write to MH i2c: E2 08 00 1F 0D 80 13 01 00 00 00 00 00 A9 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0E 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0E 00 1F 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9B [12:35:41]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:35:41]wFMCommunicate OK [12:35:41]SAM_PROTO_GetShiftState done [12:35:41]FM_GetShiftState done [12:35:41]req_shift_opened done [12:35:41]requested_item shift.open_date is exist - process it [12:35:41]req_shift_open_date [12:35:41]req_shift_open_date done [12:35:41]produce_requested_data done [12:35:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104364,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:35:41]process_action_free close_receipt [12:35:41]json_value_free [12:35:41]json_value_free done [12:35:41]process_json_proto returns [12:35:41]Send response to host [12:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104364,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:35:41]free response buf [12:35:41]execute_script done [12:35:41]execute_script returns [12:35:41]free content buf [12:35:41]Sock 10.Close socket [12:35:41]Sock 10.Thread stoped [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:22]accept exits with 7 [12:36:22]New connection [12:36:22]New thread 3066449252 created [12:36:22]Thread 3066592612 joined [12:36:22]Waiting for new connection... [12:36:22] Sock 7.Parse request [12:36:22]Sock 7.Check first char [12:36:22]Sock 7.First char is OK [12:36:22]request: POST /json_proto HTTP/1.0 [12:36:22]Method: POST [12:36:22]URL: /json_proto [12:36:22]Method is POST - this is cgi request [12:36:22]url: /json_proto [12:36:22]query_string will be loaded in cgi processing [12:36:22]execute_cgi json_proto POST (null) [12:36:22]execute_cgi path=json_proto method=POST [12:36:22]POST find Content-Length [12:36:22]Host: 172.17.38.133:8080 [12:36:22]Content-Length: 682 [12:36:22]Content-Type: application/json [12:36:22] [12:36:22]POST finish read [12:36:22]Found Content-Length = 682 [12:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673900", "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.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:22]execute_script... [12:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673900", "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.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:22]POST & json_proto [12:36:22]process_json_proto [12:36:22]json parsed OK: [12:36:22]protocol is kg_v1.0 [12:36:22]action value=close_receipt [12:36:22]process_action close_receipt [12:36:22]cmd_close_receipt [12:36:22]MH_GetDate [12:36:22]Write to MH i2c: F0 00 00 20 0D 1C [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: F0 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: F0 09 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: F0 09 00 20 0D 00 47 C5 76 66 BD 8F 7C 64 39 [12:36:22]GetLastDocTimeStamp 1719059738 [12:36:22]current date 1719059783 [12:36:22]FM_GetShiftState [12:36:22]SAM_PROTO_GetShiftState [12:36:22]wFMCommunicate request_size=4 [12:36:22]MH_SAM_APDU [12:36:22]CAPDU: 80 13 01 00 [12:36:22]Write to MH i2c: E2 08 00 21 0D 80 13 01 00 00 00 00 00 AB [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:22]Read from MH i2c: E2 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 0E 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 0E 00 21 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9D [12:36:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:36:22]wFMCommunicate OK [12:36:22]SAM_PROTO_GetShiftState done [12:36:22]FM_GetShiftState done [12:36:22]opened in 1719016176 [12:36:22]opened+sec_in_day 1719102576 [12:36:22]quantity*price = 133065 [12:36:22]sum+1 = 133067 [12:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 98 22.06.2024 12:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104365 ФПД: 146220176098159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123623&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104365&fm=146220176098159&tin=02508201610067®Number=0000000000092785&sum=133000 [12:36:23]StoreToDocumentArchive [12:36:23]shift 356 fd 104365 [12:36:23]save to /storage/0356/doc_00104365 [12:36:23]save last doc name /storage/0356/doc_00104365 to /storage/kkm_last_doc_name [12:36:23]save OK [12:36:23]Clear old archive folders... [12:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:23]tlvbuf is 010082E0 [12:36:23]SAM_PROTO_ClearQueue [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 09 00 00 [12:36:23]Write to MH i2c: E2 08 00 2E 0D 80 09 00 00 00 00 00 00 AD [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_ClearQueue done [12:36:23]KKMCreateOFDPacket [12:36:23]OFDProtocolAddRootSTLVToBuf [12:36:23]FM_MakeSignedData [12:36:23]FM_MakeSignedData [12:36:23]SAM_PROTO_SignData [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 01 02 [12:36:23]Write to MH i2c: E2 08 00 2F 0D 80 0D 01 02 00 00 00 00 B5 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=255 [12:36:23]MH_SAM_APDU [12:36: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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 47 C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 [12:36:23]Write to MH i2c: E2 02 01 30 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 47 C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 00 00 D9 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=10 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 02 02 05 FC 89 A7 C3 6F [12:36:24]Write to MH i2c: E2 0D 00 31 0D 80 0D 02 02 05 00 FC 89 A7 C3 6F 00 00 20 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 03 02 [12:36:24]Write to MH i2c: E2 08 00 32 0D 80 0D 03 02 00 00 00 00 BA [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 32 0D 00 0B 2C CD D9 E0 68 DB 13 90 00 CE [12:36:24]RAPDU: 0B 2C CD D9 E0 68 DB 13 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_SignData done [12:36:24]FM_MakeSignedData done [12:36:24]CreateOFDProtocolMessage [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 11 00 00 [12:36:24]Write to MH i2c: E2 08 00 33 0D 80 11 00 00 00 00 00 00 BA [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 33 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [12:36: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:36:24]wFMCommunicate OK [12:36:24]CreateOFDProtocolMessage done [12:36:24]OFDSenderStorePacket 104365 [12:36:24]StoreOFDPacket docnum=104365 [12:36: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 27 00 07 01 08 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 47 C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 FC 89 A7 C3 6F 0B 2C CD D9 E0 68 DB 13 [12:36:24]CheckFolder [12:36:24]dirname=/storage/ofd_packets [12:36:24]CheckFolder done [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00104365 [12:36:24]NVStorageSaveData ofd_packets/00104365 [12:36:24]File name is /storage/ofd_packets/00104365 [12:36:24]Write 301 bytes [12:36:24]NVStorageSaveData done [12:36:24]OFDSenderStorePacket done [12:36:24]KKMCreateOFDPacket done [12:36:24]NVStorageSaveData kkm_last_timestamp [12:36:24]File name is /storage/kkm_last_timestamp [12:36:24]Write 4 bytes [12:36:24]NVStorageSaveData done [12:36:24]ExternCall_PrintAddStr [12:36:24]wPrintStart [12:36:24]Write to MH i2c: 01 00 00 34 0D 41 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 FF 0F 56 [12:36:24]RasterBufferAndPrint [12:36:24]line Счет N : (1)673900 [12:36:24]line ИНН: 02508201610067 [12:36:24]line Контрольно-Кассовый Чек [12:36:24]line ПРОДАЖА [12:36:24]line ТРК (МРК, ГНК) : 42 [12:36:24]line Товар: 2710124130 [12:36:24]line Аи-92-К-5 [12:36:24]line 20.040 * 66.40 [12:36:24]line = 1330.66 [12:36:24]line НДС 12% НСП 1% [12:36:24]line > о реализуемом товаре [12:36:24]line ОКРУГЛЕНИЕ: -0.66 [12:36:24]line ИТОГО: 1330.00 [12:36:24]line Внесено: 1330.00 [12:36:24]line СДАЧА: 0.00 [12:36:24]line НСП 1% : 11.78 [12:36:24]line НДС 12% : 141.31 [12:36:24]line Наличными: 1330.00 [12:36:24]line Безнал.: 0.00 [12:36:24]line Место: АЗС № 120 "Партнер Нефть" [12:36:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:36:24]line СНО: Общий режим [12:36:24]line Чек 98 22.06.2024 12:36 [12:36:24]line Смена: 356 ФФД: 1.0 [12:36:24]line ЗНМ: 0300000164 [12:36:24]line РНМ: 0000000000092785 [12:36:24]line Версия ККМ: 001 [12:36:24]line ФМ: 0000000000875093 [12:36:24]line ФД: 104365 [12:36:24]line ФПД: 146220176098159 [12:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123623&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104365&fm=146220176098159&tin=02508201610067®Number=0000000000092785&sum=133000 [12:36:24]OFD Sender: Processing packet 104365 [packets to send 17, broken 16] [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00104365 [12:36:24]OFD Sender: To server: pG, [12:36:24]CommunicateWithHost lk.salyk.kg:30040 [12:36:24]ConnectInit lk.salyk.kg [12:36:24]written 0, free lines is 4095 [12:36:24]Connected sock=10 [12:36: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 27 00 07 01 08 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 47 C5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 FC 89 A7 C3 6F 0B 2C CD D9 E0 68 DB 13 [12:36: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 4A 6E 47 00 56 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 AD 97 01 00 F4 03 04 00 C7 6B 76 66 B6 04 01 00 00 9D 98 18 0F FC 61 EB 09 [12:36:25]CommunicateWithHost err = 0 [12:36:25]CheckOFDResponse [12:36:25]1017 (14) - 77093643461234 [12:36:25]1041 (16) - 0000000000875093 [12:36:25]1040 (4) - 104365 [12:36:25]1012 (4) - 22.06.2024 06:14 [12:36:25]1206 (1) - 0 [12:36:25]OFD Sender: Remove packet 104365 [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00104365 [12:36:25]NVStorageDeleteData [12:36:25]Write to MH i2c: 01 00 00 5F 0D 6C [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 DA 0C 59 [12:36:25]RasterBufferAndPrint [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]written 0, free lines is 3297 [12:36:25]MH_Cut [12:36:25]Write to MH i2c: D1 01 00 66 0D 01 45 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 66 0D 00 44 [12:36:25]Write to MH i2c: 01 00 00 67 0D 74 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]OFD Sender: No OFD packet to send [12:36:25]*** Cut start [12:36:25]*** Partial cut [12:36:25]*** CUTSNS_PIN = 1 [12:36:25]*** CUTSNS_PIN = 0 [12:36:26]*** Brake cut motor [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]*** Stop cut motor [12:36:26]*** Cut end [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 FF 0F 89 [12:36:26]process_action close_receipt done [12:36:26]requested_data is exist [12:36:26]produce_requested_data [12:36:26]requested_item fm.sn is exist - process it [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 11 00 00 [12:36:26]Write to MH i2c: E2 08 00 68 0D 80 11 00 00 00 00 00 00 EF [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:26]Read from MH i2c: E2 17 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 68 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [12:36: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:36:26]wFMCommunicate OK [12:36:26]requested_item fd.num is exist - process it [12:36:26]SAM_PROTO_GetFieldsCounters [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 13 00 00 [12:36:26]Write to MH i2c: E2 08 00 69 0D 80 13 00 00 00 00 00 00 F2 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 62 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 62 00 69 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E9 [12:36: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 AD 97 01 00 0E 04 04 00 64 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 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_GetFieldsCounters done [12:36:26]requested_item shift.num is exist - process it [12:36:26]requested_item shift.opened is exist - process it [12:36:26]req_shift_opened [12:36:26]FM_GetShiftState [12:36:26]SAM_PROTO_GetShiftState [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 13 01 00 [12:36:26]Write to MH i2c: E2 08 00 6A 0D 80 13 01 00 00 00 00 00 F4 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0E 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0E 00 6A 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E6 [12:36:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_GetShiftState done [12:36:26]FM_GetShiftState done [12:36:26]req_shift_opened done [12:36:26]requested_item shift.open_date is exist - process it [12:36:26]req_shift_open_date [12:36:26]req_shift_open_date done [12:36:26]produce_requested_data done [12:36:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104365,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:36:26]process_action_free close_receipt [12:36:26]json_value_free [12:36:26]json_value_free done [12:36:26]process_json_proto returns [12:36:26]Send response to host [12:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104365,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:36:26]free response buf [12:36:26]execute_script done [12:36:26]execute_script returns [12:36:26]free content buf [12:36:26]Sock 7.Close socket [12:36:26]Sock 7.Thread stoped [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:02]accept exits with 9 [12:42:02]New connection [12:42:02]New thread 3066592612 created [12:42:02]Thread 3066449252 joined [12:42:02]Waiting for new connection... [12:42:02] Sock 9.Parse request [12:42:02]Sock 9.Check first char [12:42:02]Sock 9.First char is OK [12:42:02]request: POST /json_proto HTTP/1.0 [12:42:02]Method: POST [12:42:02]URL: /json_proto [12:42:02]Method is POST - this is cgi request [12:42:02]url: /json_proto [12:42:02]query_string will be loaded in cgi processing [12:42:02]execute_cgi json_proto POST (null) [12:42:02]execute_cgi path=json_proto method=POST [12:42:02]POST find Content-Length [12:42:02]Host: 172.17.38.133:8080 [12:42:02]Content-Length: 682 [12:42:02]Content-Type: application/json [12:42:02] [12:42:02]POST finish read [12:42:02]Found Content-Length = 682 [12:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673901", "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" : 16.920, "sum" : 1250.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:02]execute_script... [12:42: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)673901", "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" : 16.920, "sum" : 1250.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:02]POST & json_proto [12:42:02]process_json_proto [12:42:02]json parsed OK: [12:42:02]protocol is kg_v1.0 [12:42:02]action value=close_receipt [12:42:02]process_action close_receipt [12:42:02]cmd_close_receipt [12:42:02]MH_GetDate [12:42:02]Write to MH i2c: F0 00 00 6B 0D 67 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: F0 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: F0 09 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: F0 09 00 6B 0D 00 9B C6 76 66 BD 8F 7C 64 D9 [12:42:02]GetLastDocTimeStamp 1719059783 [12:42:02]current date 1719060123 [12:42:02]FM_GetShiftState [12:42:02]SAM_PROTO_GetShiftState [12:42:02]wFMCommunicate request_size=4 [12:42:02]MH_SAM_APDU [12:42:02]CAPDU: 80 13 01 00 [12:42:02]Write to MH i2c: E2 08 00 6C 0D 80 13 01 00 00 00 00 00 F6 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:02]Read from MH i2c: E2 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 0E 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 0E 00 6C 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E8 [12:42:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:42:02]wFMCommunicate OK [12:42:02]SAM_PROTO_GetShiftState done [12:42:02]FM_GetShiftState done [12:42:02]opened in 1719016176 [12:42:02]opened+sec_in_day 1719102576 [12:42:02]quantity*price = 125038 [12:42:02]sum+1 = 125040 [12:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.06 НДС 12% : 132.78 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 99 22.06.2024 12:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104366 ФПД: 235310057593984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124203&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104366&fm=235310057593984&tin=02508201610067®Number=0000000000092785&sum=125000 [12:42:03]StoreToDocumentArchive [12:42:03]shift 356 fd 104366 [12:42:03]save to /storage/0356/doc_00104366 [12:42:03]save last doc name /storage/0356/doc_00104366 to /storage/kkm_last_doc_name [12:42:03]save OK [12:42:03]Clear old archive folders... [12:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:03]tlvbuf is 00FCDA90 [12:42:03]SAM_PROTO_ClearQueue [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 09 00 00 [12:42:03]Write to MH i2c: E2 08 00 79 0D 80 09 00 00 00 00 00 00 F8 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [12:42:03]RAPDU: 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_ClearQueue done [12:42:03]KKMCreateOFDPacket [12:42:03]OFDProtocolAddRootSTLVToBuf [12:42:03]FM_MakeSignedData [12:42:03]FM_MakeSignedData [12:42:03]SAM_PROTO_SignData [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 0D 01 02 [12:42:03]Write to MH i2c: E2 08 00 7A 0D 80 0D 01 02 00 00 00 00 00 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [12:42:03]RAPDU: 90 00 [12:42:03]wFMCommunicate OK [12:42:03]wFMCommunicate request_size=255 [12:42:03]MH_SAM_APDU [12:42: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 18 42 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9B C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 [12:42:03]Write to MH i2c: E2 02 01 7B 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 42 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9B C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 00 00 AA [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [12:42:03]RAPDU: 90 00 [12:42:03]wFMCommunicate OK [12:42:03]wFMCommunicate request_size=10 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 0D 02 02 05 03 64 65 1C 80 [12:42:03]Write to MH i2c: E2 0D 00 7C 0D 80 0D 02 02 05 00 03 64 65 1C 80 00 00 75 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [12:42:03]RAPDU: 90 00 [12:42:03]wFMCommunicate OK [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 0D 03 02 [12:42:03]Write to MH i2c: E2 08 00 7D 0D 80 0D 03 02 00 00 00 00 05 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0B 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0B 00 7D 0D 00 B4 94 88 99 22 46 62 C4 90 00 FD [12:42:03]RAPDU: B4 94 88 99 22 46 62 C4 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_SignData done [12:42:03]FM_MakeSignedData done [12:42:03]CreateOFDProtocolMessage [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 11 00 00 [12:42:03]Write to MH i2c: E2 08 00 7E 0D 80 11 00 00 00 00 00 00 05 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 7E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [12:42:04]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:04]wFMCommunicate OK [12:42:04]CreateOFDProtocolMessage done [12:42:04]OFDSenderStorePacket 104366 [12:42:04]StoreOFDPacket docnum=104366 [12:42: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 C3 4B 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 42 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9B C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 03 64 65 1C 80 B4 94 88 99 22 46 62 C4 [12:42:04]CheckFolder [12:42:04]dirname=/storage/ofd_packets [12:42:04]CheckFolder done [12:42:04]ProducePacketName [12:42:04]name=ofd_packets/00104366 [12:42:04]NVStorageSaveData ofd_packets/00104366 [12:42:04]File name is /storage/ofd_packets/00104366 [12:42:04]Write 301 bytes [12:42:04]NVStorageSaveData done [12:42:04]OFDSenderStorePacket done [12:42:04]KKMCreateOFDPacket done [12:42:04]NVStorageSaveData kkm_last_timestamp [12:42:04]File name is /storage/kkm_last_timestamp [12:42:04]Write 4 bytes [12:42:04]NVStorageSaveData done [12:42:04]ExternCall_PrintAddStr [12:42:04]wPrintStart [12:42:04]Write to MH i2c: 01 00 00 7F 0D 8C [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 7F 0D 00 00 00 00 00 FF 0F A1 [12:42:04]RasterBufferAndPrint [12:42:04]line Счет N : (1)673901 [12:42:04]line ИНН: 02508201610067 [12:42:04]line Контрольно-Кассовый Чек [12:42:04]line ПРОДАЖА [12:42:04]line ТРК (МРК, ГНК) : 31 [12:42:04]line Товар: 2710124500 [12:42:04]line Аи-95-К-5 [12:42:04]line 16.920 * 73.90 [12:42:04]line = 1250.39 [12:42:04]line НДС 12% НСП 1% [12:42:04]line > о реализуемом товаре [12:42:04]line ОКРУГЛЕНИЕ: -0.39 [12:42:04]line ИТОГО: 1250.00 [12:42:04]line Внесено: 1250.00 [12:42:04]line СДАЧА: 0.00 [12:42:04]line НСП 1% : 11.06 [12:42:04]line НДС 12% : 132.78 [12:42:04]line Наличными: 1250.00 [12:42:04]line Безнал.: 0.00 [12:42:04]line Место: АЗС № 120 "Партнер Нефть" [12:42:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:42:04]line СНО: Общий режим [12:42:04]line Чек 99 22.06.2024 12:42 [12:42:04]line Смена: 356 ФФД: 1.0 [12:42:04]line ЗНМ: 0300000164 [12:42:04]line РНМ: 0000000000092785 [12:42:04]line Версия ККМ: 001 [12:42:04]line ФМ: 0000000000875093 [12:42:04]line ФД: 104366 [12:42:04]line ФПД: 235310057593984 [12:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124203&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104366&fm=235310057593984&tin=02508201610067®Number=0000000000092785&sum=125000 [12:42:04]OFD Sender: Processing packet 104366 [packets to send 17, broken 16] [12:42:04]ProducePacketName [12:42:04]name=ofd_packets/00104366 [12:42:04]OFD Sender: To server: pG, [12:42:04]CommunicateWithHost lk.salyk.kg:30040 [12:42:04]ConnectInit lk.salyk.kg [12:42:04]written 0, free lines is 4095 [12:42:04]Connected sock=10 [12:42: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 C3 4B 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 42 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9B C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 03 64 65 1C 80 B4 94 88 99 22 46 62 C4 [12:42: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 F6 A6 47 00 12 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 AE 97 01 00 F4 03 04 00 1A 6D 76 66 B6 04 01 00 00 5B EA 27 EF 2A 86 8F 56 [12:42:04]CommunicateWithHost err = 0 [12:42:04]CheckOFDResponse [12:42:04]1017 (14) - 77093643461234 [12:42:04]1041 (16) - 0000000000875093 [12:42:04]1040 (4) - 104366 [12:42:04]1012 (4) - 22.06.2024 06:20 [12:42:04]1206 (1) - 0 [12:42:04]OFD Sender: Remove packet 104366 [12:42:04]ProducePacketName [12:42:04]name=ofd_packets/00104366 [12:42:04]NVStorageDeleteData [12:42:04]Write to MH i2c: 01 00 00 AA 0D B7 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 E0 0C AA [12:42:04]RasterBufferAndPrint [12:42:04]line [12:42:04]line [12:42:04]line [12:42:04]line [12:42:04]line [12:42:04]written 0, free lines is 3302 [12:42:04]MH_Cut [12:42:04]Write to MH i2c: D1 01 00 B1 0D 01 90 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: D1 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: D1 01 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: D1 01 00 B1 0D 00 8F [12:42:04]Write to MH i2c: 01 00 00 B2 0D BF [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:05]OFD Sender: No OFD packet to send [12:42:05]*** Cut start [12:42:05]*** Partial cut [12:42:05]*** CUTSNS_PIN = 1 [12:42:05]*** CUTSNS_PIN = 0 [12:42:05]*** Brake cut motor [12:42:06]Read from MH i2c: 01 [12:42:06]MH_I2C_Read... [12:42:06]*** Stop cut motor [12:42:06]*** Cut end [12:42:06]Read from MH i2c: 01 07 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: 01 07 00 B2 0D 00 00 00 00 00 FF 0F D4 [12:42:06]process_action close_receipt done [12:42:06]requested_data is exist [12:42:06]produce_requested_data [12:42:06]requested_item fm.sn is exist - process it [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 11 00 00 [12:42:06]Write to MH i2c: E2 08 00 B3 0D 80 11 00 00 00 00 00 00 3A [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 17 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 17 00 B3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [12:42: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:42:06]wFMCommunicate OK [12:42:06]requested_item fd.num is exist - process it [12:42:06]SAM_PROTO_GetFieldsCounters [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 13 00 00 [12:42:06]Write to MH i2c: E2 08 00 B4 0D 80 13 00 00 00 00 00 00 3D [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 62 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 62 00 B4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 38 [12:42: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 AE 97 01 00 0E 04 04 00 64 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 [12:42:06]wFMCommunicate OK [12:42:06]SAM_PROTO_GetFieldsCounters done [12:42:06]requested_item shift.num is exist - process it [12:42:06]requested_item shift.opened is exist - process it [12:42:06]req_shift_opened [12:42:06]FM_GetShiftState [12:42:06]SAM_PROTO_GetShiftState [12:42:06]wFMCommunicate request_size=4 [12:42:06]MH_SAM_APDU [12:42:06]CAPDU: 80 13 01 00 [12:42:06]Write to MH i2c: E2 08 00 B5 0D 80 13 01 00 00 00 00 00 3F [12:42:06]Write i2c OK [12:42:06]MH_I2C_Read... [12:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:06]Read from MH i2c: E2 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 0E 00 [12:42:06]MH_I2C_Read... [12:42:06]Read from MH i2c: E2 0E 00 B5 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 31 [12:42:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:42:06]wFMCommunicate OK [12:42:06]SAM_PROTO_GetShiftState done [12:42:06]FM_GetShiftState done [12:42:06]req_shift_opened done [12:42:06]requested_item shift.open_date is exist - process it [12:42:06]req_shift_open_date [12:42:06]req_shift_open_date done [12:42:06]produce_requested_data done [12:42:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104366,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:42:06]process_action_free close_receipt [12:42:06]json_value_free [12:42:06]json_value_free done [12:42:06]process_json_proto returns [12:42:06]Send response to host [12:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104366,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:42:06]free response buf [12:42:06]execute_script done [12:42:06]execute_script returns [12:42:06]free content buf [12:42:06]Sock 9.Close socket [12:42:06]Sock 9.Thread stoped [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:42:56]accept exits with 7 [12:42:56]New connection [12:42:56]New thread 3066449252 created [12:42:56]Thread 3066592612 joined [12:42:56]Waiting for new connection... [12:42:56] Sock 7.Parse request [12:42:56]Sock 7.Check first char [12:42:56]Sock 7.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: 819 [12:42:56]Content-Type: application/json [12:42:56] [12:42:56]POST finish read [12:42:56]Found Content-Length = 819 [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)673902", "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" ] } } [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)673902", "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" ] } } [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 B6 0D B2 [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 B6 0D 00 D1 C6 76 66 BD 8F 7C 64 5A [12:42:56]GetLastDocTimeStamp 1719060123 [12:42:56]current date 1719060177 [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 B7 0D 80 13 01 00 00 00 00 00 41 [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 B7 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 33 [12:42:56]RAPDU: 09 00 01 F0 1A 76 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 1719016176 [12:42:56]opened+sec_in_day 1719102576 [12:42:56]quantity*price = 100064 [12:42:56]sum+1 = 100066 [12:42:56]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 СНО: Общий режим Чек 100 22.06.2024 12:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104367 ФПД: 237834332994160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104367&fm=237834332994160&tin=02508201610067®Number=0000000000092785&sum=100065 [12:42:57]StoreToDocumentArchive [12:42:57]shift 356 fd 104367 [12:42:57]save to /storage/0356/doc_00104367 [12:42:57]save last doc name /storage/0356/doc_00104367 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=251 [12:42:57]tlvbuf is 00FC0EA0 [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 C4 0D 80 09 00 00 00 00 00 00 43 [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 C4 0D 00 90 00 45 [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 C5 0D 80 0D 01 02 00 00 00 00 4B [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 C5 0D 00 90 00 46 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 D1 C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 [12:42:57]Write to MH i2c: E2 02 01 C6 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 D1 C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 00 00 32 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 03 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [12:42:58]RAPDU: 90 00 [12:42:58]wFMCommunicate OK [12:42:58]wFMCommunicate request_size=10 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 0D 02 02 05 4F 1E EE FA 70 [12:42:58]Write to MH i2c: E2 0D 00 C7 0D 80 0D 02 02 05 00 4F 1E EE FA 70 00 00 1D [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 03 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [12:42:58]RAPDU: 90 00 [12:42:58]wFMCommunicate OK [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 0D 03 02 [12:42:58]Write to MH i2c: E2 08 00 C8 0D 80 0D 03 02 00 00 00 00 50 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 0B 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 0B 00 C8 0D 00 E1 83 3E AE E2 B2 D8 15 90 00 22 [12:42:58]RAPDU: E1 83 3E AE E2 B2 D8 15 90 00 [12:42:58]wFMCommunicate OK [12:42:58]SAM_PROTO_SignData done [12:42:58]FM_MakeSignedData done [12:42:58]CreateOFDProtocolMessage [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 11 00 00 [12:42:58]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 17 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [12:42: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:42:58]wFMCommunicate OK [12:42:58]CreateOFDProtocolMessage done [12:42:58]OFDSenderStorePacket 104367 [12:42:58]StoreOFDPacket docnum=104367 [12:42: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 54 25 07 01 61 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 64 00 00 00 F4 03 04 00 D1 C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 4F 1E EE FA 70 E1 83 3E AE E2 B2 D8 15 [12:42:58]CheckFolder [12:42:58]dirname=/storage/ofd_packets [12:42:58]CheckFolder done [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00104367 [12:42:58]NVStorageSaveData ofd_packets/00104367 [12:42:58]File name is /storage/ofd_packets/00104367 [12:42:58]Write 301 bytes [12:42:58]NVStorageSaveData done [12:42:58]OFDSenderStorePacket done [12:42:58]KKMCreateOFDPacket done [12:42:58]NVStorageSaveData kkm_last_timestamp [12:42:58]File name is /storage/kkm_last_timestamp [12:42:58]Write 4 bytes [12:42:58]NVStorageSaveData done [12:42:58]ExternCall_PrintAddStr [12:42:58]wPrintStart [12:42:58]Write to MH i2c: 01 00 00 CA 0D D7 [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 CA 0D 00 00 00 00 00 FF 0F EC [12:42:58]RasterBufferAndPrint [12:42:58]line Счет N : (1)673902 [12:42:58]line ИНН: 02508201610067 [12:42:58]line Контрольно-Кассовый Чек [12:42:58]line ПРОДАЖА [12:42:58]line ТРК (МРК, ГНК) : 42 [12:42:58]line Товар: 2710124130 [12:42:58]line Аи-92-К-5 [12:42:58]line 15.070 * 66.40 [12:42:58]line = 1000.65 [12:42:58]line НДС 12% НСП 1% [12:42:58]line > о реализуемом товаре [12:42:58]line ИТОГО: 1000.65 [12:42:58]line НСП 1% : 8.85 [12:42:58]line НДС 12% : 106.26 [12:42:58]line Наличными: 0.00 [12:42:58]line Безнал.: 1000.65 [12:42:58]line Место: АЗС № 120 "Партнер Нефть" [12:42:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:42:58]line СНО: Общий режим [12:42:58]line Чек 100 22.06.2024 12:42 [12:42:58]line Смена: 356 ФФД: 1.0 [12:42:58]line ЗНМ: 0300000164 [12:42:58]line РНМ: 0000000000092785 [12:42:58]line Версия ККМ: 001 [12:42:58]line Платежная система: Бакай Банк [12:42:58]line ФМ: 0000000000875093 [12:42:58]line ФД: 104367 [12:42:58]line ФПД: 237834332994160 [12:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104367&fm=237834332994160&tin=02508201610067®Number=0000000000092785&sum=100065 [12:42:58]OFD Sender: Processing packet 104367 [packets to send 17, broken 16] [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00104367 [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]written 0, free lines is 4095 [12:42:58]Connected sock=9 [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 0F 01 00 00 54 25 07 01 61 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 64 00 00 00 F4 03 04 00 D1 C6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 4F 1E EE FA 70 E1 83 3E AE E2 B2 D8 15 [12:42: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 DB 99 47 00 CA 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 AF 97 01 00 F4 03 04 00 51 6D 76 66 B6 04 01 00 00 12 DB 6C C4 76 C3 DB 4A [12:42:59]CommunicateWithHost err = 0 [12:42:59]CheckOFDResponse [12:42:59]1017 (14) - 77093643461234 [12:42:59]1041 (16) - 0000000000875093 [12:42:59]1040 (4) - 104367 [12:42:59]1012 (4) - 22.06.2024 06:21 [12:42:59]1206 (1) - 0 [12:42:59]OFD Sender: Remove packet 104367 [12:42:59]ProducePacketName [12:42:59]name=ofd_packets/00104367 [12:42:59]NVStorageDeleteData [12:42:59]Write to MH i2c: 01 00 00 F4 0D 01 [12:42:59]Write i2c OK [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: 01 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: 01 07 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 F6 0C 0A [12:42:59]RasterBufferAndPrint [12:42:59]line [12:42:59]line [12:42:59]line [12:42:59]line [12:42:59]line [12:42:59]written 0, free lines is 3326 [12:42:59]MH_Cut [12:42:59]Write to MH i2c: D1 01 00 FB 0D 01 DA [12:42:59]Write i2c OK [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: D1 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: D1 01 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: D1 01 00 FB 0D 00 D9 [12:42:59]Write to MH i2c: 01 00 00 FC 0D 09 [12:42:59]Write i2c OK [12:42:59]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:43:00]*** 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 FC 0D 00 00 00 00 00 FF 0F 1E [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 FD 0D 80 11 00 00 00 00 00 00 84 [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 FD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [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 FE 0D 80 13 00 00 00 00 00 00 87 [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 FE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 86 [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 AF 97 01 00 0E 04 04 00 64 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 [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 FF 0D 80 13 01 00 00 00 00 00 89 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 [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 0E 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 FF 0D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [12:43:00]RAPDU: 09 00 01 F0 1A 76 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":104367,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [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":104367,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [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 7.Close socket [12:43:00]Sock 7.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]accept exits with 10 [12:44:49]New connection [12:44:49]New thread 3066592612 created [12:44:49]Thread 3066449252 joined [12:44:49]Waiting for new connection... [12:44:49] Sock 10.Parse request [12:44:49]Sock 10.Check first char [12:44:49]Sock 10.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: 1168 [12:44:49]Content-Type: application/json [12:44:49] [12:44:49]POST finish read [12:44:49]Found Content-Length = 1168 [12:44:49]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673904\u000A22.06.2024 12:21\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30101671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673904\u000A22.06.2024 12:21\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30101671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [12:44:49]process_action print_text [12:44:49]cmd_print_text [12:44:49]ExternCall_PrintAddStr [12:44:49]wPrintStart [12:44:49]Write to MH i2c: 01 00 00 00 0E 0E [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 00 0E 00 00 00 00 00 FF 0F 23 [12:44:49]RasterBufferAndPrint [12:44:49]line *****ТОВАРНЫЙ ЧЕК***** [12:44:49]line АЗС 120 [12:44:49]line Партнер нефть [12:44:49]line 02508201610067 [12:44:49]line Кассир : Байбугуева Г. [12:44:49]line Счет N : (1)673904 [12:44:49]line 22.06.2024 12:21 [12:44:49]line ПРОДАЖА [12:44:49]line ТРК (МРК, ГНК): 32 [12:44:49]line Вид ГСМ : 2710124130 [12:44:49]line Аи-92-К-5 [12:44:49]line 10.000 x 66.40 [12:44:49]line ИТОГ: 664.00 [12:44:49]line Тип оплаты: Талоны: ТК ГПНА Online [12:44:49]line 30101671 [12:44:49]line ______________________ [12:44:49]line (подпись) [12:44:49]written 0, free lines is 4095 [12:44:49]Write to MH i2c: 01 00 00 14 0E 22 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 10 0E 47 [12:44:49]RasterBufferAndPrint [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]written 0, free lines is 3602 [12:44:49]MH_Cut [12:44:49]Write to MH i2c: D1 01 00 1B 0E 01 FB [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: D1 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: D1 01 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: D1 01 00 1B 0E 00 FA [12:44:49]Write to MH i2c: 01 00 00 1C 0E 2A [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]OFD Sender: No OFD packet to send [12:44:50]*** Cut start [12:44:50]*** Partial cut [12:44:50]*** CUTSNS_PIN = 1 [12:44:50]*** CUTSNS_PIN = 0 [12:44:50]*** Brake cut motor [12:44:50]Read from MH i2c: 01 [12:44:50]MH_I2C_Read... [12:44:50]*** Stop cut motor [12:44:50]*** Cut end [12:44:50]Read from MH i2c: 01 07 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 FF 0F 3F [12:44:50]process_action print_text done [12:44:50]requested_data is exist [12:44:50]produce_requested_data [12:44:50]requested_item fm.sn is exist - process it [12:44:50]wFMCommunicate request_size=4 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 11 00 00 [12:44:50]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:50]Read from MH i2c: E2 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 17 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [12:44:50]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:50]wFMCommunicate OK [12:44:50]requested_item fd.num is exist - process it [12:44:50]SAM_PROTO_GetFieldsCounters [12:44:50]wFMCommunicate request_size=4 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 13 00 00 [12:44:50]Write to MH i2c: E2 08 00 1E 0E 80 13 00 00 00 00 00 00 A8 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:50]Read from MH i2c: E2 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 62 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 62 00 1E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A7 [12:44: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 AF 97 01 00 0E 04 04 00 64 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 [12:44:50]wFMCommunicate OK [12:44:50]SAM_PROTO_GetFieldsCounters done [12:44:50]requested_item shift.num is exist - process it [12:44:50]requested_item shift.opened is exist - process it [12:44:50]req_shift_opened [12:44:50]FM_GetShiftState [12:44:50]SAM_PROTO_GetShiftState [12:44:50]wFMCommunicate request_size=4 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 13 01 00 [12:44:50]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:50]Read from MH i2c: E2 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 0E 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9C [12:44:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:44:50]wFMCommunicate OK [12:44:50]SAM_PROTO_GetShiftState done [12:44:50]FM_GetShiftState done [12:44:50]req_shift_opened done [12:44:50]requested_item shift.open_date is exist - process it [12:44:50]req_shift_open_date [12:44:50]req_shift_open_date done [12:44:50]produce_requested_data done [12:44:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104367,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:44:50]process_action_free print_text [12:44:50]json_value_free [12:44:50]json_value_free done [12:44:50]process_json_proto returns [12:44:50]Send response to host [12:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104367,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:44:50]free response buf [12:44:50]execute_script done [12:44:50]execute_script returns [12:44:50]free content buf [12:44:50]Sock 10.Close socket [12:44:50]Sock 10.Thread stoped [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:44]accept exits with 7 [12:45:44]New connection [12:45:44]New thread 3066449252 created [12:45:44]Thread 3066592612 joined [12:45:44]Waiting for new connection... [12:45:44] Sock 7.Parse request [12:45:44]Sock 7.Check first char [12:45:44]Sock 7.First char is OK [12:45:44]request: POST /json_proto HTTP/1.0 [12:45:44]Method: POST [12:45:44]URL: /json_proto [12:45:44]Method is POST - this is cgi request [12:45:44]url: /json_proto [12:45:44]query_string will be loaded in cgi processing [12:45:44]execute_cgi json_proto POST (null) [12:45:44]execute_cgi path=json_proto method=POST [12:45:44]POST find Content-Length [12:45:44]Host: 172.17.38.133:8080 [12:45:44]Content-Length: 677 [12:45:44]Content-Type: application/json [12:45:44] [12:45:44]POST finish read [12:45:44]Found Content-Length = 677 [12:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673905", "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" : 6.770, "sum" : 500.30, "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:45:44]execute_script... [12:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673905", "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" : 6.770, "sum" : 500.30, "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:45:44]POST & json_proto [12:45:44]process_json_proto [12:45:44]json parsed OK: [12:45:44]protocol is kg_v1.0 [12:45:44]action value=close_receipt [12:45:44]process_action close_receipt [12:45:44]cmd_close_receipt [12:45:44]MH_GetDate [12:45:44]Write to MH i2c: F0 00 00 20 0E 1D [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 09 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 09 00 20 0E 00 79 C7 76 66 BD 8F 7C 64 6E [12:45:44]GetLastDocTimeStamp 1719060177 [12:45:44]current date 1719060345 [12:45:44]FM_GetShiftState [12:45:44]SAM_PROTO_GetShiftState [12:45:44]wFMCommunicate request_size=4 [12:45:44]MH_SAM_APDU [12:45:44]CAPDU: 80 13 01 00 [12:45:44]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:44]Read from MH i2c: E2 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: E2 0E 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9E [12:45:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:45:44]wFMCommunicate OK [12:45:44]SAM_PROTO_GetShiftState done [12:45:44]FM_GetShiftState done [12:45:44]opened in 1719016176 [12:45:44]opened+sec_in_day 1719102576 [12:45:44]quantity*price = 50030 [12:45:44]sum+1 = 50031 [12:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 22.06.2024 12:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104368 ФПД: 235917821878775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124546&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104368&fm=235917821878775&tin=02508201610067®Number=0000000000092785&sum=50000 [12:45:45]StoreToDocumentArchive [12:45:45]shift 356 fd 104368 [12:45:45]save to /storage/0356/doc_00104368 [12:45:45]save last doc name /storage/0356/doc_00104368 to /storage/kkm_last_doc_name [12:45:45]save OK [12:45:45]Clear old archive folders... [12:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:45]tlvbuf is 00F92CA0 [12:45:45]SAM_PROTO_ClearQueue [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 09 00 00 [12:45:45]Write to MH i2c: E2 08 00 2E 0E 80 09 00 00 00 00 00 00 AE [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_ClearQueue done [12:45:45]KKMCreateOFDPacket [12:45:45]OFDProtocolAddRootSTLVToBuf [12:45:45]FM_MakeSignedData [12:45:45]FM_MakeSignedData [12:45:45]SAM_PROTO_SignData [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 01 02 [12:45:45]Write to MH i2c: E2 08 00 2F 0E 80 0D 01 02 00 00 00 00 B6 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=255 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 7A C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 [12:45:46]Write to MH i2c: E2 02 01 30 0E 80 0D 02 02 FA 00 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 7A C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 00 00 3D [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [12:45:46]RAPDU: 90 00 [12:45:46]wFMCommunicate OK [12:45:46]wFMCommunicate request_size=10 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 0D 02 02 05 90 E5 F8 21 F7 [12:45:46]Write to MH i2c: E2 0D 00 31 0E 80 0D 02 02 05 00 90 E5 F8 21 F7 00 00 48 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [12:45:46]RAPDU: 90 00 [12:45:46]wFMCommunicate OK [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 0D 03 02 [12:45:46]Write to MH i2c: E2 08 00 32 0E 80 0D 03 02 00 00 00 00 BB [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 0B 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 0B 00 32 0E 00 F5 EE 3D DF 60 85 AB 36 90 00 81 [12:45:46]RAPDU: F5 EE 3D DF 60 85 AB 36 90 00 [12:45:46]wFMCommunicate OK [12:45:46]SAM_PROTO_SignData done [12:45:46]FM_MakeSignedData done [12:45:46]CreateOFDProtocolMessage [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 11 00 00 [12:45:46]Write to MH i2c: E2 08 00 33 0E 80 11 00 00 00 00 00 00 BB [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 17 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 17 00 33 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [12:45: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:45:46]wFMCommunicate OK [12:45:46]CreateOFDProtocolMessage done [12:45:46]OFDSenderStorePacket 104368 [12:45:46]StoreOFDPacket docnum=104368 [12:45: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 BC 13 07 01 49 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 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 7A C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 90 E5 F8 21 F7 F5 EE 3D DF 60 85 AB 36 [12:45:46]CheckFolder [12:45:46]dirname=/storage/ofd_packets [12:45:46]CheckFolder done [12:45:46]ProducePacketName [12:45:46]name=ofd_packets/00104368 [12:45:46]NVStorageSaveData ofd_packets/00104368 [12:45:46]File name is /storage/ofd_packets/00104368 [12:45:46]Write 301 bytes [12:45:46]NVStorageSaveData done [12:45:46]OFDSenderStorePacket done [12:45:46]KKMCreateOFDPacket done [12:45:46]NVStorageSaveData kkm_last_timestamp [12:45:46]File name is /storage/kkm_last_timestamp [12:45:46]Write 4 bytes [12:45:46]NVStorageSaveData done [12:45:46]ExternCall_PrintAddStr [12:45:46]wPrintStart [12:45:46]Write to MH i2c: 01 00 00 34 0E 42 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [12:45:46]RasterBufferAndPrint [12:45:46]line Счет N : (1)673905 [12:45:46]line ИНН: 02508201610067 [12:45:46]line Контрольно-Кассовый Чек [12:45:46]line ПРОДАЖА [12:45:46]line ТРК (МРК, ГНК) : 41 [12:45:46]line Товар: 2710124500 [12:45:46]line Аи-95-К-5 [12:45:46]line 6.770 * 73.90 [12:45:46]line = 500.30 [12:45:46]line НДС 12% НСП 1% [12:45:46]line > о реализуемом товаре [12:45:46]line ОКРУГЛЕНИЕ: -0.30 [12:45:46]line ИТОГО: 500.00 [12:45:46]line Внесено: 500.00 [12:45:46]line СДАЧА: 0.00 [12:45:46]line НСП 1% : 4.43 [12:45:46]line НДС 12% : 53.13 [12:45:46]line Наличными: 500.00 [12:45:46]line Безнал.: 0.00 [12:45:46]line Место: АЗС № 120 "Партнер Нефть" [12:45:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:45:46]line СНО: Общий режим [12:45:46]line Чек 101 22.06.2024 12:45 [12:45:46]line Смена: 356 ФФД: 1.0 [12:45:46]line ЗНМ: 0300000164 [12:45:46]line РНМ: 0000000000092785 [12:45:46]line Версия ККМ: 001 [12:45:46]line ФМ: 0000000000875093 [12:45:46]line ФД: 104368 [12:45:46]line ФПД: 235917821878775 [12:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124546&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104368&fm=235917821878775&tin=02508201610067®Number=0000000000092785&sum=50000 [12:45:46]OFD Sender: Processing packet 104368 [packets to send 17, broken 16] [12:45:46]ProducePacketName [12:45:46]name=ofd_packets/00104368 [12:45:46]OFD Sender: To server: pG, [12:45:46]CommunicateWithHost lk.salyk.kg:30040 [12:45:46]ConnectInit lk.salyk.kg [12:45:46]written 0, free lines is 4095 [12:45:46]Connected sock=10 [12:45: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 BC 13 07 01 49 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 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 7A C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D6 90 E5 F8 21 F7 F5 EE 3D DF 60 85 AB 36 [12:45: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 E2 D8 47 00 2A 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 B0 97 01 00 F4 03 04 00 F9 6D 76 66 B6 04 01 00 00 C9 C6 48 EA 24 5F C4 52 [12:45:47]CommunicateWithHost err = 0 [12:45:47]CheckOFDResponse [12:45:47]1017 (14) - 77093643461234 [12:45:47]1041 (16) - 0000000000875093 [12:45:47]1040 (4) - 104368 [12:45:47]1012 (4) - 22.06.2024 06:23 [12:45:47]1206 (1) - 0 [12:45:47]OFD Sender: Remove packet 104368 [12:45:47]ProducePacketName [12:45:47]name=ofd_packets/00104368 [12:45:47]NVStorageDeleteData [12:45:47]Write to MH i2c: 01 00 00 5F 0E 6D [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 07 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 CE 0C 4E [12:45:47]RasterBufferAndPrint [12:45:47]line [12:45:47]line [12:45:47]line [12:45:47]line [12:45:47]line [12:45:47]written 0, free lines is 3282 [12:45:47]MH_Cut [12:45:47]Write to MH i2c: D1 01 00 66 0E 01 46 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: D1 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: D1 01 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: D1 01 00 66 0E 00 45 [12:45:47]Write to MH i2c: 01 00 00 67 0E 75 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]OFD Sender: No OFD packet to send [12:45:47]*** Cut start [12:45:47]*** Partial cut [12:45:47]*** CUTSNS_PIN = 1 [12:45:48]*** CUTSNS_PIN = 0 [12:45:48]*** Brake cut motor [12:45:48]Read from MH i2c: 01 [12:45:48]MH_I2C_Read... [12:45:48]*** Stop cut motor [12:45:48]*** Cut end [12:45:48]Read from MH i2c: 01 07 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 FF 0F 8A [12:45:48]process_action close_receipt done [12:45:48]requested_data is exist [12:45:48]produce_requested_data [12:45:48]requested_item fm.sn is exist - process it [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 11 00 00 [12:45:48]Write to MH i2c: E2 08 00 68 0E 80 11 00 00 00 00 00 00 F0 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 68 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [12:45: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:45:48]wFMCommunicate OK [12:45:48]requested_item fd.num is exist - process it [12:45:48]SAM_PROTO_GetFieldsCounters [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 00 00 [12:45:48]Write to MH i2c: E2 08 00 69 0E 80 13 00 00 00 00 00 00 F3 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 69 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F6 [12:45: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 B0 97 01 00 0E 04 04 00 64 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 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetFieldsCounters done [12:45:48]requested_item shift.num is exist - process it [12:45:48]requested_item shift.opened is exist - process it [12:45:48]req_shift_opened [12:45:48]FM_GetShiftState [12:45:48]SAM_PROTO_GetShiftState [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 01 00 [12:45:48]Write to MH i2c: E2 08 00 6A 0E 80 13 01 00 00 00 00 00 F5 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 6A 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E7 [12:45:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetShiftState done [12:45:48]FM_GetShiftState done [12:45:48]req_shift_opened done [12:45:48]requested_item shift.open_date is exist - process it [12:45:48]req_shift_open_date [12:45:48]req_shift_open_date done [12:45:48]produce_requested_data done [12:45:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104368,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:45:48]process_action_free close_receipt [12:45:48]json_value_free [12:45:48]json_value_free done [12:45:48]process_json_proto returns [12:45:48]Send response to host [12:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104368,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:45:48]free response buf [12:45:48]execute_script done [12:45:48]execute_script returns [12:45:48]free content buf [12:45:48]Sock 7.Close socket [12:45:48]Sock 7.Thread stoped [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:46:58]accept exits with 9 [12:46:58]New connection [12:46:58]New thread 3066592612 created [12:46:58]Thread 3066449252 joined [12:46:58]Waiting for new connection... [12:46:58] Sock 9.Parse request [12:46:58]Sock 9.Check first char [12:46:58]Sock 9.First char is OK [12:46:58]request: POST /json_proto HTTP/1.0 [12:46:58]Method: POST [12:46:58]URL: /json_proto [12:46:58]Method is POST - this is cgi request [12:46:58]url: /json_proto [12:46:58]query_string will be loaded in cgi processing [12:46:58]execute_cgi json_proto POST (null) [12:46:58]execute_cgi path=json_proto method=POST [12:46:58]POST find Content-Length [12:46:58]Host: 172.17.38.133:8080 [12:46:58]Content-Length: 661 [12:46:58]Content-Type: application/json [12:46:58] [12:46:58]POST finish read [12:46:58]Found Content-Length = 661 [12:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673908", "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 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:58]execute_script... [12:46: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)673908", "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 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:58]POST & json_proto [12:46:58]process_json_proto [12:46:58]json parsed OK: [12:46:58]protocol is kg_v1.0 [12:46:58]action value=close_receipt [12:46:58]process_action close_receipt [12:46:58]cmd_close_receipt [12:46:58]MH_GetDate [12:46:58]Write to MH i2c: F0 00 00 6B 0E 68 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: F0 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: F0 09 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: F0 09 00 6B 0E 00 C3 C7 76 66 BD 8F 7C 64 03 [12:46:58]GetLastDocTimeStamp 1719060346 [12:46:58]current date 1719060419 [12:46:58]FM_GetShiftState [12:46:58]SAM_PROTO_GetShiftState [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 13 01 00 [12:46:58]Write to MH i2c: E2 08 00 6C 0E 80 13 01 00 00 00 00 00 F7 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 0E 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 0E 00 6C 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E9 [12:46:58]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:46:58]wFMCommunicate OK [12:46:58]SAM_PROTO_GetShiftState done [12:46:58]FM_GetShiftState done [12:46:58]opened in 1719016176 [12:46:58]opened+sec_in_day 1719102576 [12:46:58]quantity*price = 66400 [12:46:58]sum+1 = 66401 [12:46:58]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 СНО: Общий режим Чек 102 22.06.2024 12:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104369 ФПД: 159024176270751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104369&fm=159024176270751&tin=02508201610067®Number=0000000000092785&sum=66400 [12:46:59]StoreToDocumentArchive [12:46:59]shift 356 fd 104369 [12:46:59]save to /storage/0356/doc_00104369 [12:46:59]save last doc name /storage/0356/doc_00104369 to /storage/kkm_last_doc_name [12:46:59]save OK [12:46:59]Clear old archive folders... [12:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:59]tlvbuf is 00FE72D0 [12:46:59]SAM_PROTO_ClearQueue [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 09 00 00 [12:46:59]Write to MH i2c: E2 08 00 79 0E 80 09 00 00 00 00 00 00 F9 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 79 0E 00 90 00 FB [12:46:59]RAPDU: 90 00 [12:46:59]wFMCommunicate OK [12:46:59]SAM_PROTO_ClearQueue done [12:46:59]KKMCreateOFDPacket [12:46:59]OFDProtocolAddRootSTLVToBuf [12:46:59]FM_MakeSignedData [12:46:59]FM_MakeSignedData [12:46:59]SAM_PROTO_SignData [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 0D 01 02 [12:46:59]Write to MH i2c: E2 08 00 7A 0E 80 0D 01 02 00 00 00 00 01 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [12:46:59]RAPDU: 90 00 [12:46:59]wFMCommunicate OK [12:46:59]wFMCommunicate request_size=255 [12:46:59]MH_SAM_APDU [12:46: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 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 66 00 00 00 F4 03 04 00 C3 C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 90 [12:46:59]Write to MH i2c: E2 02 01 7B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 F4 03 04 00 C3 C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 90 00 00 7B [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [12:46:59]RAPDU: 90 00 [12:46:59]wFMCommunicate OK [12:46:59]wFMCommunicate request_size=10 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 0D 02 02 05 A1 B3 89 8D 9F [12:46:59]Write to MH i2c: E2 0D 00 7C 0E 80 0D 02 02 05 00 A1 B3 89 8D 9F 00 00 17 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 03 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [12:47:00]RAPDU: 90 00 [12:47:00]wFMCommunicate OK [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 0D 03 02 [12:47:00]Write to MH i2c: E2 08 00 7D 0E 80 0D 03 02 00 00 00 00 06 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0B 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0B 00 7D 0E 00 0E 29 49 0C D2 D9 D5 A9 90 00 BC [12:47:00]RAPDU: 0E 29 49 0C D2 D9 D5 A9 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_SignData done [12:47:00]FM_MakeSignedData done [12:47:00]CreateOFDProtocolMessage [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 11 00 00 [12:47:00]Write to MH i2c: E2 08 00 7E 0E 80 11 00 00 00 00 00 00 06 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 7E 0E 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:47: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:47:00]wFMCommunicate OK [12:47:00]CreateOFDProtocolMessage done [12:47:00]OFDSenderStorePacket 104369 [12:47:00]StoreOFDPacket docnum=104369 [12:47: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 5D A8 07 01 99 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 66 00 00 00 F4 03 04 00 C3 C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 90 A1 B3 89 8D 9F 0E 29 49 0C D2 D9 D5 A9 [12:47:00]CheckFolder [12:47:00]dirname=/storage/ofd_packets [12:47:00]CheckFolder done [12:47:00]ProducePacketName [12:47:00]name=ofd_packets/00104369 [12:47:00]NVStorageSaveData ofd_packets/00104369 [12:47:00]File name is /storage/ofd_packets/00104369 [12:47:00]Write 301 bytes [12:47:00]NVStorageSaveData done [12:47:00]OFDSenderStorePacket done [12:47:00]KKMCreateOFDPacket done [12:47:00]NVStorageSaveData kkm_last_timestamp [12:47:00]File name is /storage/kkm_last_timestamp [12:47:00]Write 4 bytes [12:47:00]NVStorageSaveData done [12:47:00]ExternCall_PrintAddStr [12:47:00]wPrintStart [12:47:00]Write to MH i2c: 01 00 00 7F 0E 8D [12:47:00]OFD Sender: Processing packet 104369 [packets to send 17, broken 16] [12:47:00]ProducePacketName [12:47:00]name=ofd_packets/00104369 [12:47:00]OFD Sender: To server: pG, [12:47:00]CommunicateWithHost lk.salyk.kg:30040 [12:47:00]ConnectInit lk.salyk.kg [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 FF 0F A2 [12:47:00]RasterBufferAndPrint [12:47:00]line Счет N : (1)673908 [12:47:00]line ИНН: 02508201610067 [12:47:00]line Контрольно-Кассовый Чек [12:47:00]line ПРОДАЖА [12:47:00]line ТРК (МРК, ГНК) : 42 [12:47:00]line Товар: 2710124130 [12:47:00]line Аи-92-К-5 [12:47:00]line 10.000 * 66.40 [12:47:00]line = 664.00 [12:47:00]line НДС 12% НСП 1% [12:47:00]line > о реализуемом товаре [12:47:00]line ИТОГО: 664.00 [12:47:00]line Внесено: 1000.00 [12:47:00]line СДАЧА: 336.00 [12:47:00]line НСП 1% : 5.88 [12:47:00]line НДС 12% : 70.51 [12:47:00]line Наличными: 664.00 [12:47:00]line Безнал.: 0.00 [12:47:00]line Место: АЗС № 120 "Партнер Нефть" [12:47:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:47:00]line СНО: Общий режим [12:47:00]line Чек 102 22.06.2024 12:46 [12:47:00]line Смена: 356 ФФД: 1.0 [12:47:00]line ЗНМ: 0300000164 [12:47:00]line РНМ: 0000000000092785 [12:47:00]line Версия ККМ: 001 [12:47:00]line ФМ: 0000000000875093 [12:47:00]line ФД: 104369 [12:47:00]line ФПД: 159024176270751 [12:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104369&fm=159024176270751&tin=02508201610067®Number=0000000000092785&sum=66400 [12:47:00]Connected sock=10 [12:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5D A8 07 01 99 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 66 00 00 00 F4 03 04 00 C3 C7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 90 A1 B3 89 8D 9F 0E 29 49 0C D2 D9 D5 A9 [12:47:00]written 0, free lines is 4095 [12:47: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 D9 2A 47 00 B5 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 B1 97 01 00 F4 03 04 00 42 6E 76 66 B6 04 01 00 00 64 72 E7 67 33 BD A5 DF [12:47:00]CommunicateWithHost err = 0 [12:47:00]CheckOFDResponse [12:47:00]1017 (14) - 77093643461234 [12:47:00]1041 (16) - 0000000000875093 [12:47:00]1040 (4) - 104369 [12:47:00]1012 (4) - 22.06.2024 06:25 [12:47:00]1206 (1) - 0 [12:47:00]OFD Sender: Remove packet 104369 [12:47:00]ProducePacketName [12:47:00]name=ofd_packets/00104369 [12:47:00]NVStorageDeleteData [12:47:00]Write to MH i2c: 01 00 00 A9 0E B7 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 EA 0C B4 [12:47:00]RasterBufferAndPrint [12:47:00]line [12:47:00]line [12:47:00]line [12:47:00]line [12:47:00]line [12:47:00]written 0, free lines is 3312 [12:47:00]MH_Cut [12:47:00]Write to MH i2c: D1 01 00 B0 0E 01 90 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: D1 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: D1 01 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: D1 01 00 B0 0E 00 8F [12:47:00]Write to MH i2c: 01 00 00 B1 0E BF [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:01]OFD Sender: No OFD packet to send [12:47:01]*** Cut start [12:47:01]*** Partial cut [12:47:01]*** CUTSNS_PIN = 1 [12:47:01]*** CUTSNS_PIN = 0 [12:47:01]*** Brake cut motor [12:47:02]Read from MH i2c: 01 [12:47:02]MH_I2C_Read... [12:47:02]*** Stop cut motor [12:47:02]*** Cut end [12:47:02]Read from MH i2c: 01 07 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: 01 07 00 B1 0E 00 00 00 00 00 FF 0F D4 [12:47:02]process_action close_receipt done [12:47:02]requested_data is exist [12:47:02]produce_requested_data [12:47:02]requested_item fm.sn is exist - process it [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 11 00 00 [12:47:02]Write to MH i2c: E2 08 00 B2 0E 80 11 00 00 00 00 00 00 3A [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 17 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 17 00 B2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [12:47: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:47:02]wFMCommunicate OK [12:47:02]requested_item fd.num is exist - process it [12:47:02]SAM_PROTO_GetFieldsCounters [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 13 00 00 [12:47:02]Write to MH i2c: E2 08 00 B3 0E 80 13 00 00 00 00 00 00 3D [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 62 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 62 00 B3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 44 [12:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [12:47:02]wFMCommunicate OK [12:47:02]SAM_PROTO_GetFieldsCounters done [12:47:02]requested_item shift.num is exist - process it [12:47:02]requested_item shift.opened is exist - process it [12:47:02]req_shift_opened [12:47:02]FM_GetShiftState [12:47:02]SAM_PROTO_GetShiftState [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 13 01 00 [12:47:02]Write to MH i2c: E2 08 00 B4 0E 80 13 01 00 00 00 00 00 3F [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 0E 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 0E 00 B4 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 31 [12:47:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:47:02]wFMCommunicate OK [12:47:02]SAM_PROTO_GetShiftState done [12:47:02]FM_GetShiftState done [12:47:02]req_shift_opened done [12:47:02]requested_item shift.open_date is exist - process it [12:47:02]req_shift_open_date [12:47:02]req_shift_open_date done [12:47:02]produce_requested_data done [12:47:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104369,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:47:02]process_action_free close_receipt [12:47:02]json_value_free [12:47:02]json_value_free done [12:47:02]process_json_proto returns [12:47:02]Send response to host [12:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104369,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:47:02]free response buf [12:47:02]execute_script done [12:47:02]execute_script returns [12:47:02]free content buf [12:47:02]Sock 9.Close socket [12:47:02]Sock 9.Thread stoped [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:52]accept exits with 7 [12:47:52]New connection [12:47:52]New thread 3066449252 created [12:47:52]Thread 3066592612 joined [12:47:52]Waiting for new connection... [12:47:52] Sock 7.Parse request [12:47:52]Sock 7.Check first char [12:47:52]Sock 7.First char is OK [12:47:52]request: POST /json_proto HTTP/1.0 [12:47:52]Method: POST [12:47:52]URL: /json_proto [12:47:52]Method is POST - this is cgi request [12:47:52]url: /json_proto [12:47:52]query_string will be loaded in cgi processing [12:47:52]execute_cgi json_proto POST (null) [12:47:52]execute_cgi path=json_proto method=POST [12:47:52]POST find Content-Length [12:47:52]Host: 172.17.38.133:8080 [12:47:52]Content-Length: 1212 [12:47:52]Content-Type: application/json [12:47:52] [12:47:52]POST finish read [12:47:52]Found Content-Length = 1212 [12:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673906\u000A22.06.2024 12:24\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 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\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\u000A98323\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:52]execute_script... [12:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673906\u000A22.06.2024 12:24\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 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\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\u000A98323\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:52]POST & json_proto [12:47:52]process_json_proto [12:47:52]json parsed OK: [12:47:52]protocol is kg_v1.0 [12:47:52]action value=print_text [12:47:52]process_action print_text [12:47:52]cmd_print_text [12:47:52]ExternCall_PrintAddStr [12:47:52]wPrintStart [12:47:52]Write to MH i2c: 01 00 00 B5 0E C3 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 FF 0F D8 [12:47:52]RasterBufferAndPrint [12:47:52]line *****ТОВАРНЫЙ ЧЕК***** [12:47:52]line АЗС 120 [12:47:52]line Партнер нефть [12:47:52]line 02508201610067 [12:47:52]line Кассир : Байбугуева Г. [12:47:52]line Счет N : (1)673906 [12:47:52]line 22.06.2024 12:24 [12:47:52]line ПРОДАЖА [12:47:52]line ТРК (МРК, ГНК): 11 [12:47:52]line Вид ГСМ : 2710194210 [12:47:52]line ДТ(л)-К-5 [12:47:52]line 41.160 x 72.90 [12:47:52]line ИТОГ: 3000.56 [12:47:52]line Тип оплаты: Талоны: Топливная Карта [12:47:52]line 98323 [12:47:52]line ______________________ [12:47:52]line (подпись) [12:47:52]written 0, free lines is 4095 [12:47:53]Write to MH i2c: 01 00 00 C9 0E D7 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 07 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 07 00 C9 0E 00 00 00 00 00 11 0E FD [12:47:53]RasterBufferAndPrint [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]written 0, free lines is 3603 [12:47:53]MH_Cut [12:47:53]Write to MH i2c: D1 01 00 D0 0E 01 B0 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 01 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 01 00 D0 0E 00 AF [12:47:53]Write to MH i2c: 01 00 00 D1 0E DF [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]*** Cut start [12:47:53]*** Partial cut [12:47:53]*** CUTSNS_PIN = 1 [12:47:53]*** CUTSNS_PIN = 0 [12:47:53]*** Brake cut motor [12:47:54]Read from MH i2c: 01 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 07 00 [12:47:54]MH_I2C_Read... [12:47:54]*** Stop cut motor [12:47:54]*** Cut end [12:47:54]Read from MH i2c: 01 07 00 D1 0E 00 00 00 00 00 FF 0F F4 [12:47:54]process_action print_text done [12:47:54]requested_data is exist [12:47:54]produce_requested_data [12:47:54]requested_item fm.sn is exist - process it [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 11 00 00 [12:47:54]Write to MH i2c: E2 08 00 D2 0E 80 11 00 00 00 00 00 00 5A [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 D2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [12:47:54]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:54]wFMCommunicate OK [12:47:54]requested_item fd.num is exist - process it [12:47:54]SAM_PROTO_GetFieldsCounters [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 00 00 [12:47:54]Write to MH i2c: E2 08 00 D3 0E 80 13 00 00 00 00 00 00 5D [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 62 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 62 00 D3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 64 [12:47: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 B1 97 01 00 0E 04 04 00 64 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 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetFieldsCounters done [12:47:54]requested_item shift.num is exist - process it [12:47:54]requested_item shift.opened is exist - process it [12:47:54]req_shift_opened [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 D4 0E 80 13 01 00 00 00 00 00 5F [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 D4 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 51 [12:47:54]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetShiftState done [12:47:54]FM_GetShiftState done [12:47:54]req_shift_opened done [12:47:54]requested_item shift.open_date is exist - process it [12:47:54]req_shift_open_date [12:47:54]req_shift_open_date done [12:47:54]produce_requested_data done [12:47:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104369,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:47:54]process_action_free print_text [12:47:54]json_value_free [12:47:54]json_value_free done [12:47:54]process_json_proto returns [12:47:54]Send response to host [12:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104369,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:47:54]free response buf [12:47:54]execute_script done [12:47:54]execute_script returns [12:47:54]free content buf [12:47:54]Sock 7.Close socket [12:47:54]Sock 7.Thread stoped [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:30]accept exits with 9 [12:48:30]New connection [12:48:30]New thread 3066592612 created [12:48:30]Thread 3066449252 joined [12:48:30]Waiting for new connection... [12:48:30] Sock 9.Parse request [12:48:30]Sock 9.Check first char [12:48:30]Sock 9.First char is OK [12:48:30]request: POST /json_proto HTTP/1.0 [12:48:30]Method: POST [12:48:30]URL: /json_proto [12:48:30]Method is POST - this is cgi request [12:48:30]url: /json_proto [12:48:30]query_string will be loaded in cgi processing [12:48:30]execute_cgi json_proto POST (null) [12:48:30]execute_cgi path=json_proto method=POST [12:48:30]POST find Content-Length [12:48:30]Host: 172.17.38.133:8080 [12:48:30]Content-Length: 687 [12:48:30]Content-Type: application/json [12:48:30] [12:48:30]POST finish read [12:48:30]Found Content-Length = 687 [12:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673907", "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" ] } } [12:48:30]execute_script... [12:48: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)673907", "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" ] } } [12:48:30]POST & json_proto [12:48:30]process_json_proto [12:48:30]json parsed OK: [12:48:30]protocol is kg_v1.0 [12:48:30]action value=close_receipt [12:48:30]process_action close_receipt [12:48:30]cmd_close_receipt [12:48:30]MH_GetDate [12:48:30]Write to MH i2c: F0 00 00 D5 0E D2 [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 09 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 09 00 D5 0E 00 1F C8 76 66 BD 8F 7C 64 CA [12:48:30]GetLastDocTimeStamp 1719060419 [12:48:30]current date 1719060511 [12:48:30]FM_GetShiftState [12:48:30]SAM_PROTO_GetShiftState [12:48:30]wFMCommunicate request_size=4 [12:48:30]MH_SAM_APDU [12:48:30]CAPDU: 80 13 01 00 [12:48:30]Write to MH i2c: E2 08 00 D6 0E 80 13 01 00 00 00 00 00 61 [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:30]Read from MH i2c: E2 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 0E 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 0E 00 D6 0E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 53 [12:48:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:48:30]wFMCommunicate OK [12:48:30]SAM_PROTO_GetShiftState done [12:48:30]FM_GetShiftState done [12:48:30]opened in 1719016176 [12:48:30]opened+sec_in_day 1719102576 [12:48:30]quantity*price = 100018 [12:48:30]sum+1 = 100020 [12:48:30]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 СНО: Общий режим Чек 103 22.06.2024 12:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104370 ФПД: 66382800142993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104370&fm=66382800142993&tin=02508201610067®Number=0000000000092785&sum=100000 [12:48:31]StoreToDocumentArchive [12:48:31]shift 356 fd 104370 [12:48:31]save to /storage/0356/doc_00104370 [12:48:31]save last doc name /storage/0356/doc_00104370 to /storage/kkm_last_doc_name [12:48:31]save OK [12:48:31]Clear old archive folders... [12:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:48:31]tlvbuf is 00FC0FB0 [12:48:31]SAM_PROTO_ClearQueue [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 09 00 00 [12:48:31]Write to MH i2c: E2 08 00 E3 0E 80 09 00 00 00 00 00 00 63 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_ClearQueue done [12:48:31]KKMCreateOFDPacket [12:48:31]OFDProtocolAddRootSTLVToBuf [12:48:31]FM_MakeSignedData [12:48:31]FM_MakeSignedData [12:48:31]SAM_PROTO_SignData [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 01 02 [12:48:31]Write to MH i2c: E2 08 00 E4 0E 80 0D 01 02 00 00 00 00 6B [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=255 [12:48:31]MH_SAM_APDU [12:48: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 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 67 00 00 00 F4 03 04 00 1F C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [12:48:31]Write to MH i2c: E2 02 01 E5 0E 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 67 00 00 00 F4 03 04 00 1F C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 98 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]OFD Sender: No OFD packet to send [12:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 E5 0E 00 90 00 67 [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=11 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 02 02 06 3C 5F F3 38 C2 91 [12:48:31]Write to MH i2c: E2 0E 00 E6 0E 80 0D 02 02 06 00 3C 5F F3 38 C2 91 00 00 93 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 E6 0E 00 90 00 68 [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 03 02 [12:48:31]Write to MH i2c: E2 08 00 E7 0E 80 0D 03 02 00 00 00 00 70 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0B 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0B 00 E7 0E 00 B9 4C 87 7D 3A 7E 97 CC 90 00 95 [12:48:31]RAPDU: B9 4C 87 7D 3A 7E 97 CC 90 00 [12:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_SignData done [12:48:31]FM_MakeSignedData done [12:48:31]CreateOFDProtocolMessage [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 11 00 00 [12:48:31]Write to MH i2c: E2 08 00 E8 0E 80 11 00 00 00 00 00 00 70 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 17 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 17 00 E8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [12: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 [12:48:31]wFMCommunicate OK [12:48:31]CreateOFDProtocolMessage done [12:48:31]OFDSenderStorePacket 104370 [12:48:31]StoreOFDPacket docnum=104370 [12:48: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 10 01 00 00 46 88 08 01 3F 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 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 67 00 00 00 F4 03 04 00 1F C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3C 5F F3 38 C2 91 B9 4C 87 7D 3A 7E 97 CC [12:48:31]CheckFolder [12:48:31]dirname=/storage/ofd_packets [12:48:31]CheckFolder done [12:48:31]ProducePacketName [12:48:31]name=ofd_packets/00104370 [12:48:31]NVStorageSaveData ofd_packets/00104370 [12:48:31]File name is /storage/ofd_packets/00104370 [12:48:31]Write 302 bytes [12:48:31]NVStorageSaveData done [12:48:31]OFDSenderStorePacket done [12:48:31]KKMCreateOFDPacket done [12:48:31]NVStorageSaveData kkm_last_timestamp [12:48:31]File name is /storage/kkm_last_timestamp [12:48:31]Write 4 bytes [12:48:31]NVStorageSaveData done [12:48:31]ExternCall_PrintAddStr [12:48:31]wPrintStart [12:48:31]Write to MH i2c: 01 00 00 E9 0E F7 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 07 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 FF 0F 0C [12:48:31]RasterBufferAndPrint [12:48:31]line Счет N : (1)673907 [12:48:31]line ИНН: 02508201610067 [12:48:31]line Контрольно-Кассовый Чек [12:48:31]line ПРОДАЖА [12:48:31]line ТРК (МРК, ГНК) : 21 [12:48:31]line Товар: 2710194210 [12:48:31]line ДТ(л)-К-5 [12:48:31]line 13.720 * 72.90 [12:48:31]line = 1000.19 [12:48:31]line НДС 12% НСП 1% [12:48:31]line > о реализуемом товаре [12:48:31]line ОКРУГЛЕНИЕ: -0.19 [12:48:31]line ИТОГО: 1000.00 [12:48:31]line Внесено: 1000.00 [12:48:31]line СДАЧА: 0.00 [12:48:31]line НСП 1% : 8.85 [12:48:31]line НДС 12% : 106.21 [12:48:31]line Наличными: 1000.00 [12:48:31]line Безнал.: 0.00 [12:48:31]line Место: АЗС № 120 "Партнер Нефть" [12:48:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:48:31]line СНО: Общий режим [12:48:31]line Чек 103 22.06.2024 12:48 [12:48:31]line Смена: 356 ФФД: 1.0 [12:48:31]line ЗНМ: 0300000164 [12:48:31]line РНМ: 0000000000092785 [12:48:31]line Версия ККМ: 001 [12:48:31]line ФМ: 0000000000875093 [12:48:31]line ФД: 104370 [12:48:31]line ФПД: 66382800142993 [12:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104370&fm=66382800142993&tin=02508201610067®Number=0000000000092785&sum=100000 [12:48:32]OFD Sender: Processing packet 104370 [packets to send 17, broken 16] [12:48:32]ProducePacketName [12:48:32]name=ofd_packets/00104370 [12:48:32]OFD Sender: To server: pG, [12:48:32]CommunicateWithHost lk.salyk.kg:30040 [12:48:32]ConnectInit lk.salyk.kg [12:48:32]written 0, free lines is 4095 [12:48:32]Connected sock=10 [12:48: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 46 88 08 01 3F 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 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 67 00 00 00 F4 03 04 00 1F C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3C 5F F3 38 C2 91 B9 4C 87 7D 3A 7E 97 CC [12:48: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 D5 C2 47 00 88 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 9E 6E 76 66 B6 04 01 00 00 CF 8C 52 4E 44 F3 76 FA [12:48:32]CommunicateWithHost err = 0 [12:48:32]CheckOFDResponse [12:48:32]1017 (14) - 77093643461234 [12:48:32]1041 (16) - 0000000000875093 [12:48:32]1040 (4) - 104370 [12:48:32]1012 (4) - 22.06.2024 06:26 [12:48:32]1206 (1) - 0 [12:48:32]OFD Sender: Remove packet 104370 [12:48:32]ProducePacketName [12:48:32]name=ofd_packets/00104370 [12:48:32]NVStorageDeleteData [12:48:32]Write to MH i2c: 01 00 00 14 0F 23 [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 07 00 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 D8 0C 0E [12:48:32]RasterBufferAndPrint [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]written 0, free lines is 3296 [12:48:32]MH_Cut [12:48:32]Write to MH i2c: D1 01 00 1B 0F 01 FC [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 01 00 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 01 00 1B 0F 00 FB [12:48:32]Write to MH i2c: 01 00 00 1C 0F 2B [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]OFD Sender: No OFD packet to send [12:48:33]*** Cut start [12:48:33]*** Partial cut [12:48:33]*** CUTSNS_PIN = 1 [12:48:33]*** CUTSNS_PIN = 0 [12:48:33]*** Brake cut motor [12:48:33]Read from MH i2c: 01 [12:48:33]MH_I2C_Read... [12:48:33]*** Stop cut motor [12:48:33]*** Cut end [12:48:33]Read from MH i2c: 01 07 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 FF 0F 40 [12:48:33]process_action close_receipt done [12:48:33]requested_data is exist [12:48:33]produce_requested_data [12:48:33]requested_item fm.sn is exist - process it [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 11 00 00 [12:48:33]Write to MH i2c: E2 08 00 1D 0F 80 11 00 00 00 00 00 00 A6 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 17 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 17 00 1D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [12:48:33]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:33]wFMCommunicate OK [12:48:33]requested_item fd.num is exist - process it [12:48:33]SAM_PROTO_GetFieldsCounters [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 00 00 [12:48:33]Write to MH i2c: E2 08 00 1E 0F 80 13 00 00 00 00 00 00 A9 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 62 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 62 00 1E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B4 [12:48: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 B2 97 01 00 0E 04 04 00 64 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 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_GetFieldsCounters done [12:48:34]requested_item shift.num is exist - process it [12:48:34]requested_item shift.opened is exist - process it [12:48:34]req_shift_opened [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 1F 0F 80 13 01 00 00 00 00 00 AB [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 1F 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9D [12:48:34]RAPDU: 09 00 01 F0 1A 76 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]req_shift_opened done [12:48:34]requested_item shift.open_date is exist - process it [12:48:34]req_shift_open_date [12:48:34]req_shift_open_date done [12:48:34]produce_requested_data done [12:48:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104370,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:48:34]process_action_free close_receipt [12:48:34]json_value_free [12:48:34]json_value_free done [12:48:34]process_json_proto returns [12:48:34]Send response to host [12:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104370,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:48:34]free response buf [12:48:34]execute_script done [12:48:34]execute_script returns [12:48:34]free content buf [12:48:34]Sock 9.Close socket [12:48:34]Sock 9.Thread stoped [12:48:37]OFD Sender: No OFD packet to send [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:15]accept exits with 7 [12:49:15]New connection [12:49:15]New thread 3066449252 created [12:49:15]Thread 3066592612 joined [12:49:15]Waiting for new connection... [12:49:15] Sock 7.Parse request [12:49:15]Sock 7.Check first char [12:49:15]Sock 7.First char is OK [12:49:15]request: POST /json_proto HTTP/1.0 [12:49:15]Method: POST [12:49:15]URL: /json_proto [12:49:15]Method is POST - this is cgi request [12:49:15]url: /json_proto [12:49:15]query_string will be loaded in cgi processing [12:49:15]execute_cgi json_proto POST (null) [12:49:15]execute_cgi path=json_proto method=POST [12:49:15]POST find Content-Length [12:49:15]Host: 172.17.38.133:8080 [12:49:15]Content-Length: 677 [12:49:15]Content-Type: application/json [12:49:15] [12:49:15]POST finish read [12:49:15]Found Content-Length = 677 [12:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673909", "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" ] } } [12:49:15]execute_script... [12:49: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)673909", "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" ] } } [12:49:15]POST & json_proto [12:49:15]process_json_proto [12:49:15]json parsed OK: [12:49:15]protocol is kg_v1.0 [12:49:15]action value=close_receipt [12:49:15]process_action close_receipt [12:49:15]cmd_close_receipt [12:49:15]MH_GetDate [12:49:15]Write to MH i2c: F0 00 00 20 0F 1E [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 20 0F 00 4D C8 76 66 BD 8F 7C 64 44 [12:49:15]GetLastDocTimeStamp 1719060511 [12:49:15]current date 1719060557 [12:49:15]FM_GetShiftState [12:49:15]SAM_PROTO_GetShiftState [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 13 01 00 [12:49:15]Write to MH i2c: E2 08 00 21 0F 80 13 01 00 00 00 00 00 AD [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0E 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0E 00 21 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9F [12:49:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:49:16]wFMCommunicate OK [12:49:16]SAM_PROTO_GetShiftState done [12:49:16]FM_GetShiftState done [12:49:16]opened in 1719016176 [12:49:16]opened+sec_in_day 1719102576 [12:49:16]quantity*price = 70057 [12:49:16]sum+1 = 70058 [12:49:16]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 СНО: Общий режим Чек 104 22.06.2024 12:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104371 ФПД: 200744728336952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104371&fm=200744728336952&tin=02508201610067®Number=0000000000092785&sum=70000 [12:49:17]StoreToDocumentArchive [12:49:17]shift 356 fd 104371 [12:49:17]save to /storage/0356/doc_00104371 [12:49:17]save last doc name /storage/0356/doc_00104371 to /storage/kkm_last_doc_name [12:49:17]save OK [12:49:17]Clear old archive folders... [12:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:17]tlvbuf is 00FEC5C0 [12:49:17]SAM_PROTO_ClearQueue [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 09 00 00 [12:49:17]Write to MH i2c: E2 08 00 2E 0F 80 09 00 00 00 00 00 00 AF [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_ClearQueue done [12:49:17]KKMCreateOFDPacket [12:49:17]OFDProtocolAddRootSTLVToBuf [12:49:17]FM_MakeSignedData [12:49:17]FM_MakeSignedData [12:49:17]SAM_PROTO_SignData [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 01 02 [12:49:17]Write to MH i2c: E2 08 00 2F 0F 80 0D 01 02 00 00 00 00 B7 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=255 [12:49:17]MH_SAM_APDU [12:49: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 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 68 00 00 00 F4 03 04 00 4D C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B6 [12:49:17]Write to MH i2c: E2 02 01 30 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 4D C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B6 00 00 0B [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=10 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 02 02 05 93 86 39 1A 38 [12:49:17]Write to MH i2c: E2 0D 00 31 0F 80 0D 02 02 05 00 93 86 39 1A 38 00 00 68 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 03 02 [12:49:17]Write to MH i2c: E2 08 00 32 0F 80 0D 03 02 00 00 00 00 BC [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0B 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0B 00 32 0F 00 23 95 66 05 99 FF 45 54 90 00 11 [12:49:17]RAPDU: 23 95 66 05 99 FF 45 54 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_SignData done [12:49:17]FM_MakeSignedData done [12:49:17]CreateOFDProtocolMessage [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 11 00 00 [12:49:17]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 17 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [12:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:49:17]wFMCommunicate OK [12:49:17]CreateOFDProtocolMessage done [12:49:17]OFDSenderStorePacket 104371 [12:49:17]StoreOFDPacket docnum=104371 [12:49: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 FF C6 07 01 A1 BC 5A 03 01 00 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 68 00 00 00 F4 03 04 00 4D C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B6 93 86 39 1A 38 23 95 66 05 99 FF 45 54 [12:49:17]CheckFolder [12:49:17]dirname=/storage/ofd_packets [12:49:17]CheckFolder done [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00104371 [12:49:17]NVStorageSaveData ofd_packets/00104371 [12:49:17]File name is /storage/ofd_packets/00104371 [12:49:17]Write 301 bytes [12:49:17]NVStorageSaveData done [12:49:17]OFDSenderStorePacket done [12:49:17]KKMCreateOFDPacket done [12:49:17]NVStorageSaveData kkm_last_timestamp [12:49:17]File name is /storage/kkm_last_timestamp [12:49:17]Write 4 bytes [12:49:17]NVStorageSaveData done [12:49:17]ExternCall_PrintAddStr [12:49:17]wPrintStart [12:49:17]Write to MH i2c: 01 00 00 34 0F 43 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [12:49:17]RasterBufferAndPrint [12:49:17]line Счет N : (1)673909 [12:49:17]line ИНН: 02508201610067 [12:49:17]line Контрольно-Кассовый Чек [12:49:17]line ПРОДАЖА [12:49:17]line ТРК (МРК, ГНК) : 31 [12:49:17]line Товар: 2710124500 [12:49:17]line Аи-95-К-5 [12:49:17]line 9.480 * 73.90 [12:49:17]line = 700.57 [12:49:17]line НДС 12% НСП 1% [12:49:17]line > о реализуемом товаре [12:49:17]line ОКРУГЛЕНИЕ: -0.57 [12:49:17]line ИТОГО: 700.00 [12:49:17]line Внесено: 700.00 [12:49:17]line СДАЧА: 0.00 [12:49:17]line НСП 1% : 6.20 [12:49:17]line НДС 12% : 74.40 [12:49:17]line Наличными: 700.00 [12:49:17]line Безнал.: 0.00 [12:49:17]line Место: АЗС № 120 "Партнер Нефть" [12:49:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:49:17]line СНО: Общий режим [12:49:17]line Чек 104 22.06.2024 12:49 [12:49:17]line Смена: 356 ФФД: 1.0 [12:49:17]line ЗНМ: 0300000164 [12:49:17]line РНМ: 0000000000092785 [12:49:17]line Версия ККМ: 001 [12:49:17]line ФМ: 0000000000875093 [12:49:17]line ФД: 104371 [12:49:17]line ФПД: 200744728336952 [12:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104371&fm=200744728336952&tin=02508201610067®Number=0000000000092785&sum=70000 [12:49:18]OFD Sender: Processing packet 104371 [packets to send 17, broken 16] [12:49:18]ProducePacketName [12:49:18]name=ofd_packets/00104371 [12:49:18]OFD Sender: To server: pG, [12:49:18]CommunicateWithHost lk.salyk.kg:30040 [12:49:18]ConnectInit lk.salyk.kg [12:49:18]written 0, free lines is 4095 [12:49:18]Connected sock=10 [12:49: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 FF C6 07 01 A1 BC 5A 03 01 00 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 68 00 00 00 F4 03 04 00 4D C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B6 93 86 39 1A 38 23 95 66 05 99 FF 45 54 [12:49: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 46 B5 47 00 D0 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 B3 97 01 00 F4 03 04 00 CC 6E 76 66 B6 04 01 00 00 B9 C7 54 20 15 47 5F CB [12:49:18]CommunicateWithHost err = 0 [12:49:18]CheckOFDResponse [12:49:18]1017 (14) - 77093643461234 [12:49:18]1041 (16) - 0000000000875093 [12:49:18]1040 (4) - 104371 [12:49:18]1012 (4) - 22.06.2024 06:27 [12:49:18]1206 (1) - 0 [12:49:18]OFD Sender: Remove packet 104371 [12:49:18]ProducePacketName [12:49:18]name=ofd_packets/00104371 [12:49:18]NVStorageDeleteData [12:49:18]Write to MH i2c: 01 00 00 5F 0F 6E [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 5F 0F 00 00 00 00 00 D0 0C 51 [12:49:18]RasterBufferAndPrint [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]written 0, free lines is 3288 [12:49:18]MH_Cut [12:49:18]Write to MH i2c: D1 01 00 66 0F 01 47 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 01 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 01 00 66 0F 00 46 [12:49:18]Write to MH i2c: 01 00 00 67 0F 76 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]OFD Sender: No OFD packet to send [12:49:19]*** Cut start [12:49:19]*** Partial cut [12:49:19]*** CUTSNS_PIN = 1 [12:49:19]*** CUTSNS_PIN = 0 [12:49:19]*** Brake cut motor [12:49:19]Read from MH i2c: 01 [12:49:19]MH_I2C_Read... [12:49:19]*** Stop cut motor [12:49:19]*** Cut end [12:49:19]Read from MH i2c: 01 07 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 07 00 67 0F 00 00 00 00 00 FF 0F 8B [12:49:19]process_action close_receipt done [12:49:19]requested_data is exist [12:49:19]produce_requested_data [12:49:19]requested_item fm.sn is exist - process it [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 11 00 00 [12:49:19]Write to MH i2c: E2 08 00 68 0F 80 11 00 00 00 00 00 00 F1 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 68 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [12:49: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:49:19]wFMCommunicate OK [12:49:19]requested_item fd.num is exist - process it [12:49:19]SAM_PROTO_GetFieldsCounters [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 00 00 [12:49:19]Write to MH i2c: E2 08 00 69 0F 80 13 00 00 00 00 00 00 F4 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 62 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 62 00 69 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 03 [12:49: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 B3 97 01 00 0E 04 04 00 64 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 [12:49:20]wFMCommunicate OK [12:49:20]SAM_PROTO_GetFieldsCounters done [12:49:20]requested_item shift.num is exist - process it [12:49:20]requested_item shift.opened is exist - process it [12:49:20]req_shift_opened [12:49:20]FM_GetShiftState [12:49:20]SAM_PROTO_GetShiftState [12:49:20]wFMCommunicate request_size=4 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 13 01 00 [12:49:20]Write to MH i2c: E2 08 00 6A 0F 80 13 01 00 00 00 00 00 F6 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 0E 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 0E 00 6A 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E8 [12:49:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:49:20]wFMCommunicate OK [12:49:20]SAM_PROTO_GetShiftState done [12:49:20]FM_GetShiftState done [12:49:20]req_shift_opened done [12:49:20]requested_item shift.open_date is exist - process it [12:49:20]req_shift_open_date [12:49:20]req_shift_open_date done [12:49:20]produce_requested_data done [12:49:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104371,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:49:20]process_action_free close_receipt [12:49:20]json_value_free [12:49:20]json_value_free done [12:49:20]process_json_proto returns [12:49:20]Send response to host [12:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104371,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:49:20]free response buf [12:49:20]execute_script done [12:49:20]execute_script returns [12:49:20]free content buf [12:49:20]Sock 7.Close socket [12:49:20]Sock 7.Thread stoped [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:51]accept exits with 9 [12:49:51]New connection [12:49:51]New thread 3066592612 created [12:49:51]Thread 3066449252 joined [12:49:51]Waiting for new connection... [12:49:51] Sock 9.Parse request [12:49:51]Sock 9.Check first char [12:49:51]Sock 9.First char is OK [12:49:51]request: POST /json_proto HTTP/1.0 [12:49:51]Method: POST [12:49:51]URL: /json_proto [12:49:51]Method is POST - this is cgi request [12:49:51]url: /json_proto [12:49:51]query_string will be loaded in cgi processing [12:49:51]execute_cgi json_proto POST (null) [12:49:51]execute_cgi path=json_proto method=POST [12:49:51]POST find Content-Length [12:49:51]Host: 172.17.38.133:8080 [12:49:51]Content-Length: 682 [12:49:51]Content-Type: application/json [12:49:51] [12:49:51]POST finish read [12:49:51]Found Content-Length = 682 [12:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673910", "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:49:51]execute_script... [12:49: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)673910", "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:49:51]POST & json_proto [12:49:51]process_json_proto [12:49:51]json parsed OK: [12:49:51]protocol is kg_v1.0 [12:49:51]action value=close_receipt [12:49:51]process_action close_receipt [12:49:51]cmd_close_receipt [12:49:51]MH_GetDate [12:49:51]Write to MH i2c: F0 00 00 6B 0F 69 [12:49:51]Write i2c OK [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: F0 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: F0 09 00 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: F0 09 00 6B 0F 00 70 C8 76 66 BD 8F 7C 64 B2 [12:49:51]GetLastDocTimeStamp 1719060557 [12:49:51]current date 1719060592 [12:49:51]FM_GetShiftState [12:49:51]SAM_PROTO_GetShiftState [12:49:51]wFMCommunicate request_size=4 [12:49:51]MH_SAM_APDU [12:49:51]CAPDU: 80 13 01 00 [12:49:51]Write to MH i2c: E2 08 00 6C 0F 80 13 01 00 00 00 00 00 F8 [12:49:51]Write i2c OK [12:49:51]MH_I2C_Read... [12:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:51]Read from MH i2c: E2 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: E2 0E 00 [12:49:51]MH_I2C_Read... [12:49:51]Read from MH i2c: E2 0E 00 6C 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 EA [12:49:51]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:49:51]wFMCommunicate OK [12:49:51]SAM_PROTO_GetShiftState done [12:49:51]FM_GetShiftState done [12:49:51]opened in 1719016176 [12:49:51]opened+sec_in_day 1719102576 [12:49:51]quantity*price = 100064 [12:49:51]sum+1 = 100066 [12:49:51]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 СНО: Общий режим Чек 105 22.06.2024 12:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104372 ФПД: 278682743943821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124952&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104372&fm=278682743943821&tin=02508201610067®Number=0000000000092785&sum=100000 [12:49:52]StoreToDocumentArchive [12:49:52]shift 356 fd 104372 [12:49:52]save to /storage/0356/doc_00104372 [12:49:52]save last doc name /storage/0356/doc_00104372 to /storage/kkm_last_doc_name [12:49:52]save OK [12:49:52]Clear old archive folders... [12:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:52]tlvbuf is 00FC5310 [12:49:52]SAM_PROTO_ClearQueue [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 09 00 00 [12:49:52]Write to MH i2c: E2 08 00 79 0F 80 09 00 00 00 00 00 00 FA [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 03 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [12:49:52]RAPDU: 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_ClearQueue done [12:49:52]KKMCreateOFDPacket [12:49:52]OFDProtocolAddRootSTLVToBuf [12:49:52]FM_MakeSignedData [12:49:52]FM_MakeSignedData [12:49:52]SAM_PROTO_SignData [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 0D 01 02 [12:49:52]Write to MH i2c: E2 08 00 7A 0F 80 0D 01 02 00 00 00 00 02 [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 03 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [12:49:52]RAPDU: 90 00 [12:49:52]wFMCommunicate OK [12:49:52]wFMCommunicate request_size=255 [12:49:52]MH_SAM_APDU [12:49: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 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 69 00 00 00 F4 03 04 00 70 C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FD [12:49:52]Write to MH i2c: E2 02 01 7B 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 70 C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FD 00 00 37 [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]wFMCommunicate request_size=10 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 02 02 05 75 E1 F5 32 8D [12:49:53]Write to MH i2c: E2 0D 00 7C 0F 80 0D 02 02 05 00 75 E1 F5 32 8D 00 00 19 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 03 02 [12:49:53]Write to MH i2c: E2 08 00 7D 0F 80 0D 03 02 00 00 00 00 07 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 0B 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 0B 00 7D 0F 00 42 A4 A0 2D A6 DE 3C 93 90 00 0E [12:49:53]RAPDU: 42 A4 A0 2D A6 DE 3C 93 90 00 [12:49:53]wFMCommunicate OK [12:49:53]SAM_PROTO_SignData done [12:49:53]FM_MakeSignedData done [12:49:53]CreateOFDProtocolMessage [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 11 00 00 [12:49:53]Write to MH i2c: E2 08 00 7E 0F 80 11 00 00 00 00 00 00 07 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 17 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 17 00 7E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [12:49: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:49:53]wFMCommunicate OK [12:49:53]CreateOFDProtocolMessage done [12:49:53]OFDSenderStorePacket 104372 [12:49:53]StoreOFDPacket docnum=104372 [12:49: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 F0 3A 07 01 B7 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 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 69 00 00 00 F4 03 04 00 70 C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FD 75 E1 F5 32 8D 42 A4 A0 2D A6 DE 3C 93 [12:49:53]CheckFolder [12:49:53]dirname=/storage/ofd_packets [12:49:53]CheckFolder done [12:49:53]ProducePacketName [12:49:53]name=ofd_packets/00104372 [12:49:53]NVStorageSaveData ofd_packets/00104372 [12:49:53]File name is /storage/ofd_packets/00104372 [12:49:53]Write 301 bytes [12:49:53]NVStorageSaveData done [12:49:53]OFDSenderStorePacket done [12:49:53]KKMCreateOFDPacket done [12:49:53]NVStorageSaveData kkm_last_timestamp [12:49:53]File name is /storage/kkm_last_timestamp [12:49:53]Write 4 bytes [12:49:53]NVStorageSaveData done [12:49:53]ExternCall_PrintAddStr [12:49:53]wPrintStart [12:49:53]Write to MH i2c: 01 00 00 7F 0F 8E [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: 01 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: 01 07 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [12:49:53]RasterBufferAndPrint [12:49:53]line Счет N : (1)673910 [12:49:53]line ИНН: 02508201610067 [12:49:53]line Контрольно-Кассовый Чек [12:49:53]line ПРОДАЖА [12:49:53]line ТРК (МРК, ГНК) : 42 [12:49:53]line Товар: 2710124130 [12:49:53]line Аи-92-К-5 [12:49:53]line 15.070 * 66.40 [12:49:53]line = 1000.65 [12:49:53]line НДС 12% НСП 1% [12:49:53]line > о реализуемом товаре [12:49:53]line ОКРУГЛЕНИЕ: -0.65 [12:49:53]line ИТОГО: 1000.00 [12:49:53]line Внесено: 1000.00 [12:49:53]line СДАЧА: 0.00 [12:49:53]line НСП 1% : 8.85 [12:49:53]line НДС 12% : 106.26 [12:49:53]line Наличными: 1000.00 [12:49:53]line Безнал.: 0.00 [12:49:53]line Место: АЗС № 120 "Партнер Нефть" [12:49:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:49:53]line СНО: Общий режим [12:49:53]line Чек 105 22.06.2024 12:49 [12:49:53]line Смена: 356 ФФД: 1.0 [12:49:53]line ЗНМ: 0300000164 [12:49:53]line РНМ: 0000000000092785 [12:49:53]line Версия ККМ: 001 [12:49:53]line ФМ: 0000000000875093 [12:49:53]line ФД: 104372 [12:49:53]line ФПД: 278682743943821 [12:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124952&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104372&fm=278682743943821&tin=02508201610067®Number=0000000000092785&sum=100000 [12:49:53]OFD Sender: Processing packet 104372 [packets to send 17, broken 16] [12:49:53]ProducePacketName [12:49:53]name=ofd_packets/00104372 [12:49:53]OFD Sender: To server: pG, [12:49:53]CommunicateWithHost lk.salyk.kg:30040 [12:49:53]ConnectInit lk.salyk.kg [12:49:53]written 0, free lines is 4095 [12:49:53]Connected sock=10 [12:49: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 F0 3A 07 01 B7 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 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 69 00 00 00 F4 03 04 00 70 C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FD 75 E1 F5 32 8D 42 A4 A0 2D A6 DE 3C 93 [12:49: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 19 75 47 00 95 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 B4 97 01 00 F4 03 04 00 F0 6E 76 66 B6 04 01 00 00 68 63 F6 D3 C4 06 98 E0 [12:49:54]CommunicateWithHost err = 0 [12:49:54]CheckOFDResponse [12:49:54]1017 (14) - 77093643461234 [12:49:54]1041 (16) - 0000000000875093 [12:49:54]1040 (4) - 104372 [12:49:54]1012 (4) - 22.06.2024 06:28 [12:49:54]1206 (1) - 0 [12:49:54]OFD Sender: Remove packet 104372 [12:49:54]ProducePacketName [12:49:54]name=ofd_packets/00104372 [12:49:54]NVStorageDeleteData [12:49:54]Write to MH i2c: 01 00 00 AA 0F B9 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 E2 0C AE [12:49:54]RasterBufferAndPrint [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]written 0, free lines is 3304 [12:49:54]MH_Cut [12:49:54]Write to MH i2c: D1 01 00 B1 0F 01 92 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 01 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 01 00 B1 0F 00 91 [12:49:54]Write to MH i2c: 01 00 00 B2 0F C1 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]OFD Sender: No OFD packet to send [12:49:54]*** Cut start [12:49:54]*** Partial cut [12:49:54]*** CUTSNS_PIN = 1 [12:49:54]*** CUTSNS_PIN = 0 [12:49:55]*** Brake cut motor [12:49:55]Read from MH i2c: 01 [12:49:55]MH_I2C_Read... [12:49:55]*** Stop cut motor [12:49:55]*** Cut end [12:49:55]Read from MH i2c: 01 07 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 B2 0F 00 00 00 00 00 FF 0F D6 [12:49:55]process_action close_receipt done [12:49:55]requested_data is exist [12:49:55]produce_requested_data [12:49:55]requested_item fm.sn is exist - process it [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 11 00 00 [12:49:55]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 17 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [12:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:49:55]wFMCommunicate OK [12:49:55]requested_item fd.num is exist - process it [12:49:55]SAM_PROTO_GetFieldsCounters [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 13 00 00 [12:49:55]Write to MH i2c: E2 08 00 B4 0F 80 13 00 00 00 00 00 00 3F [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 62 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 62 00 B4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 52 [12:49: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 B4 97 01 00 0E 04 04 00 64 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 [12:49:55]wFMCommunicate OK [12:49:55]SAM_PROTO_GetFieldsCounters done [12:49:55]requested_item shift.num is exist - process it [12:49:55]requested_item shift.opened is exist - process it [12:49:55]req_shift_opened [12:49:55]FM_GetShiftState [12:49:55]SAM_PROTO_GetShiftState [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 13 01 00 [12:49:55]Write to MH i2c: E2 08 00 B5 0F 80 13 01 00 00 00 00 00 41 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0E 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0E 00 B5 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 33 [12:49:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:49:55]wFMCommunicate OK [12:49:55]SAM_PROTO_GetShiftState done [12:49:55]FM_GetShiftState done [12:49:55]req_shift_opened done [12:49:55]requested_item shift.open_date is exist - process it [12:49:55]req_shift_open_date [12:49:55]req_shift_open_date done [12:49:55]produce_requested_data done [12:49:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104372,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:49:55]process_action_free close_receipt [12:49:55]json_value_free [12:49:55]json_value_free done [12:49:55]process_json_proto returns [12:49:55]Send response to host [12:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104372,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:49:55]free response buf [12:49:55]execute_script done [12:49:55]execute_script returns [12:49:55]free content buf [12:49:55]Sock 9.Close socket [12:49:55]Sock 9.Thread stoped [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]accept exits with 7 [12:52:14]New connection [12:52:14]New thread 3066449252 created [12:52:14]Thread 3066592612 joined [12:52:14]Waiting for new connection... [12:52:14] Sock 7.Parse request [12:52:14]Sock 7.Check first char [12:52:14]Sock 7.First char is OK [12:52:14]request: POST /json_proto HTTP/1.0 [12:52:14]Method: POST [12:52:14]URL: /json_proto [12:52:14]Method is POST - this is cgi request [12:52:14]url: /json_proto [12:52:14]query_string will be loaded in cgi processing [12:52:14]execute_cgi json_proto POST (null) [12:52:14]execute_cgi path=json_proto method=POST [12:52:14]POST find Content-Length [12:52:14]Host: 172.17.38.133:8080 [12:52:14]Content-Length: 819 [12:52:14]OFD Sender: No OFD packet to send [12:52:14]Content-Type: application/json [12:52:14] [12:52:14]POST finish read [12:52:14]Found Content-Length = 819 [12:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673911", "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" ] } } [12:52:14]execute_script... [12:52: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)673911", "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" ] } } [12:52:14]POST & json_proto [12:52:14]process_json_proto [12:52:14]json parsed OK: [12:52:14]protocol is kg_v1.0 [12:52:14]action value=close_receipt [12:52:14]process_action close_receipt [12:52:14]cmd_close_receipt [12:52:14]MH_GetDate [12:52:14]Write to MH i2c: F0 00 00 B6 0F B4 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: F0 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: F0 09 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: F0 09 00 B6 0F 00 FF C8 76 66 BD 8F 7C 64 8C [12:52:14]GetLastDocTimeStamp 1719060592 [12:52:14]current date 1719060735 [12:52:14]FM_GetShiftState [12:52:14]SAM_PROTO_GetShiftState [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 13 01 00 [12:52:14]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:14]Read from MH i2c: E2 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 0E 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 35 [12:52:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:52:14]wFMCommunicate OK [12:52:14]SAM_PROTO_GetShiftState done [12:52:14]FM_GetShiftState done [12:52:14]opened in 1719016176 [12:52:14]opened+sec_in_day 1719102576 [12:52:14]quantity*price = 100064 [12:52:14]sum+1 = 100066 [12:52:14]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 СНО: Общий режим Чек 106 22.06.2024 12:52 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104373 ФПД: 225470307802832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104373&fm=225470307802832&tin=02508201610067®Number=0000000000092785&sum=100065 [12:52:15]StoreToDocumentArchive [12:52:15]shift 356 fd 104373 [12:52:15]save to /storage/0356/doc_00104373 [12:52:15]save last doc name /storage/0356/doc_00104373 to /storage/kkm_last_doc_name [12:52:15]save OK [12:52:15]Clear old archive folders... [12:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:15]tlvbuf is 00F93C50 [12:52:15]SAM_PROTO_ClearQueue [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 09 00 00 [12:52:15]Write to MH i2c: E2 08 00 C4 0F 80 09 00 00 00 00 00 00 45 [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [12:52:15]RAPDU: 90 00 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_ClearQueue done [12:52:15]KKMCreateOFDPacket [12:52:15]OFDProtocolAddRootSTLVToBuf [12:52:15]FM_MakeSignedData [12:52:15]FM_MakeSignedData [12:52:15]SAM_PROTO_SignData [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 0D 01 02 [12:52:15]Write to MH i2c: E2 08 00 C5 0F 80 0D 01 02 00 00 00 00 4D [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [12:52:15]RAPDU: 90 00 [12:52:15]wFMCommunicate OK [12:52:15]wFMCommunicate request_size=255 [12:52:15]MH_SAM_APDU [12:52: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 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 6A 00 00 00 F4 03 04 00 FF C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CD [12:52:15]Write to MH i2c: E2 02 01 C6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6A 00 00 00 F4 03 04 00 FF C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CD 00 00 65 [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 03 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [12:52:16]RAPDU: 90 00 [12:52:16]wFMCommunicate OK [12:52:16]wFMCommunicate request_size=10 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 0D 02 02 05 10 65 9A 9E D0 [12:52:16]Write to MH i2c: E2 0D 00 C7 0F 80 0D 02 02 05 00 10 65 9A 9E D0 00 00 D7 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 03 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [12:52:16]RAPDU: 90 00 [12:52:16]wFMCommunicate OK [12:52:16]wFMCommunicate request_size=4 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 0D 03 02 [12:52:16]Write to MH i2c: E2 08 00 C8 0F 80 0D 03 02 00 00 00 00 52 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 0B 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 0B 00 C8 0F 00 7C DB 29 3D 2D 46 05 99 90 00 21 [12:52:16]RAPDU: 7C DB 29 3D 2D 46 05 99 90 00 [12:52:16]wFMCommunicate OK [12:52:16]SAM_PROTO_SignData done [12:52:16]FM_MakeSignedData done [12:52:16]CreateOFDProtocolMessage [12:52:16]wFMCommunicate request_size=4 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 11 00 00 [12:52:16]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 17 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [12:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:52:16]wFMCommunicate OK [12:52:16]CreateOFDProtocolMessage done [12:52:16]OFDSenderStorePacket 104373 [12:52:16]StoreOFDPacket docnum=104373 [12:52: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 59 AA 07 01 39 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 FF C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CD 10 65 9A 9E D0 7C DB 29 3D 2D 46 05 99 [12:52:16]CheckFolder [12:52:16]dirname=/storage/ofd_packets [12:52:16]CheckFolder done [12:52:16]ProducePacketName [12:52:16]name=ofd_packets/00104373 [12:52:16]NVStorageSaveData ofd_packets/00104373 [12:52:16]File name is /storage/ofd_packets/00104373 [12:52:16]Write 301 bytes [12:52:16]NVStorageSaveData done [12:52:16]OFDSenderStorePacket done [12:52:16]KKMCreateOFDPacket done [12:52:16]NVStorageSaveData kkm_last_timestamp [12:52:16]File name is /storage/kkm_last_timestamp [12:52:16]Write 4 bytes [12:52:16]NVStorageSaveData done [12:52:16]ExternCall_PrintAddStr [12:52:16]wPrintStart [12:52:16]Write to MH i2c: 01 00 00 CA 0F D9 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 07 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [12:52:16]RasterBufferAndPrint [12:52:16]line Счет N : (1)673911 [12:52:16]line ИНН: 02508201610067 [12:52:16]line Контрольно-Кассовый Чек [12:52:16]line ПРОДАЖА [12:52:16]line ТРК (МРК, ГНК) : 42 [12:52:16]line Товар: 2710124130 [12:52:16]line Аи-92-К-5 [12:52:16]line 15.070 * 66.40 [12:52:16]line = 1000.65 [12:52:16]line НДС 12% НСП 1% [12:52:16]line > о реализуемом товаре [12:52:16]line ИТОГО: 1000.65 [12:52:16]line НСП 1% : 8.85 [12:52:16]line НДС 12% : 106.26 [12:52:16]line Наличными: 0.00 [12:52:16]line Безнал.: 1000.65 [12:52:16]line Место: АЗС № 120 "Партнер Нефть" [12:52:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:52:16]line СНО: Общий режим [12:52:16]line Чек 106 22.06.2024 12:52 [12:52:16]line Смена: 356 ФФД: 1.0 [12:52:16]line ЗНМ: 0300000164 [12:52:16]line РНМ: 0000000000092785 [12:52:16]line Версия ККМ: 001 [12:52:16]line Платежная система: Бакай Банк [12:52:16]line ФМ: 0000000000875093 [12:52:16]line ФД: 104373 [12:52:16]line ФПД: 225470307802832 [12:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104373&fm=225470307802832&tin=02508201610067®Number=0000000000092785&sum=100065 [12:52:16]OFD Sender: Processing packet 104373 [packets to send 17, broken 16] [12:52:16]ProducePacketName [12:52:16]name=ofd_packets/00104373 [12:52:16]OFD Sender: To server: pG, [12:52:16]CommunicateWithHost lk.salyk.kg:30040 [12:52:16]ConnectInit lk.salyk.kg [12:52:16]written 0, free lines is 4095 [12:52:16]Connected sock=10 [12:52: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 59 AA 07 01 39 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 FF C8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CD 10 65 9A 9E D0 7C DB 29 3D 2D 46 05 99 [12:52: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 EF 16 47 00 F7 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 B5 97 01 00 F4 03 04 00 7F 6F 76 66 B6 04 01 00 00 A5 8A 1F D8 2E 27 4D 33 [12:52:17]CommunicateWithHost err = 0 [12:52:17]CheckOFDResponse [12:52:17]1017 (14) - 77093643461234 [12:52:17]1041 (16) - 0000000000875093 [12:52:17]1040 (4) - 104373 [12:52:17]1012 (4) - 22.06.2024 06:30 [12:52:17]1206 (1) - 0 [12:52:17]OFD Sender: Remove packet 104373 [12:52:17]ProducePacketName [12:52:17]name=ofd_packets/00104373 [12:52:17]NVStorageDeleteData [12:52:17]Write to MH i2c: 01 00 00 F4 0F 03 [12:52:17]Write i2c OK [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: 01 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: 01 07 00 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 F6 0C 0C [12:52:17]RasterBufferAndPrint [12:52:17]line [12:52:17]line [12:52:17]line [12:52:17]line [12:52:17]line [12:52:17]written 0, free lines is 3326 [12:52:17]MH_Cut [12:52:17]Write to MH i2c: D1 01 00 FB 0F 01 DC [12:52:17]Write i2c OK [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: D1 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: D1 01 00 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: D1 01 00 FB 0F 00 DB [12:52:17]Write to MH i2c: 01 00 00 FC 0F 0B [12:52:17]Write i2c OK [12:52:17]MH_I2C_Read... [12:52:17]OFD Sender: No OFD packet to send [12:52:17]*** Cut start [12:52:17]*** Partial cut [12:52:17]*** CUTSNS_PIN = 1 [12:52:17]*** CUTSNS_PIN = 0 [12:52:18]*** Brake cut motor [12:52:18]Read from MH i2c: 01 [12:52:18]MH_I2C_Read... [12:52:18]*** Stop cut motor [12:52:18]*** Cut end [12:52:18]Read from MH i2c: 01 07 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [12:52:18]process_action close_receipt done [12:52:18]requested_data is exist [12:52:18]produce_requested_data [12:52:18]requested_item fm.sn is exist - process it [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 11 00 00 [12:52:18]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 17 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [12:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:52:18]wFMCommunicate OK [12:52:18]requested_item fd.num is exist - process it [12:52:18]SAM_PROTO_GetFieldsCounters [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 13 00 00 [12:52:18]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 62 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 62 00 FE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A0 [12:52: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 B5 97 01 00 0E 04 04 00 64 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 [12:52:18]wFMCommunicate OK [12:52:18]SAM_PROTO_GetFieldsCounters done [12:52:18]requested_item shift.num is exist - process it [12:52:18]requested_item shift.opened is exist - process it [12:52:18]req_shift_opened [12:52:18]FM_GetShiftState [12:52:18]SAM_PROTO_GetShiftState [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 13 01 00 [12:52:18]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0E 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7D [12:52:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:52:18]wFMCommunicate OK [12:52:18]SAM_PROTO_GetShiftState done [12:52:18]FM_GetShiftState done [12:52:18]req_shift_opened done [12:52:18]requested_item shift.open_date is exist - process it [12:52:18]req_shift_open_date [12:52:18]req_shift_open_date done [12:52:18]produce_requested_data done [12:52:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104373,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:52:18]process_action_free close_receipt [12:52:18]json_value_free [12:52:18]json_value_free done [12:52:18]process_json_proto returns [12:52:18]Send response to host [12:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104373,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:52:18]free response buf [12:52:18]execute_script done [12:52:18]execute_script returns [12:52:18]free content buf [12:52:18]Sock 7.Close socket [12:52:18]Sock 7.Thread stoped [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:24]accept exits with 9 [12:55:24]New connection [12:55:24]New thread 3066592612 created [12:55:24]Thread 3066449252 joined [12:55:24]Waiting for new connection... [12:55:24] Sock 9.Parse request [12:55:24]Sock 9.Check first char [12:55:24]Sock 9.First char is OK [12:55:24]request: POST /json_proto HTTP/1.0 [12:55:24]Method: POST [12:55:24]URL: /json_proto [12:55:24]Method is POST - this is cgi request [12:55:24]url: /json_proto [12:55:24]query_string will be loaded in cgi processing [12:55:24]execute_cgi json_proto POST (null) [12:55:24]execute_cgi path=json_proto method=POST [12:55:24]POST find Content-Length [12:55:24]Host: 172.17.38.133:8080 [12:55:24]Content-Length: 678 [12:55:24]Content-Type: application/json [12:55:24] [12:55:24]POST finish read [12:55:24]Found Content-Length = 678 [12:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673912", "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" : 11.530, "sum" : 765.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 765.00, "total" : 765.00, "payments": [ { "type": 0, "sum" : 765.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:24]execute_script... [12:55: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)673912", "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" : 11.530, "sum" : 765.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 765.00, "total" : 765.00, "payments": [ { "type": 0, "sum" : 765.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:24]POST & json_proto [12:55:24]process_json_proto [12:55:24]json parsed OK: [12:55:24]protocol is kg_v1.0 [12:55:24]action value=close_receipt [12:55:24]process_action close_receipt [12:55:24]cmd_close_receipt [12:55:24]MH_GetDate [12:55:24]Write to MH i2c: F0 00 00 00 10 FF [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 09 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 09 00 00 10 00 BD C9 76 66 BD 8F 7C 64 96 [12:55:24]GetLastDocTimeStamp 1719060735 [12:55:24]current date 1719060925 [12:55:24]FM_GetShiftState [12:55:24]SAM_PROTO_GetShiftState [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 13 01 00 [12:55:24]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 80 [12:55:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_GetShiftState done [12:55:24]FM_GetShiftState done [12:55:24]opened in 1719016176 [12:55:24]opened+sec_in_day 1719102576 [12:55:24]quantity*price = 76559 [12:55:24]sum+1 = 76560 [12:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 765.00 Внесено: 765.00 СДАЧА: 0.00 НСП 1% : 6.77 НДС 12% : 81.30 Наличными: 765.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 22.06.2024 12:55 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104374 ФПД: 12553936823805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104374&fm=12553936823805&tin=02508201610067®Number=0000000000092785&sum=76500 [12:55:25]StoreToDocumentArchive [12:55:25]shift 356 fd 104374 [12:55:25]save to /storage/0356/doc_00104374 [12:55:25]save last doc name /storage/0356/doc_00104374 to /storage/kkm_last_doc_name [12:55:25]save OK [12:55:25]Clear old archive folders... [12:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:25]tlvbuf is 00FB0A10 [12:55:25]SAM_PROTO_ClearQueue [12:55:25]wFMCommunicate request_size=4 [12:55:25]MH_SAM_APDU [12:55:25]CAPDU: 80 09 00 00 [12:55:25]Write to MH i2c: E2 08 00 0E 10 80 09 00 00 00 00 00 00 90 [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:25]Read from MH i2c: E2 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: E2 03 00 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [12:55:25]RAPDU: 90 00 [12:55:25]wFMCommunicate OK [12:55:25]SAM_PROTO_ClearQueue done [12:55:25]KKMCreateOFDPacket [12:55:25]OFDProtocolAddRootSTLVToBuf [12:55:25]FM_MakeSignedData [12:55:25]FM_MakeSignedData [12:55:25]SAM_PROTO_SignData [12:55:25]wFMCommunicate request_size=4 [12:55:25]MH_SAM_APDU [12:55:25]CAPDU: 80 0D 01 02 [12:55:25]Write to MH i2c: E2 08 00 0F 10 80 0D 01 02 00 00 00 00 98 [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:25]Read from MH i2c: E2 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: E2 03 00 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [12:55:25]RAPDU: 90 00 [12:55:25]wFMCommunicate OK [12:55:25]wFMCommunicate request_size=255 [12:55:25]MH_SAM_APDU [12:55: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 0A 2D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BD C9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B [12:55:25]Write to MH i2c: E2 02 01 10 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 2D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BD C9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 00 00 34 [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]wFMCommunicate request_size=10 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 02 02 05 6A F0 F1 E5 FD [12:55:26]Write to MH i2c: E2 0D 00 11 10 80 0D 02 02 05 00 6A F0 F1 E5 FD 00 00 D2 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 03 02 [12:55:26]Write to MH i2c: E2 08 00 12 10 80 0D 03 02 00 00 00 00 9D [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0B 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0B 00 12 10 00 18 A6 9A 90 20 10 7B 35 90 00 66 [12:55:26]RAPDU: 18 A6 9A 90 20 10 7B 35 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_SignData done [12:55:26]FM_MakeSignedData done [12:55:26]CreateOFDProtocolMessage [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 11 00 00 [12:55:26]Write to MH i2c: E2 08 00 13 10 80 11 00 00 00 00 00 00 9D [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 13 10 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:55: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:55:26]wFMCommunicate OK [12:55:26]CreateOFDProtocolMessage done [12:55:26]OFDSenderStorePacket 104374 [12:55:26]StoreOFDPacket docnum=104374 [12:55: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 7E 1E 07 01 8E 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 0A 2D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BD C9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 6A F0 F1 E5 FD 18 A6 9A 90 20 10 7B 35 [12:55:26]CheckFolder [12:55:26]dirname=/storage/ofd_packets [12:55:26]CheckFolder done [12:55:26]ProducePacketName [12:55:26]name=ofd_packets/00104374 [12:55:26]NVStorageSaveData ofd_packets/00104374 [12:55:26]File name is /storage/ofd_packets/00104374 [12:55:26]Write 301 bytes [12:55:26]NVStorageSaveData done [12:55:26]OFDSenderStorePacket done [12:55:26]KKMCreateOFDPacket done [12:55:26]NVStorageSaveData kkm_last_timestamp [12:55:26]File name is /storage/kkm_last_timestamp [12:55:26]Write 4 bytes [12:55:26]NVStorageSaveData done [12:55:26]ExternCall_PrintAddStr [12:55:26]wPrintStart [12:55:26]Write to MH i2c: 01 00 00 14 10 24 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [12:55:26]RasterBufferAndPrint [12:55:26]line Счет N : (1)673912 [12:55:26]line ИНН: 02508201610067 [12:55:26]line Контрольно-Кассовый Чек [12:55:26]line ПРОДАЖА [12:55:26]line ТРК (МРК, ГНК) : 32 [12:55:26]line Товар: 2710124130 [12:55:26]line Аи-92-К-5 [12:55:26]line 11.530 * 66.40 [12:55:26]line = 765.59 [12:55:26]line НДС 12% НСП 1% [12:55:26]line > о реализуемом товаре [12:55:26]line ОКРУГЛЕНИЕ: -0.59 [12:55:26]line ИТОГО: 765.00 [12:55:26]line Внесено: 765.00 [12:55:26]line СДАЧА: 0.00 [12:55:26]line НСП 1% : 6.77 [12:55:26]line НДС 12% : 81.30 [12:55:26]line Наличными: 765.00 [12:55:26]line Безнал.: 0.00 [12:55:26]line Место: АЗС № 120 "Партнер Нефть" [12:55:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:55:26]line СНО: Общий режим [12:55:26]line Чек 107 22.06.2024 12:55 [12:55:26]line Смена: 356 ФФД: 1.0 [12:55:26]line ЗНМ: 0300000164 [12:55:26]line РНМ: 0000000000092785 [12:55:26]line Версия ККМ: 001 [12:55:26]line ФМ: 0000000000875093 [12:55:26]line ФД: 104374 [12:55:26]line ФПД: 12553936823805 [12:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104374&fm=12553936823805&tin=02508201610067®Number=0000000000092785&sum=76500 [12:55:26]OFD Sender: Processing packet 104374 [packets to send 17, broken 16] [12:55:26]ProducePacketName [12:55:26]name=ofd_packets/00104374 [12:55:26]OFD Sender: To server: pG, [12:55:26]CommunicateWithHost lk.salyk.kg:30040 [12:55:26]ConnectInit lk.salyk.kg [12:55:26]written 0, free lines is 4095 [12:55:26]Connected sock=10 [12:55: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 7E 1E 07 01 8E 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 0A 2D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1F 00 00 00 00 07 04 06 00 D4 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BD C9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 6A F0 F1 E5 FD 18 A6 9A 90 20 10 7B 35 [12:55: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 C6 72 47 00 F2 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 B6 97 01 00 F4 03 04 00 3C 70 76 66 B6 04 01 00 00 2A 31 6C D3 63 37 BF D7 [12:55:26]CommunicateWithHost err = 0 [12:55:26]CheckOFDResponse [12:55:26]1017 (14) - 77093643461234 [12:55:26]1041 (16) - 0000000000875093 [12:55:26]1040 (4) - 104374 [12:55:26]1012 (4) - 22.06.2024 06:33 [12:55:26]1206 (1) - 0 [12:55:26]OFD Sender: Remove packet 104374 [12:55:26]ProducePacketName [12:55:26]name=ofd_packets/00104374 [12:55:26]NVStorageDeleteData [12:55:26]Write to MH i2c: 01 00 00 3F 10 4F [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 E1 0C 43 [12:55:26]RasterBufferAndPrint [12:55:26]line [12:55:26]line [12:55:26]line [12:55:26]line [12:55:26]line [12:55:26]written 0, free lines is 3303 [12:55:27]MH_Cut [12:55:27]Write to MH i2c: D1 01 00 46 10 01 28 [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 01 00 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 01 00 46 10 00 27 [12:55:27]Write to MH i2c: 01 00 00 47 10 57 [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]OFD Sender: No OFD packet to send [12:55:27]*** Cut start [12:55:27]*** Partial cut [12:55:27]*** CUTSNS_PIN = 1 [12:55:27]*** CUTSNS_PIN = 0 [12:55:28]*** Brake cut motor [12:55:28]Read from MH i2c: 01 [12:55:28]MH_I2C_Read... [12:55:28]*** Stop cut motor [12:55:28]*** Cut end [12:55:28]Read from MH i2c: 01 07 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 47 10 00 00 00 00 00 FF 0F 6C [12:55:28]process_action close_receipt done [12:55:28]requested_data is exist [12:55:28]produce_requested_data [12:55:28]requested_item fm.sn is exist - process it [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 11 00 00 [12:55:28]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [12:55: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:55:28]wFMCommunicate OK [12:55:28]requested_item fd.num is exist - process it [12:55:28]SAM_PROTO_GetFieldsCounters [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 13 00 00 [12:55:28]Write to MH i2c: E2 08 00 49 10 80 13 00 00 00 00 00 00 D5 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 62 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 62 00 49 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F0 [12:55: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 B6 97 01 00 0E 04 04 00 64 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 [12:55:28]wFMCommunicate OK [12:55:28]SAM_PROTO_GetFieldsCounters done [12:55:28]requested_item shift.num is exist - process it [12:55:28]requested_item shift.opened is exist - process it [12:55:28]req_shift_opened [12:55:28]FM_GetShiftState [12:55:28]SAM_PROTO_GetShiftState [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 13 01 00 [12:55:28]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0E 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C9 [12:55:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [12:55:28]wFMCommunicate OK [12:55:28]SAM_PROTO_GetShiftState done [12:55:28]FM_GetShiftState done [12:55:28]req_shift_opened done [12:55:28]requested_item shift.open_date is exist - process it [12:55:28]req_shift_open_date [12:55:28]req_shift_open_date done [12:55:28]produce_requested_data done [12:55:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104374,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [12:55:28]process_action_free close_receipt [12:55:28]json_value_free [12:55:28]json_value_free done [12:55:28]process_json_proto returns [12:55:28]Send response to host [12:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104374,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [12:55:28]free response buf [12:55:28]execute_script done [12:55:28]execute_script returns [12:55:28]free content buf [12:55:28]Sock 9.Close socket [12:55:28]Sock 9.Thread stoped [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56: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:52]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:49]accept exits with 7 [13:02:49]New connection [13:02:49]New thread 3066449252 created [13:02:49]Thread 3066592612 joined [13:02:49]Waiting for new connection... [13:02:49] Sock 7.Parse request [13:02:49]Sock 7.Check first char [13:02:49]Sock 7.First char is OK [13:02:49]request: POST /json_proto HTTP/1.0 [13:02:49]Method: POST [13:02:49]URL: /json_proto [13:02:49]Method is POST - this is cgi request [13:02:49]url: /json_proto [13:02:49]query_string will be loaded in cgi processing [13:02:49]execute_cgi json_proto POST (null) [13:02:49]execute_cgi path=json_proto method=POST [13:02:49]POST find Content-Length [13:02:49]Host: 172.17.38.133:8080 [13:02:49]Content-Length: 682 [13:02:49]Content-Type: application/json [13:02:49] [13:02:49]POST finish read [13:02:49]Found Content-Length = 682 [13:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673914", "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" ] } } [13:02:49]execute_script... [13:02: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)673914", "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" ] } } [13:02:49]POST & json_proto [13:02:49]process_json_proto [13:02:49]json parsed OK: [13:02:49]protocol is kg_v1.0 [13:02:49]action value=close_receipt [13:02:49]process_action close_receipt [13:02:49]cmd_close_receipt [13:02:49]MH_GetDate [13:02:49]Write to MH i2c: F0 00 00 4B 10 4A [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 09 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 09 00 4B 10 00 7A CB 76 66 BD 8F 7C 64 A0 [13:02:49]GetLastDocTimeStamp 1719060925 [13:02:49]current date 1719061370 [13:02:49]FM_GetShiftState [13:02:49]SAM_PROTO_GetShiftState [13:02:49]wFMCommunicate request_size=4 [13:02:49]MH_SAM_APDU [13:02:49]CAPDU: 80 13 01 00 [13:02:49]Write to MH i2c: E2 08 00 4C 10 80 13 01 00 00 00 00 00 D9 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:49]Read from MH i2c: E2 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 0E 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 0E 00 4C 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CB [13:02:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:02:49]wFMCommunicate OK [13:02:49]SAM_PROTO_GetShiftState done [13:02:49]FM_GetShiftState done [13:02:49]opened in 1719016176 [13:02:49]opened+sec_in_day 1719102576 [13:02:49]quantity*price = 100064 [13:02:49]sum+1 = 100066 [13:02: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 СНО: Общий режим Чек 108 22.06.2024 13:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104375 ФПД: 232273203136078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130250&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104375&fm=232273203136078&tin=02508201610067®Number=0000000000092785&sum=100000 [13:02:50]StoreToDocumentArchive [13:02:50]shift 356 fd 104375 [13:02:50]save to /storage/0356/doc_00104375 [13:02:50]save last doc name /storage/0356/doc_00104375 to /storage/kkm_last_doc_name [13:02:50]save OK [13:02:50]Clear old archive folders... [13:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:50]tlvbuf is 00FEBBE0 [13:02:50]SAM_PROTO_ClearQueue [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 09 00 00 [13:02:50]Write to MH i2c: E2 08 00 59 10 80 09 00 00 00 00 00 00 DB [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_ClearQueue done [13:02:50]KKMCreateOFDPacket [13:02:50]OFDProtocolAddRootSTLVToBuf [13:02:50]FM_MakeSignedData [13:02:50]FM_MakeSignedData [13:02:50]SAM_PROTO_SignData [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 01 02 [13:02:50]Write to MH i2c: E2 08 00 5A 10 80 0D 01 02 00 00 00 00 E3 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]wFMCommunicate request_size=255 [13:02:50]MH_SAM_APDU [13:02: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 6C 00 00 00 F4 03 04 00 7A CB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D3 [13:02:50]Write to MH i2c: E2 02 01 5B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 7A CB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D3 00 00 01 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]wFMCommunicate request_size=10 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 02 02 05 40 51 C3 86 4E [13:02:50]Write to MH i2c: E2 0D 00 5C 10 80 0D 02 02 05 00 40 51 C3 86 4E 00 00 18 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 03 02 [13:02:50]Write to MH i2c: E2 08 00 5D 10 80 0D 03 02 00 00 00 00 E8 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0B 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0B 00 5D 10 00 5E 8A FD A1 ED 2B 76 52 90 00 4F [13:02:50]RAPDU: 5E 8A FD A1 ED 2B 76 52 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_SignData done [13:02:50]FM_MakeSignedData done [13:02:50]CreateOFDProtocolMessage [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 11 00 00 [13:02:50]Write to MH i2c: E2 08 00 5E 10 80 11 00 00 00 00 00 00 E8 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 5E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [13:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:02:50]wFMCommunicate OK [13:02:50]CreateOFDProtocolMessage done [13:02:50]OFDSenderStorePacket 104375 [13:02:50]StoreOFDPacket docnum=104375 [13:02: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 0F 01 00 00 3B 10 07 01 9A D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 7A CB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D3 40 51 C3 86 4E 5E 8A FD A1 ED 2B 76 52 [13:02:50]CheckFolder [13:02:50]dirname=/storage/ofd_packets [13:02:50]CheckFolder done [13:02:50]ProducePacketName [13:02:50]name=ofd_packets/00104375 [13:02:50]NVStorageSaveData ofd_packets/00104375 [13:02:50]File name is /storage/ofd_packets/00104375 [13:02:50]Write 301 bytes [13:02:50]NVStorageSaveData done [13:02:50]OFDSenderStorePacket done [13:02:50]KKMCreateOFDPacket done [13:02:50]NVStorageSaveData kkm_last_timestamp [13:02:50]File name is /storage/kkm_last_timestamp [13:02:50]Write 4 bytes [13:02:50]NVStorageSaveData done [13:02:50]ExternCall_PrintAddStr [13:02:50]wPrintStart [13:02:50]Write to MH i2c: 01 00 00 5F 10 6F [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [13:02:50]RasterBufferAndPrint [13:02:50]line Счет N : (1)673914 [13:02:50]line ИНН: 02508201610067 [13:02:50]line Контрольно-Кассовый Чек [13:02:50]line ПРОДАЖА [13:02:50]line ТРК (МРК, ГНК) : 42 [13:02:50]line Товар: 2710124130 [13:02:50]line Аи-92-К-5 [13:02:50]line 15.070 * 66.40 [13:02:50]line = 1000.65 [13:02:50]line НДС 12% НСП 1% [13:02:50]line > о реализуемом товаре [13:02:50]line ОКРУГЛЕНИЕ: -0.65 [13:02:50]line ИТОГО: 1000.00 [13:02:50]line Внесено: 1000.00 [13:02:50]line СДАЧА: 0.00 [13:02:50]line НСП 1% : 8.85 [13:02:50]line НДС 12% : 106.26 [13:02:50]line Наличными: 1000.00 [13:02:50]line Безнал.: 0.00 [13:02:50]line Место: АЗС № 120 "Партнер Нефть" [13:02:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:02:50]line СНО: Общий режим [13:02:50]line Чек 108 22.06.2024 13:02 [13:02:50]line Смена: 356 ФФД: 1.0 [13:02:50]line ЗНМ: 0300000164 [13:02:50]line РНМ: 0000000000092785 [13:02:50]line Версия ККМ: 001 [13:02:50]line ФМ: 0000000000875093 [13:02:50]line ФД: 104375 [13:02:50]line ФПД: 232273203136078 [13:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130250&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104375&fm=232273203136078&tin=02508201610067®Number=0000000000092785&sum=100000 [13:02:51]OFD Sender: Processing packet 104375 [packets to send 17, broken 16] [13:02:51]ProducePacketName [13:02:51]name=ofd_packets/00104375 [13:02:51]OFD Sender: To server: pG, [13:02:51]CommunicateWithHost lk.salyk.kg:30040 [13:02:51]ConnectInit lk.salyk.kg [13:02:51]written 0, free lines is 4095 [13:02:51]Connected sock=10 [13:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B 10 07 01 9A D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 7A CB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D3 40 51 C3 86 4E 5E 8A FD A1 ED 2B 76 52 [13:02: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 F7 C8 47 00 15 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 B7 97 01 00 F4 03 04 00 F9 71 76 66 B6 04 01 00 00 9E 32 22 BC 8E 23 AF 74 [13:02:51]CommunicateWithHost err = 0 [13:02:51]CheckOFDResponse [13:02:51]1017 (14) - 77093643461234 [13:02:51]1041 (16) - 0000000000875093 [13:02:51]1040 (4) - 104375 [13:02:51]1012 (4) - 22.06.2024 06:40 [13:02:51]1206 (1) - 0 [13:02:51]OFD Sender: Remove packet 104375 [13:02:51]ProducePacketName [13:02:51]name=ofd_packets/00104375 [13:02:51]NVStorageDeleteData [13:02:51]Write to MH i2c: 01 00 00 8A 10 9A [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 07 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 07 00 8A 10 00 00 00 00 00 DD 0C 8A [13:02:51]RasterBufferAndPrint [13:02:51]line [13:02:51]line [13:02:51]line [13:02:51]line [13:02:51]line [13:02:51]written 0, free lines is 3300 [13:02:51]MH_Cut [13:02:51]Write to MH i2c: D1 01 00 91 10 01 73 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: D1 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: D1 01 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: D1 01 00 91 10 00 72 [13:02:51]Write to MH i2c: 01 00 00 92 10 A2 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]OFD Sender: No OFD packet to send [13:02:52]*** Cut start [13:02:52]*** Partial cut [13:02:52]*** CUTSNS_PIN = 1 [13:02:52]*** CUTSNS_PIN = 0 [13:02:52]*** Brake cut motor [13:02:52]Read from MH i2c: 01 [13:02:52]MH_I2C_Read... [13:02:52]*** Stop cut motor [13:02:52]*** Cut end [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 92 10 00 00 00 00 00 FF 0F B7 [13:02:52]process_action close_receipt done [13:02:52]requested_data is exist [13:02:52]produce_requested_data [13:02:52]requested_item fm.sn is exist - process it [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 11 00 00 [13:02:52]Write to MH i2c: E2 08 00 93 10 80 11 00 00 00 00 00 00 1D [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 93 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [13:02: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:02:52]wFMCommunicate OK [13:02:52]requested_item fd.num is exist - process it [13:02:52]SAM_PROTO_GetFieldsCounters [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 13 00 00 [13:02:52]Write to MH i2c: E2 08 00 94 10 80 13 00 00 00 00 00 00 20 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 62 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 62 00 94 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3F [13:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_GetFieldsCounters done [13:02:53]requested_item shift.num is exist - process it [13:02:53]requested_item shift.opened is exist - process it [13:02:53]req_shift_opened [13:02:53]FM_GetShiftState [13:02:53]SAM_PROTO_GetShiftState [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 13 01 00 [13:02:53]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 0E 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 14 [13:02:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_GetShiftState done [13:02:53]FM_GetShiftState done [13:02:53]req_shift_opened done [13:02:53]requested_item shift.open_date is exist - process it [13:02:53]req_shift_open_date [13:02:53]req_shift_open_date done [13:02:53]produce_requested_data done [13:02:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104375,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:02:53]process_action_free close_receipt [13:02:53]json_value_free [13:02:53]json_value_free done [13:02:53]process_json_proto returns [13:02:53]Send response to host [13:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104375,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:02:53]free response buf [13:02:53]execute_script done [13:02:53]execute_script returns [13:02:53]free content buf [13:02:53]Sock 7.Close socket [13:02:53]Sock 7.Thread stoped [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:28]accept exits with 9 [13:04:28]New connection [13:04:28]New thread 3066592612 created [13:04:28]Thread 3066449252 joined [13:04:28]Waiting for new connection... [13:04:28] Sock 9.Parse request [13:04:28]Sock 9.Check first char [13:04:28]Sock 9.First char is OK [13:04:28]request: POST /json_proto HTTP/1.0 [13:04:28]Method: POST [13:04:28]URL: /json_proto [13:04:28]Method is POST - this is cgi request [13:04:28]url: /json_proto [13:04:28]query_string will be loaded in cgi processing [13:04:28]execute_cgi json_proto POST (null) [13:04:28]execute_cgi path=json_proto method=POST [13:04:28]POST find Content-Length [13:04:28]Host: 172.17.38.133:8080 [13:04:28]Content-Length: 1174 [13:04:28]Content-Type: application/json [13:04:28] [13:04:28]POST finish read [13:04:28]Found Content-Length = 1174 [13:04: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673913\u000A22.06.2024 12:41\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 44.850 x 72.90\u000A\u0418\u0422\u041E\u0413: 3269.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062865\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:28]execute_script... [13:04: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673913\u000A22.06.2024 12:41\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 44.850 x 72.90\u000A\u0418\u0422\u041E\u0413: 3269.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062865\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:28]POST & json_proto [13:04:28]process_json_proto [13:04:28]json parsed OK: [13:04:28]protocol is kg_v1.0 [13:04:28]action value=print_text [13:04:28]process_action print_text [13:04:28]cmd_print_text [13:04:28]ExternCall_PrintAddStr [13:04:28]wPrintStart [13:04:28]Write to MH i2c: 01 00 00 96 10 A6 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 FF 0F BB [13:04:28]RasterBufferAndPrint [13:04:28]line *****ТОВАРНЫЙ ЧЕК***** [13:04:28]line АЗС 120 [13:04:28]line Партнер нефть [13:04:28]line 02508201610067 [13:04:28]line Кассир : Байбугуева Г. [13:04:28]line Счет N : (1)673913 [13:04:28]line 22.06.2024 12:41 [13:04:28]line ПРОДАЖА [13:04:28]line ТРК (МРК, ГНК): 11 [13:04:28]line Вид ГСМ : 2710194210 [13:04:28]line ДТ(л)-К-5 [13:04:28]line 44.850 x 72.90 [13:04:28]line ИТОГ: 3269.57 [13:04:28]line Тип оплаты: Талоны: ТК ГПНА Online [13:04:28]line 30062865 [13:04:28]line ______________________ [13:04:28]line (подпись) [13:04:28]written 0, free lines is 4095 [13:04:28]Write to MH i2c: 01 00 00 AA 10 BA [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 11 0E E0 [13:04:28]RasterBufferAndPrint [13:04:28]line [13:04:28]line [13:04:28]line [13:04:28]line [13:04:28]line [13:04:28]written 0, free lines is 3602 [13:04:28]MH_Cut [13:04:28]Write to MH i2c: D1 01 00 B1 10 01 93 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: D1 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: D1 01 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: D1 01 00 B1 10 00 92 [13:04:28]Write to MH i2c: 01 00 00 B2 10 C2 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:29]*** Cut start [13:04:29]*** Partial cut [13:04:29]*** CUTSNS_PIN = 1 [13:04:29]*** CUTSNS_PIN = 0 [13:04:29]*** Brake cut motor [13:04:30]Read from MH i2c: 01 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: 01 07 00 [13:04:30]MH_I2C_Read... [13:04:30]*** Stop cut motor [13:04:30]*** Cut end [13:04:30]Read from MH i2c: 01 07 00 B2 10 00 00 00 00 00 FF 0F D7 [13:04:30]process_action print_text done [13:04:30]requested_data is exist [13:04:30]produce_requested_data [13:04:30]requested_item fm.sn is exist - process it [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 11 00 00 [13:04:30]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 17 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [13:04: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:04:30]wFMCommunicate OK [13:04:30]requested_item fd.num is exist - process it [13:04:30]SAM_PROTO_GetFieldsCounters [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 13 00 00 [13:04:30]Write to MH i2c: E2 08 00 B4 10 80 13 00 00 00 00 00 00 40 [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 62 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 62 00 B4 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 5F [13:04: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 B7 97 01 00 0E 04 04 00 64 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:04:30]wFMCommunicate OK [13:04:30]SAM_PROTO_GetFieldsCounters done [13:04:30]requested_item shift.num is exist - process it [13:04:30]requested_item shift.opened is exist - process it [13:04:30]req_shift_opened [13:04:30]FM_GetShiftState [13:04:30]SAM_PROTO_GetShiftState [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 13 01 00 [13:04:30]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0E 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 34 [13:04:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:04:30]wFMCommunicate OK [13:04:30]SAM_PROTO_GetShiftState done [13:04:30]FM_GetShiftState done [13:04:30]req_shift_opened done [13:04:30]requested_item shift.open_date is exist - process it [13:04:30]req_shift_open_date [13:04:30]req_shift_open_date done [13:04:30]produce_requested_data done [13:04:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104375,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:04:30]process_action_free print_text [13:04:30]json_value_free [13:04:30]json_value_free done [13:04:30]process_json_proto returns [13:04:30]Send response to host [13:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104375,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:04:30]free response buf [13:04:30]execute_script done [13:04:30]execute_script returns [13:04:30]free content buf [13:04:30]Sock 9.Close socket [13:04:30]Sock 9.Thread stoped [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:10:57]accept exits with 7 [13:10:57]New connection [13:10:57]New thread 3066449252 created [13:10:57]Thread 3066592612 joined [13:10:57]Waiting for new connection... [13:10:57] Sock 7.Parse request [13:10:57]Sock 7.Check first char [13:10:57]Sock 7.First char is OK [13:10:57]request: POST /json_proto HTTP/1.0 [13:10:57]Method: POST [13:10:57]URL: /json_proto [13:10:57]Method is POST - this is cgi request [13:10:57]url: /json_proto [13:10:57]query_string will be loaded in cgi processing [13:10:57]execute_cgi json_proto POST (null) [13:10:57]execute_cgi path=json_proto method=POST [13:10:57]POST find Content-Length [13:10:57]Host: 172.17.38.133:8080 [13:10:57]Content-Length: 819 [13:10:57]Content-Type: application/json [13:10:57] [13:10:57]POST finish read [13:10:57]Found Content-Length = 819 [13:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673916", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:57]execute_script... [13:10: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)673916", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:57]POST & json_proto [13:10:57]process_json_proto [13:10:57]json parsed OK: [13:10:57]protocol is kg_v1.0 [13:10:57]action value=close_receipt [13:10:57]process_action close_receipt [13:10:57]cmd_close_receipt [13:10:57]MH_GetDate [13:10:57]Write to MH i2c: F0 00 00 B6 10 B5 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 B6 10 00 62 CD 76 66 BD 8F 7C 64 F5 [13:10:57]GetLastDocTimeStamp 1719061370 [13:10:57]current date 1719061858 [13:10:57]FM_GetShiftState [13:10:57]SAM_PROTO_GetShiftState [13:10:57]wFMCommunicate request_size=4 [13:10:57]MH_SAM_APDU [13:10:57]CAPDU: 80 13 01 00 [13:10:57]Write to MH i2c: E2 08 00 B7 10 80 13 01 00 00 00 00 00 44 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:57]Read from MH i2c: E2 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 B7 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 36 [13:10:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:10:57]wFMCommunicate OK [13:10:57]SAM_PROTO_GetShiftState done [13:10:57]FM_GetShiftState done [13:10:57]opened in 1719016176 [13:10:57]opened+sec_in_day 1719102576 [13:10:57]quantity*price = 150064 [13:10:57]sum+1 = 150065 [13:10:57]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 СНО: Общий режим Чек 109 22.06.2024 13:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104376 ФПД: 160949209279340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104376&fm=160949209279340&tin=02508201610067®Number=0000000000092785&sum=150064 [13:10:58]StoreToDocumentArchive [13:10:58]shift 356 fd 104376 [13:10:58]save to /storage/0356/doc_00104376 [13:10:58]save last doc name /storage/0356/doc_00104376 to /storage/kkm_last_doc_name [13:10:58]save OK [13:10:58]Clear old archive folders... [13:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:58]tlvbuf is 00FC8660 [13:10:58]SAM_PROTO_ClearQueue [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 09 00 00 [13:10:58]Write to MH i2c: E2 08 00 C4 10 80 09 00 00 00 00 00 00 46 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_ClearQueue done [13:10:58]KKMCreateOFDPacket [13:10:58]OFDProtocolAddRootSTLVToBuf [13:10:58]FM_MakeSignedData [13:10:58]FM_MakeSignedData [13:10:58]SAM_PROTO_SignData [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 01 02 [13:10:58]Write to MH i2c: E2 08 00 C5 10 80 0D 01 02 00 00 00 00 4E [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=255 [13:10:58]MH_SAM_APDU [13:10: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 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 6D 00 00 00 F4 03 04 00 63 CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 [13:10:58]Write to MH i2c: E2 02 01 C6 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 63 CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 00 00 EE [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 03 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [13:10:59]RAPDU: 90 00 [13:10:59]wFMCommunicate OK [13:10:59]wFMCommunicate request_size=10 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 0D 02 02 05 61 E8 72 2B 6C [13:10:59]Write to MH i2c: E2 0D 00 C7 10 80 0D 02 02 05 00 61 E8 72 2B 6C 00 00 AD [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 03 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [13:10:59]RAPDU: 90 00 [13:10:59]wFMCommunicate OK [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 0D 03 02 [13:10:59]Write to MH i2c: E2 08 00 C8 10 80 0D 03 02 00 00 00 00 53 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0B 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0B 00 C8 10 00 B5 D2 0B F9 25 54 85 7E 90 00 5B [13:10:59]RAPDU: B5 D2 0B F9 25 54 85 7E 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_SignData done [13:10:59]FM_MakeSignedData done [13:10:59]CreateOFDProtocolMessage [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 11 00 00 [13:10:59]Write to MH i2c: E2 08 00 C9 10 80 11 00 00 00 00 00 00 53 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 C9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [13:10: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:10:59]wFMCommunicate OK [13:10:59]CreateOFDProtocolMessage done [13:10:59]OFDSenderStorePacket 104376 [13:10:59]StoreOFDPacket docnum=104376 [13:10: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 10 F2 07 01 D2 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 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 6D 00 00 00 F4 03 04 00 63 CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 61 E8 72 2B 6C B5 D2 0B F9 25 54 85 7E [13:10:59]CheckFolder [13:10:59]dirname=/storage/ofd_packets [13:10:59]CheckFolder done [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00104376 [13:10:59]NVStorageSaveData ofd_packets/00104376 [13:10:59]File name is /storage/ofd_packets/00104376 [13:10:59]Write 301 bytes [13:10:59]NVStorageSaveData done [13:10:59]OFDSenderStorePacket done [13:10:59]KKMCreateOFDPacket done [13:10:59]NVStorageSaveData kkm_last_timestamp [13:10:59]File name is /storage/kkm_last_timestamp [13:10:59]Write 4 bytes [13:10:59]NVStorageSaveData done [13:10:59]ExternCall_PrintAddStr [13:10:59]wPrintStart [13:10:59]Write to MH i2c: 01 00 00 CA 10 DA [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 CA 10 00 00 00 00 00 FF 0F EF [13:10:59]RasterBufferAndPrint [13:10:59]line Счет N : (1)673916 [13:10:59]line ИНН: 02508201610067 [13:10:59]line Контрольно-Кассовый Чек [13:10:59]line ПРОДАЖА [13:10:59]line ТРК (МРК, ГНК) : 42 [13:10:59]line Товар: 2710124130 [13:10:59]line Аи-92-К-5 [13:10:59]line 22.600 * 66.40 [13:10:59]line = 1500.64 [13:10:59]line НДС 12% НСП 1% [13:10:59]line > о реализуемом товаре [13:10:59]line ИТОГО: 1500.64 [13:10:59]line НСП 1% : 13.28 [13:10:59]line НДС 12% : 159.36 [13:10:59]line Наличными: 0.00 [13:10:59]line Безнал.: 1500.64 [13:10:59]line Место: АЗС № 120 "Партнер Нефть" [13:10:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:10:59]line СНО: Общий режим [13:10:59]line Чек 109 22.06.2024 13:10 [13:10:59]line Смена: 356 ФФД: 1.0 [13:10:59]line ЗНМ: 0300000164 [13:10:59]line РНМ: 0000000000092785 [13:10:59]line Версия ККМ: 001 [13:10:59]line Платежная система: Бакай Банк [13:10:59]line ФМ: 0000000000875093 [13:10:59]line ФД: 104376 [13:10:59]line ФПД: 160949209279340 [13:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104376&fm=160949209279340&tin=02508201610067®Number=0000000000092785&sum=150064 [13:10:59]OFD Sender: Processing packet 104376 [packets to send 17, broken 16] [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00104376 [13:10:59]OFD Sender: To server: pG, [13:10:59]CommunicateWithHost lk.salyk.kg:30040 [13:10:59]ConnectInit lk.salyk.kg [13:10:59]written 0, free lines is 4095 [13:10:59]Connected sock=10 [13:10: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 10 F2 07 01 D2 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 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 6D 00 00 00 F4 03 04 00 63 CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 61 E8 72 2B 6C B5 D2 0B F9 25 54 85 7E [13:11: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 77 ED 47 00 0D 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 B8 97 01 00 F4 03 04 00 E2 73 76 66 B6 04 01 00 00 AF CF E1 38 0D 32 08 B4 [13:11:00]CommunicateWithHost err = 0 [13:11:00]CheckOFDResponse [13:11:00]1017 (14) - 77093643461234 [13:11:00]1041 (16) - 0000000000875093 [13:11:00]1040 (4) - 104376 [13:11:00]1012 (4) - 22.06.2024 06:49 [13:11:00]1206 (1) - 0 [13:11:00]OFD Sender: Remove packet 104376 [13:11:00]ProducePacketName [13:11:00]name=ofd_packets/00104376 [13:11:00]NVStorageDeleteData [13:11:00]Write to MH i2c: 01 00 00 F4 10 04 [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: 01 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: 01 07 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 EB 0C 02 [13:11:00]RasterBufferAndPrint [13:11:00]line [13:11:00]line [13:11:00]line [13:11:00]line [13:11:00]line [13:11:00]written 0, free lines is 3314 [13:11:00]MH_Cut [13:11:00]Write to MH i2c: D1 01 00 FB 10 01 DD [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: D1 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: D1 01 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: D1 01 00 FB 10 00 DC [13:11:00]Write to MH i2c: 01 00 00 FC 10 0C [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]OFD Sender: No OFD packet to send [13:11:00]*** Cut start [13:11:00]*** Partial cut [13:11:00]*** CUTSNS_PIN = 1 [13:11:00]*** CUTSNS_PIN = 0 [13:11:01]*** Brake cut motor [13:11:01]Read from MH i2c: 01 [13:11:01]MH_I2C_Read... [13:11:01]*** Stop cut motor [13:11:01]*** Cut end [13:11:01]Read from MH i2c: 01 07 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 FF 0F 21 [13:11:01]process_action close_receipt done [13:11:01]requested_data is exist [13:11:01]produce_requested_data [13:11:01]requested_item fm.sn is exist - process it [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 11 00 00 [13:11:01]Write to MH i2c: E2 08 00 FD 10 80 11 00 00 00 00 00 00 87 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 17 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 17 00 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [13:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:11:01]wFMCommunicate OK [13:11:01]requested_item fd.num is exist - process it [13:11:01]SAM_PROTO_GetFieldsCounters [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 13 00 00 [13:11:01]Write to MH i2c: E2 08 00 FE 10 80 13 00 00 00 00 00 00 8A [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 62 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 62 00 FE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 AD [13:11: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 B8 97 01 00 0E 04 04 00 64 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:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetFieldsCounters done [13:11:01]requested_item shift.num is exist - process it [13:11:01]requested_item shift.opened is exist - process it [13:11:01]req_shift_opened [13:11:01]FM_GetShiftState [13:11:01]SAM_PROTO_GetShiftState [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 13 01 00 [13:11:01]Write to MH i2c: E2 08 00 FF 10 80 13 01 00 00 00 00 00 8C [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 FF 10 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7E [13:11:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetShiftState done [13:11:01]FM_GetShiftState done [13:11:01]req_shift_opened done [13:11:01]requested_item shift.open_date is exist - process it [13:11:01]req_shift_open_date [13:11:01]req_shift_open_date done [13:11:01]produce_requested_data done [13:11:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104376,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:11:01]process_action_free close_receipt [13:11:01]json_value_free [13:11:01]json_value_free done [13:11:01]process_json_proto returns [13:11:01]Send response to host [13:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104376,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:11:01]free response buf [13:11:01]execute_script done [13:11:01]execute_script returns [13:11:01]free content buf [13:11:01]Sock 7.Close socket [13:11:01]Sock 7.Thread stoped [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:53]accept exits with 9 [13:11:53]New connection [13:11:53]New thread 3066592612 created [13:11:53]Thread 3066449252 joined [13:11:53]Waiting for new connection... [13:11:53] Sock 9.Parse request [13:11:53]Sock 9.Check first char [13:11:53]Sock 9.First char is OK [13:11:53]request: POST /json_proto HTTP/1.0 [13:11:53]Method: POST [13:11:53]URL: /json_proto [13:11:53]Method is POST - this is cgi request [13:11:53]url: /json_proto [13:11:53]query_string will be loaded in cgi processing [13:11:53]execute_cgi json_proto POST (null) [13:11:53]execute_cgi path=json_proto method=POST [13:11:53]POST find Content-Length [13:11:53]Host: 172.17.38.133:8080 [13:11:53]Content-Length: 819 [13:11:53]Content-Type: application/json [13:11:53] [13:11:53]POST finish read [13:11:53]Found Content-Length = 819 [13:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673915", "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.170, "sum" : 2003.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" : 2003.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:53]execute_script... [13:11:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673915", "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.170, "sum" : 2003.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" : 2003.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:53]POST & json_proto [13:11:53]process_json_proto [13:11:53]json parsed OK: [13:11:53]protocol is kg_v1.0 [13:11:53]action value=close_receipt [13:11:53]process_action close_receipt [13:11:53]cmd_close_receipt [13:11:53]MH_GetDate [13:11:53]Write to MH i2c: F0 00 00 00 11 00 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: F0 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: F0 09 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: F0 09 00 00 11 00 9B CD 76 66 BD 8F 7C 64 79 [13:11:53]GetLastDocTimeStamp 1719061859 [13:11:53]current date 1719061915 [13:11:53]FM_GetShiftState [13:11:53]SAM_PROTO_GetShiftState [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 13 01 00 [13:11:53]Write to MH i2c: E2 08 00 01 11 80 13 01 00 00 00 00 00 8F [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0E 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0E 00 01 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 81 [13:11:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:11:53]wFMCommunicate OK [13:11:53]SAM_PROTO_GetShiftState done [13:11:53]FM_GetShiftState done [13:11:53]opened in 1719016176 [13:11:53]opened+sec_in_day 1719102576 [13:11:53]quantity*price = 200328 [13:11:53]sum+1 = 200330 [13:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2003.29 НСП 1% : 17.73 НДС 12% : 212.74 Наличными: 0.00 Безнал.: 2003.29 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 22.06.2024 13:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104377 ФПД: 132523133878316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131155&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104377&fm=132523133878316&tin=02508201610067®Number=0000000000092785&sum=200329 [13:11:55]StoreToDocumentArchive [13:11:55]shift 356 fd 104377 [13:11:55]save to /storage/0356/doc_00104377 [13:11:55]save last doc name /storage/0356/doc_00104377 to /storage/kkm_last_doc_name [13:11:55]save OK [13:11:55]Clear old archive folders... [13:11:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:55]tlvbuf is 00FDD350 [13:11:55]SAM_PROTO_ClearQueue [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 09 00 00 [13:11:55]Write to MH i2c: E2 08 00 0E 11 80 09 00 00 00 00 00 00 91 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [13:11:55]RAPDU: 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_ClearQueue done [13:11:55]KKMCreateOFDPacket [13:11:55]OFDProtocolAddRootSTLVToBuf [13:11:55]FM_MakeSignedData [13:11:55]FM_MakeSignedData [13:11:55]SAM_PROTO_SignData [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 0D 01 02 [13:11:55]Write to MH i2c: E2 08 00 0F 11 80 0D 01 02 00 00 00 00 99 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [13:11:55]RAPDU: 90 00 [13:11:55]wFMCommunicate OK [13:11:55]wFMCommunicate request_size=255 [13:11:55]MH_SAM_APDU [13:11: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 DA 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 89 0E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 0E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9B CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 78 [13:11:55]Write to MH i2c: E2 02 01 10 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 89 0E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 0E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9B CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 78 00 00 0F [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [13:11:55]RAPDU: 90 00 [13:11:55]wFMCommunicate OK [13:11:55]wFMCommunicate request_size=10 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 0D 02 02 05 87 72 51 C0 2C [13:11:55]Write to MH i2c: E2 0D 00 11 11 80 0D 02 02 05 00 87 72 51 C0 2C 00 00 DC [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [13:11:55]RAPDU: 90 00 [13:11:55]wFMCommunicate OK [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 0D 03 02 [13:11:55]Write to MH i2c: E2 08 00 12 11 80 0D 03 02 00 00 00 00 9E [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0B 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0B 00 12 11 00 82 D3 B7 8A C1 7E AF 56 90 00 79 [13:11:55]RAPDU: 82 D3 B7 8A C1 7E AF 56 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_SignData done [13:11:55]FM_MakeSignedData done [13:11:55]CreateOFDProtocolMessage [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 11 00 00 [13:11:55]Write to MH i2c: E2 08 00 13 11 80 11 00 00 00 00 00 00 9E [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 13 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [13:11: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:11:55]wFMCommunicate OK [13:11:55]CreateOFDProtocolMessage done [13:11:55]OFDSenderStorePacket 104377 [13:11:55]StoreOFDPacket docnum=104377 [13:11: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 DC 20 07 01 0C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 89 0E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 0E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9B CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 78 87 72 51 C0 2C 82 D3 B7 8A C1 7E AF 56 [13:11:55]CheckFolder [13:11:55]dirname=/storage/ofd_packets [13:11:55]CheckFolder done [13:11:55]ProducePacketName [13:11:55]name=ofd_packets/00104377 [13:11:55]NVStorageSaveData ofd_packets/00104377 [13:11:55]File name is /storage/ofd_packets/00104377 [13:11:55]Write 301 bytes [13:11:55]NVStorageSaveData done [13:11:55]OFDSenderStorePacket done [13:11:55]KKMCreateOFDPacket done [13:11:55]NVStorageSaveData kkm_last_timestamp [13:11:55]File name is /storage/kkm_last_timestamp [13:11:55]Write 4 bytes [13:11:55]NVStorageSaveData done [13:11:55]ExternCall_PrintAddStr [13:11:55]wPrintStart [13:11:55]Write to MH i2c: 01 00 00 14 11 25 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 FF 0F 3A [13:11:55]RasterBufferAndPrint [13:11:55]line Счет N : (1)673915 [13:11:55]line ИНН: 02508201610067 [13:11:55]line Контрольно-Кассовый Чек [13:11:55]line ПРОДАЖА [13:11:55]line ТРК (МРК, ГНК) : 32 [13:11:55]line Товар: 2710124130 [13:11:55]line Аи-92-К-5 [13:11:55]line 30.170 * 66.40 [13:11:55]line = 2003.29 [13:11:55]line НДС 12% НСП 1% [13:11:55]line > о реализуемом товаре [13:11:55]line ИТОГО: 2003.29 [13:11:55]line НСП 1% : 17.73 [13:11:55]line НДС 12% : 212.74 [13:11:55]line Наличными: 0.00 [13:11:55]line Безнал.: 2003.29 [13:11:55]line Место: АЗС № 120 "Партнер Нефть" [13:11:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:11:55]line СНО: Общий режим [13:11:55]line Чек 110 22.06.2024 13:11 [13:11:55]line Смена: 356 ФФД: 1.0 [13:11:55]line ЗНМ: 0300000164 [13:11:55]line РНМ: 0000000000092785 [13:11:55]line Версия ККМ: 001 [13:11:55]line Платежная система: Бакай Банк [13:11:55]line ФМ: 0000000000875093 [13:11:55]line ФД: 104377 [13:11:55]line ФПД: 132523133878316 [13:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131155&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104377&fm=132523133878316&tin=02508201610067®Number=0000000000092785&sum=200329 [13:11:55]OFD Sender: Processing packet 104377 [packets to send 17, broken 16] [13:11:55]ProducePacketName [13:11:55]name=ofd_packets/00104377 [13:11:55]OFD Sender: To server: pG, [13:11:55]CommunicateWithHost lk.salyk.kg:30040 [13:11:55]ConnectInit lk.salyk.kg [13:11:55]written 0, free lines is 4095 [13:11:56]Connected sock=10 [13:11: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 DC 20 07 01 0C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 89 0E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 0E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 0E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9B CD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 78 87 72 51 C0 2C 82 D3 B7 8A C1 7E AF 56 [13:11: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 25 29 47 00 F5 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 97 01 00 F4 03 04 00 1A 74 76 66 B6 04 01 00 00 73 CE 33 5C DD C3 34 F8 [13:11:56]CommunicateWithHost err = 0 [13:11:56]CheckOFDResponse [13:11:56]1017 (14) - 77093643461234 [13:11:56]1041 (16) - 0000000000875093 [13:11:56]1040 (4) - 104377 [13:11:56]1012 (4) - 22.06.2024 06:50 [13:11:56]1206 (1) - 0 [13:11:56]OFD Sender: Remove packet 104377 [13:11:56]ProducePacketName [13:11:56]name=ofd_packets/00104377 [13:11:56]NVStorageDeleteData [13:11:56]Write to MH i2c: 01 00 00 3E 11 4F [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: 01 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: 01 07 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 EC 0C 4E [13:11:56]RasterBufferAndPrint [13:11:56]line [13:11:56]line [13:11:56]line [13:11:56]line [13:11:56]line [13:11:56]written 0, free lines is 3314 [13:11:56]MH_Cut [13:11:56]Write to MH i2c: D1 01 00 45 11 01 28 [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: D1 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: D1 01 00 [13:11:56]MH_I2C_Read... [13:11:56]Read from MH i2c: D1 01 00 45 11 00 27 [13:11:56]Write to MH i2c: 01 00 00 46 11 57 [13:11:56]Write i2c OK [13:11:56]MH_I2C_Read... [13:11:56]OFD Sender: No OFD packet to send [13:11:57]*** Cut start [13:11:57]*** Partial cut [13:11:57]*** CUTSNS_PIN = 1 [13:11:57]*** CUTSNS_PIN = 0 [13:11:57]*** Brake cut motor [13:11:57]Read from MH i2c: 01 [13:11:57]MH_I2C_Read... [13:11:57]*** Stop cut motor [13:11:57]*** Cut end [13:11:57]Read from MH i2c: 01 07 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 FF 0F 6C [13:11:57]process_action close_receipt done [13:11:57]requested_data is exist [13:11:57]produce_requested_data [13:11:57]requested_item fm.sn is exist - process it [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 11 00 00 [13:11:57]Write to MH i2c: E2 08 00 47 11 80 11 00 00 00 00 00 00 D2 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 17 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 17 00 47 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [13:11: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:11:57]wFMCommunicate OK [13:11:57]requested_item fd.num is exist - process it [13:11:57]SAM_PROTO_GetFieldsCounters [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 13 00 00 [13:11:57]Write to MH i2c: E2 08 00 48 11 80 13 00 00 00 00 00 00 D5 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 62 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 62 00 48 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 FC [13:11: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 B9 97 01 00 0E 04 04 00 64 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:11:57]wFMCommunicate OK [13:11:57]SAM_PROTO_GetFieldsCounters done [13:11:57]requested_item shift.num is exist - process it [13:11:57]requested_item shift.opened is exist - process it [13:11:57]req_shift_opened [13:11:57]FM_GetShiftState [13:11:57]SAM_PROTO_GetShiftState [13:11:57]wFMCommunicate request_size=4 [13:11:57]MH_SAM_APDU [13:11:57]CAPDU: 80 13 01 00 [13:11:57]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [13:11:57]Write i2c OK [13:11:57]MH_I2C_Read... [13:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:57]Read from MH i2c: E2 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 0E 00 [13:11:57]MH_I2C_Read... [13:11:57]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C9 [13:11:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:11:57]wFMCommunicate OK [13:11:57]SAM_PROTO_GetShiftState done [13:11:57]FM_GetShiftState done [13:11:57]req_shift_opened done [13:11:57]requested_item shift.open_date is exist - process it [13:11:57]req_shift_open_date [13:11:57]req_shift_open_date done [13:11:57]produce_requested_data done [13:11:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104377,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:11:57]process_action_free close_receipt [13:11:57]json_value_free [13:11:57]json_value_free done [13:11:57]process_json_proto returns [13:11:57]Send response to host [13:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104377,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:11:57]free response buf [13:11:57]execute_script done [13:11:57]execute_script returns [13:11:57]free content buf [13:11:57]Sock 9.Close socket [13:11:57]Sock 9.Thread stoped [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:16]accept exits with 7 [13:16:16]New connection [13:16:16]New thread 3066449252 created [13:16:16]Thread 3066592612 joined [13:16:16]Waiting for new connection... [13:16:16] Sock 7.Parse request [13:16:16]Sock 7.Check first char [13:16:16]Sock 7.First char is OK [13:16:16]request: POST /json_proto HTTP/1.0 [13:16:16]Method: POST [13:16:16]URL: /json_proto [13:16:16]Method is POST - this is cgi request [13:16:16]url: /json_proto [13:16:16]query_string will be loaded in cgi processing [13:16:16]execute_cgi json_proto POST (null) [13:16:16]execute_cgi path=json_proto method=POST [13:16:16]POST find Content-Length [13:16:16]Host: 172.17.38.133:8080 [13:16:16]Content-Length: 1207 [13:16:16]Content-Type: application/json [13:16:16] [13:16:16]POST finish read [13:16:16]Found Content-Length = 1207 [13:16:16]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673917\u000A22.06.2024 12:53\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\u000A98324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:16]execute_script... [13:16:16]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673917\u000A22.06.2024 12:53\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\u000A98324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:16]POST & json_proto [13:16:16]process_json_proto [13:16:16]json parsed OK: [13:16:16]protocol is kg_v1.0 [13:16:16]action value=print_text [13:16:16]process_action print_text [13:16:16]cmd_print_text [13:16:16]ExternCall_PrintAddStr [13:16:16]wPrintStart [13:16:16]Write to MH i2c: 01 00 00 4A 11 5B [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [13:16:16]RasterBufferAndPrint [13:16:16]line *****ТОВАРНЫЙ ЧЕК***** [13:16:16]line АЗС 120 [13:16:16]line Партнер нефть [13:16:16]line 02508201610067 [13:16:16]line Кассир : Байбугуева Г. [13:16:16]line Счет N : (1)673917 [13:16:16]line 22.06.2024 12:53 [13:16:16]line ПРОДАЖА [13:16:16]line ТРК (МРК, ГНК): 31 [13:16:16]line Вид ГСМ : 2710124500 [13:16:16]line Аи-95-К-5 [13:16:16]line 40.600 x 73.90 [13:16:16]line ИТОГ: 3000.34 [13:16:16]line Тип оплаты: Талоны: Топливная Карта [13:16:16]line 98324 [13:16:16]line ______________________ [13:16:16]line (подпись) [13:16:16]written 0, free lines is 4095 [13:16:17]Write to MH i2c: 01 00 00 5E 11 6F [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 5E 11 00 00 00 00 00 12 0E 96 [13:16:17]RasterBufferAndPrint [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]written 0, free lines is 3604 [13:16:17]MH_Cut [13:16:17]Write to MH i2c: D1 01 00 65 11 01 48 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 01 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 01 00 65 11 00 47 [13:16:17]Write to MH i2c: 01 00 00 66 11 77 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]OFD Sender: No OFD packet to send [13:16:17]*** Cut start [13:16:17]*** Partial cut [13:16:17]*** CUTSNS_PIN = 1 [13:16:17]*** CUTSNS_PIN = 0 [13:16:17]*** Brake cut motor [13:16:18]Read from MH i2c: 01 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: 01 07 00 [13:16:18]MH_I2C_Read... [13:16:18]*** Stop cut motor [13:16:18]*** Cut end [13:16:18]Read from MH i2c: 01 07 00 66 11 00 00 00 00 00 FF 0F 8C [13:16:18]process_action print_text done [13:16:18]requested_data is exist [13:16:18]produce_requested_data [13:16:18]requested_item fm.sn is exist - process it [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 11 00 00 [13:16:18]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 17 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [13:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:16:18]wFMCommunicate OK [13:16:18]requested_item fd.num is exist - process it [13:16:18]SAM_PROTO_GetFieldsCounters [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 13 00 00 [13:16:18]Write to MH i2c: E2 08 00 68 11 80 13 00 00 00 00 00 00 F5 [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 62 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 62 00 68 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 1C [13:16: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 B9 97 01 00 0E 04 04 00 64 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:16:18]wFMCommunicate OK [13:16:18]SAM_PROTO_GetFieldsCounters done [13:16:18]requested_item shift.num is exist - process it [13:16:18]requested_item shift.opened is exist - process it [13:16:18]req_shift_opened [13:16:18]FM_GetShiftState [13:16:18]SAM_PROTO_GetShiftState [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 13 01 00 [13:16:18]Write to MH i2c: E2 08 00 69 11 80 13 01 00 00 00 00 00 F7 [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 0E 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 0E 00 69 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E9 [13:16:18]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:16:18]wFMCommunicate OK [13:16:18]SAM_PROTO_GetShiftState done [13:16:18]FM_GetShiftState done [13:16:18]req_shift_opened done [13:16:18]requested_item shift.open_date is exist - process it [13:16:18]req_shift_open_date [13:16:18]req_shift_open_date done [13:16:18]produce_requested_data done [13:16:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104377,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:16:18]process_action_free print_text [13:16:18]json_value_free [13:16:18]json_value_free done [13:16:18]process_json_proto returns [13:16:18]Send response to host [13:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104377,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:16:18]free response buf [13:16:18]execute_script done [13:16:18]execute_script returns [13:16:18]free content buf [13:16:18]Sock 7.Close socket [13:16:18]Sock 7.Thread stoped [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:31]accept exits with 9 [13:18:31]New connection [13:18:31]New thread 3066592612 created [13:18:31]Thread 3066449252 joined [13:18:31]Waiting for new connection... [13:18:31] Sock 9.Parse request [13:18:31]Sock 9.Check first char [13:18:31]Sock 9.First char is OK [13:18:31]request: POST /json_proto HTTP/1.0 [13:18:31]Method: POST [13:18:31]URL: /json_proto [13:18:31]Method is POST - this is cgi request [13:18:31]url: /json_proto [13:18:31]query_string will be loaded in cgi processing [13:18:31]execute_cgi json_proto POST (null) [13:18:31]execute_cgi path=json_proto method=POST [13:18:31]POST find Content-Length [13:18:31]Host: 172.17.38.133:8080 [13:18:31]Content-Length: 801 [13:18:31]Content-Type: application/json [13:18:31] [13:18:31]POST finish read [13:18:31]Found Content-Length = 801 [13:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673919", "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 }]} ], "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:18:31]execute_script... [13:18: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)673919", "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 }]} ], "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:18:31]POST & json_proto [13:18:31]process_json_proto [13:18:31]json parsed OK: [13:18:31]protocol is kg_v1.0 [13:18:31]action value=close_receipt [13:18:31]process_action close_receipt [13:18:31]cmd_close_receipt [13:18:31]MH_GetDate [13:18:31]Write to MH i2c: F0 00 00 6A 11 6A [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: F0 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: F0 09 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: F0 09 00 6A 11 00 28 CF 76 66 BD 8F 7C 64 72 [13:18:31]GetLastDocTimeStamp 1719061915 [13:18:31]current date 1719062312 [13:18:31]FM_GetShiftState [13:18:31]SAM_PROTO_GetShiftState [13:18:31]wFMCommunicate request_size=4 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 13 01 00 [13:18:31]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 0E 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 EB [13:18:31]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:18:31]wFMCommunicate OK [13:18:31]SAM_PROTO_GetShiftState done [13:18:31]FM_GetShiftState done [13:18:31]opened in 1719016176 [13:18:31]opened+sec_in_day 1719102576 [13:18:31]quantity*price = 70052 [13:18:31]sum+1 = 70053 [13:18:31]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 СНО: Общий режим Чек 111 22.06.2024 13:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104378 ФПД: 63975795514836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104378&fm=63975795514836&tin=02508201610067®Number=0000000000092785&sum=70052 [13:18:32]StoreToDocumentArchive [13:18:32]shift 356 fd 104378 [13:18:32]save to /storage/0356/doc_00104378 [13:18:32]save last doc name /storage/0356/doc_00104378 to /storage/kkm_last_doc_name [13:18:32]save OK [13:18:32]Clear old archive folders... [13:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:32]tlvbuf is 01002A40 [13:18:32]SAM_PROTO_ClearQueue [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 09 00 00 [13:18:32]Write to MH i2c: E2 08 00 78 11 80 09 00 00 00 00 00 00 FB [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [13:18:32]RAPDU: 90 00 [13:18:32]wFMCommunicate OK [13:18:32]SAM_PROTO_ClearQueue done [13:18:32]KKMCreateOFDPacket [13:18:32]OFDProtocolAddRootSTLVToBuf [13:18:32]FM_MakeSignedData [13:18:32]FM_MakeSignedData [13:18:32]SAM_PROTO_SignData [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 0D 01 02 [13:18:32]Write to MH i2c: E2 08 00 79 11 80 0D 01 02 00 00 00 00 03 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [13:18:32]RAPDU: 90 00 [13:18:32]wFMCommunicate OK [13:18:32]wFMCommunicate request_size=255 [13:18:32]MH_SAM_APDU [13:18: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 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 6F 00 00 00 F4 03 04 00 28 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3A [13:18:32]Write to MH i2c: E2 02 01 7A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 28 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3A 00 00 6A [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [13:18:32]RAPDU: 90 00 [13:18:32]wFMCommunicate OK [13:18:32]wFMCommunicate request_size=10 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 0D 02 02 05 2F 86 90 DD D4 [13:18:32]Write to MH i2c: E2 0D 00 7B 11 80 0D 02 02 05 00 2F 86 90 DD D4 00 00 06 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [13:18:32]RAPDU: 90 00 [13:18:32]wFMCommunicate OK [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 0D 03 02 [13:18:32]Write to MH i2c: E2 08 00 7C 11 80 0D 03 02 00 00 00 00 08 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 0B 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 0B 00 7C 11 00 50 D2 38 84 98 21 D7 0E 90 00 85 [13:18:32]RAPDU: 50 D2 38 84 98 21 D7 0E 90 00 [13:18:32]wFMCommunicate OK [13:18:32]SAM_PROTO_SignData done [13:18:32]FM_MakeSignedData done [13:18:32]CreateOFDProtocolMessage [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 11 00 00 [13:18:32]Write to MH i2c: E2 08 00 7D 11 80 11 00 00 00 00 00 00 08 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 17 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 17 00 7D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [13:18: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:18:32]wFMCommunicate OK [13:18:32]CreateOFDProtocolMessage done [13:18:32]OFDSenderStorePacket 104378 [13:18:32]StoreOFDPacket docnum=104378 [13:18: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 26 E3 07 01 B5 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 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 6F 00 00 00 F4 03 04 00 28 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3A 2F 86 90 DD D4 50 D2 38 84 98 21 D7 0E [13:18:32]CheckFolder [13:18:32]dirname=/storage/ofd_packets [13:18:32]CheckFolder done [13:18:32]ProducePacketName [13:18:32]name=ofd_packets/00104378 [13:18:32]NVStorageSaveData ofd_packets/00104378 [13:18:32]File name is /storage/ofd_packets/00104378 [13:18:32]Write 301 bytes [13:18:32]NVStorageSaveData done [13:18:32]OFDSenderStorePacket done [13:18:32]KKMCreateOFDPacket done [13:18:32]NVStorageSaveData kkm_last_timestamp [13:18:32]File name is /storage/kkm_last_timestamp [13:18:32]Write 4 bytes [13:18:32]NVStorageSaveData done [13:18:32]ExternCall_PrintAddStr [13:18:32]wPrintStart [13:18:32]Write to MH i2c: 01 00 00 7E 11 8F [13:18:32]OFD Sender: Processing packet 104378 [packets to send 17, broken 16] [13:18:32]ProducePacketName [13:18:32]name=ofd_packets/00104378 [13:18:32]OFD Sender: To server: pG, [13:18:32]CommunicateWithHost lk.salyk.kg:30040 [13:18:32]ConnectInit lk.salyk.kg [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 FF 0F A4 [13:18:32]RasterBufferAndPrint [13:18:32]line Счет N : (1)673919 [13:18:32]line ИНН: 02508201610067 [13:18:32]line Контрольно-Кассовый Чек [13:18:32]line ПРОДАЖА [13:18:32]line ТРК (МРК, ГНК) : 42 [13:18:32]line Товар: 2710124130 [13:18:32]line Аи-92-К-5 [13:18:32]line 10.550 * 66.40 [13:18:32]line = 700.52 [13:18:32]line НДС 12% НСП 1% [13:18:32]line > о реализуемом товаре [13:18:32]line ИТОГО: 700.52 [13:18:32]line НСП 1% : 6.20 [13:18:32]line НДС 12% : 74.39 [13:18:32]line Наличными: 0.00 [13:18:32]line Безнал.: 700.52 [13:18:32]line Место: АЗС № 120 "Партнер Нефть" [13:18:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:18:32]line СНО: Общий режим [13:18:32]line Чек 111 22.06.2024 13:18 [13:18:32]line Смена: 356 ФФД: 1.0 [13:18:32]line ЗНМ: 0300000164 [13:18:32]line РНМ: 0000000000092785 [13:18:32]line Версия ККМ: 001 [13:18:32]line Платежная система: O! деньги [13:18:32]line ФМ: 0000000000875093 [13:18:32]line ФД: 104378 [13:18:32]line ФПД: 63975795514836 [13:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104378&fm=63975795514836&tin=02508201610067®Number=0000000000092785&sum=70052 [13:18:33]Connected sock=10 [13:18: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 26 E3 07 01 B5 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 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 6F 00 00 00 F4 03 04 00 28 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3A 2F 86 90 DD D4 50 D2 38 84 98 21 D7 0E [13:18:33]written 0, free lines is 4095 [13:18: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 DA 9B 47 00 2D 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 BA 97 01 00 F4 03 04 00 A7 75 76 66 B6 04 01 00 00 8B 00 FC BA 8F 66 6E D0 [13:18:33]CommunicateWithHost err = 0 [13:18:33]CheckOFDResponse [13:18:33]1017 (14) - 77093643461234 [13:18:33]1041 (16) - 0000000000875093 [13:18:33]1040 (4) - 104378 [13:18:33]1012 (4) - 22.06.2024 06:56 [13:18:33]1206 (1) - 0 [13:18:33]OFD Sender: Remove packet 104378 [13:18:33]ProducePacketName [13:18:33]name=ofd_packets/00104378 [13:18:33]NVStorageDeleteData [13:18:33]Write to MH i2c: 01 00 00 A8 11 B9 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 07 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 07 00 A8 11 00 00 00 00 00 E4 0C B0 [13:18:33]RasterBufferAndPrint [13:18:33]line [13:18:33]line [13:18:33]line [13:18:33]line [13:18:33]line [13:18:33]written 0, free lines is 3307 [13:18:33]MH_Cut [13:18:33]Write to MH i2c: D1 01 00 AF 11 01 92 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: D1 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: D1 01 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: D1 01 00 AF 11 00 91 [13:18:33]Write to MH i2c: 01 00 00 B0 11 C1 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]OFD Sender: No OFD packet to send [13:18:34]*** Cut start [13:18:34]*** Partial cut [13:18:34]*** CUTSNS_PIN = 1 [13:18:34]*** CUTSNS_PIN = 0 [13:18:34]*** Brake cut motor [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]*** Stop cut motor [13:18:35]*** Cut end [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 FF 0F D6 [13:18:35]process_action close_receipt done [13:18:35]requested_data is exist [13:18:35]produce_requested_data [13:18:35]requested_item fm.sn is exist - process it [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 11 00 00 [13:18:35]Write to MH i2c: E2 08 00 B1 11 80 11 00 00 00 00 00 00 3C [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 17 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 17 00 B1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [13:18: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:18:35]wFMCommunicate OK [13:18:35]requested_item fd.num is exist - process it [13:18:35]SAM_PROTO_GetFieldsCounters [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 13 00 00 [13:18:35]Write to MH i2c: E2 08 00 B2 11 80 13 00 00 00 00 00 00 3F [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 62 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 62 00 B2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 6A [13:18: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 BA 97 01 00 0E 04 04 00 64 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:18:35]wFMCommunicate OK [13:18:35]SAM_PROTO_GetFieldsCounters done [13:18:35]requested_item shift.num is exist - process it [13:18:35]requested_item shift.opened is exist - process it [13:18:35]req_shift_opened [13:18:35]FM_GetShiftState [13:18:35]SAM_PROTO_GetShiftState [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 13 01 00 [13:18:35]Write to MH i2c: E2 08 00 B3 11 80 13 01 00 00 00 00 00 41 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:35]Read from MH i2c: E2 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0E 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: E2 0E 00 B3 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 33 [13:18:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:18:35]wFMCommunicate OK [13:18:35]SAM_PROTO_GetShiftState done [13:18:35]FM_GetShiftState done [13:18:35]req_shift_opened done [13:18:35]requested_item shift.open_date is exist - process it [13:18:35]req_shift_open_date [13:18:35]req_shift_open_date done [13:18:35]produce_requested_data done [13:18:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104378,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:18:35]process_action_free close_receipt [13:18:35]json_value_free [13:18:35]json_value_free done [13:18:35]process_json_proto returns [13:18:35]Send response to host [13:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104378,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:18:35]free response buf [13:18:35]execute_script done [13:18:35]execute_script returns [13:18:35]free content buf [13:18:35]Sock 9.Close socket [13:18:35]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:55]accept exits with 7 [13:21:55]New connection [13:21:55]New thread 3066449252 created [13:21:55]Thread 3066592612 joined [13:21:55]Waiting for new connection... [13:21:55] Sock 7.Parse request [13:21:55]Sock 7.Check first char [13:21:55]Sock 7.First char is OK [13:21:55]request: POST /json_proto HTTP/1.0 [13:21:55]Method: POST [13:21:55]URL: /json_proto [13:21:55]Method is POST - this is cgi request [13:21:55]url: /json_proto [13:21:55]query_string will be loaded in cgi processing [13:21:55]execute_cgi json_proto POST (null) [13:21:55]execute_cgi path=json_proto method=POST [13:21:55]POST find Content-Length [13:21:55]Host: 172.17.38.133:8080 [13:21:55]Content-Length: 682 [13:21:55]Content-Type: application/json [13:21:55] [13:21:55]POST finish read [13:21:55]Found Content-Length = 682 [13:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673920", "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" ] } } [13:21:55]execute_script... [13:21: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)673920", "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" ] } } [13:21:55]POST & json_proto [13:21:55]process_json_proto [13:21:55]json parsed OK: [13:21:55]protocol is kg_v1.0 [13:21:55]action value=close_receipt [13:21:55]process_action close_receipt [13:21:55]cmd_close_receipt [13:21:55]MH_GetDate [13:21:55]Write to MH i2c: F0 00 00 B4 11 B4 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: F0 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: F0 09 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: F0 09 00 B4 11 00 F5 CF 76 66 BD 8F 7C 64 89 [13:21:55]GetLastDocTimeStamp 1719062312 [13:21:55]current date 1719062517 [13:21:55]FM_GetShiftState [13:21:55]SAM_PROTO_GetShiftState [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 01 00 [13:21:55]Write to MH i2c: E2 08 00 B5 11 80 13 01 00 00 00 00 00 43 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 B5 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 35 [13:21:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetShiftState done [13:21:55]FM_GetShiftState done [13:21:55]opened in 1719016176 [13:21:55]opened+sec_in_day 1719102576 [13:21:55]quantity*price = 100060 [13:21:55]sum+1 = 100062 [13:21:55]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 СНО: Общий режим Чек 112 22.06.2024 13:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104379 ФПД: 171061579854063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132157&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104379&fm=171061579854063&tin=02508201610067®Number=0000000000092785&sum=100000 [13:21:56]StoreToDocumentArchive [13:21:56]shift 356 fd 104379 [13:21:56]save to /storage/0356/doc_00104379 [13:21:56]save last doc name /storage/0356/doc_00104379 to /storage/kkm_last_doc_name [13:21:56]save OK [13:21:56]Clear old archive folders... [13:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:56]tlvbuf is 00FDD130 [13:21:56]SAM_PROTO_ClearQueue [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 09 00 00 [13:21:56]Write to MH i2c: E2 08 00 C2 11 80 09 00 00 00 00 00 00 45 [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 03 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [13:21:56]RAPDU: 90 00 [13:21:56]wFMCommunicate OK [13:21:56]SAM_PROTO_ClearQueue done [13:21:56]KKMCreateOFDPacket [13:21:56]OFDProtocolAddRootSTLVToBuf [13:21:56]FM_MakeSignedData [13:21:56]FM_MakeSignedData [13:21:56]SAM_PROTO_SignData [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 0D 01 02 [13:21:56]Write to MH i2c: E2 08 00 C3 11 80 0D 01 02 00 00 00 00 4D [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 03 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [13:21:56]RAPDU: 90 00 [13:21:56]wFMCommunicate OK [13:21:56]wFMCommunicate request_size=255 [13:21:56]MH_SAM_APDU [13:21: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 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 70 00 00 00 F4 03 04 00 F5 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B [13:21:56]Write to MH i2c: E2 02 01 C4 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 F5 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 00 00 AB [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]wFMCommunicate request_size=10 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 02 02 05 94 60 B3 B0 EF [13:21:57]Write to MH i2c: E2 0D 00 C5 11 80 0D 02 02 05 00 94 60 B3 B0 EF 00 00 A0 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [13:21:57]RAPDU: 90 00 [13:21:57]wFMCommunicate OK [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 0D 03 02 [13:21:57]Write to MH i2c: E2 08 00 C6 11 80 0D 03 02 00 00 00 00 52 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0B 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0B 00 C6 11 00 CD E5 9D 59 1C 2B 6C 58 90 00 06 [13:21:57]RAPDU: CD E5 9D 59 1C 2B 6C 58 90 00 [13:21:57]wFMCommunicate OK [13:21:57]SAM_PROTO_SignData done [13:21:57]FM_MakeSignedData done [13:21:57]CreateOFDProtocolMessage [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 11 00 00 [13:21:57]Write to MH i2c: E2 08 00 C7 11 80 11 00 00 00 00 00 00 52 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 17 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 17 00 C7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [13:21: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:21:57]wFMCommunicate OK [13:21:57]CreateOFDProtocolMessage done [13:21:57]OFDSenderStorePacket 104379 [13:21:57]StoreOFDPacket docnum=104379 [13:21: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 94 19 07 01 15 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 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 70 00 00 00 F4 03 04 00 F5 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 94 60 B3 B0 EF CD E5 9D 59 1C 2B 6C 58 [13:21:57]CheckFolder [13:21:57]dirname=/storage/ofd_packets [13:21:57]CheckFolder done [13:21:57]ProducePacketName [13:21:57]name=ofd_packets/00104379 [13:21:57]NVStorageSaveData ofd_packets/00104379 [13:21:57]File name is /storage/ofd_packets/00104379 [13:21:57]Write 301 bytes [13:21:57]NVStorageSaveData done [13:21:57]OFDSenderStorePacket done [13:21:57]KKMCreateOFDPacket done [13:21:57]NVStorageSaveData kkm_last_timestamp [13:21:57]File name is /storage/kkm_last_timestamp [13:21:57]Write 4 bytes [13:21:57]NVStorageSaveData done [13:21:57]ExternCall_PrintAddStr [13:21:57]wPrintStart [13:21:57]Write to MH i2c: 01 00 00 C8 11 D9 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 07 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: 01 07 00 C8 11 00 00 00 00 00 FF 0F EE [13:21:57]RasterBufferAndPrint [13:21:57]line Счет N : (1)673920 [13:21:57]line ИНН: 02508201610067 [13:21:57]line Контрольно-Кассовый Чек [13:21:57]line ПРОДАЖА [13:21:57]line ТРК (МРК, ГНК) : 31 [13:21:57]line Товар: 2710124500 [13:21:57]line Аи-95-К-5 [13:21:57]line 13.540 * 73.90 [13:21:57]line = 1000.61 [13:21:57]line НДС 12% НСП 1% [13:21:57]line > о реализуемом товаре [13:21:57]line ОКРУГЛЕНИЕ: -0.61 [13:21:57]line ИТОГО: 1000.00 [13:21:57]line Внесено: 1000.00 [13:21:57]line СДАЧА: 0.00 [13:21:57]line НСП 1% : 8.85 [13:21:57]line НДС 12% : 106.26 [13:21:57]line Наличными: 1000.00 [13:21:57]line Безнал.: 0.00 [13:21:57]line Место: АЗС № 120 "Партнер Нефть" [13:21:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:21:57]line СНО: Общий режим [13:21:57]line Чек 112 22.06.2024 13:21 [13:21:57]line Смена: 356 ФФД: 1.0 [13:21:57]line ЗНМ: 0300000164 [13:21:57]line РНМ: 0000000000092785 [13:21:57]line Версия ККМ: 001 [13:21:57]line ФМ: 0000000000875093 [13:21:57]line ФД: 104379 [13:21:57]line ФПД: 171061579854063 [13:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132157&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104379&fm=171061579854063&tin=02508201610067®Number=0000000000092785&sum=100000 [13:21:57]OFD Sender: Processing packet 104379 [packets to send 17, broken 16] [13:21:57]ProducePacketName [13:21:57]name=ofd_packets/00104379 [13:21:57]OFD Sender: To server: pG, [13:21:57]CommunicateWithHost lk.salyk.kg:30040 [13:21:57]ConnectInit lk.salyk.kg [13:21:57]written 0, free lines is 4095 [13:21:57]Connected sock=11 [13:21: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 94 19 07 01 15 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 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 70 00 00 00 F4 03 04 00 F5 CF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9B 94 60 B3 B0 EF CD E5 9D 59 1C 2B 6C 58 [13:21: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 ED B1 47 00 C0 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 BB 97 01 00 F4 03 04 00 74 76 76 66 B6 04 01 00 00 6E 12 3B 3E F5 4E C2 55 [13:21:58]CommunicateWithHost err = 0 [13:21:58]CheckOFDResponse [13:21:58]1017 (14) - 77093643461234 [13:21:58]1041 (16) - 0000000000875093 [13:21:58]1040 (4) - 104379 [13:21:58]1012 (4) - 22.06.2024 07:00 [13:21:58]1206 (1) - 0 [13:21:58]OFD Sender: Remove packet 104379 [13:21:58]ProducePacketName [13:21:58]name=ofd_packets/00104379 [13:21:58]NVStorageDeleteData [13:21:58]Write to MH i2c: 01 00 00 F3 11 04 [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 07 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 DD 0C F4 [13:21:58]RasterBufferAndPrint [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]line [13:21:58]written 0, free lines is 3299 [13:21:58]MH_Cut [13:21:58]Write to MH i2c: D1 01 00 FA 11 01 DD [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 01 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: D1 01 00 FA 11 00 DC [13:21:58]Write to MH i2c: 01 00 00 FB 11 0C [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]OFD Sender: No OFD packet to send [13:21:58]*** Cut start [13:21:58]*** Partial cut [13:21:58]*** CUTSNS_PIN = 1 [13:21:58]*** CUTSNS_PIN = 0 [13:21:59]*** Brake cut motor [13:21:59]Read from MH i2c: 01 [13:21:59]MH_I2C_Read... [13:21:59]*** Stop cut motor [13:21:59]*** Cut end [13:21:59]Read from MH i2c: 01 07 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 FF 0F 21 [13:21:59]process_action close_receipt done [13:21:59]requested_data is exist [13:21:59]produce_requested_data [13:21:59]requested_item fm.sn is exist - process it [13:21:59]wFMCommunicate request_size=4 [13:21:59]MH_SAM_APDU [13:21:59]CAPDU: 80 11 00 00 [13:21:59]Write to MH i2c: E2 08 00 FC 11 80 11 00 00 00 00 00 00 87 [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:59]Read from MH i2c: E2 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 17 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 17 00 FC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [13:21: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:21:59]wFMCommunicate OK [13:21:59]requested_item fd.num is exist - process it [13:21:59]SAM_PROTO_GetFieldsCounters [13:21:59]wFMCommunicate request_size=4 [13:21:59]MH_SAM_APDU [13:21:59]CAPDU: 80 13 00 00 [13:21:59]Write to MH i2c: E2 08 00 FD 11 80 13 00 00 00 00 00 00 8A [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:59]Read from MH i2c: E2 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 62 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 62 00 FD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B9 [13:21: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 BB 97 01 00 0E 04 04 00 64 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:21:59]wFMCommunicate OK [13:21:59]SAM_PROTO_GetFieldsCounters done [13:21:59]requested_item shift.num is exist - process it [13:21:59]requested_item shift.opened is exist - process it [13:21:59]req_shift_opened [13:21:59]FM_GetShiftState [13:21:59]SAM_PROTO_GetShiftState [13:21:59]wFMCommunicate request_size=4 [13:21:59]MH_SAM_APDU [13:21:59]CAPDU: 80 13 01 00 [13:21:59]Write to MH i2c: E2 08 00 FE 11 80 13 01 00 00 00 00 00 8C [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:59]Read from MH i2c: E2 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 0E 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 0E 00 FE 11 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7E [13:21:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:21:59]wFMCommunicate OK [13:21:59]SAM_PROTO_GetShiftState done [13:21:59]FM_GetShiftState done [13:21:59]req_shift_opened done [13:21:59]requested_item shift.open_date is exist - process it [13:21:59]req_shift_open_date [13:21:59]req_shift_open_date done [13:21:59]produce_requested_data done [13:21:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104379,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:21:59]process_action_free close_receipt [13:21:59]json_value_free [13:21:59]json_value_free done [13:21:59]process_json_proto returns [13:21:59]Send response to host [13:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104379,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:21:59]free response buf [13:21:59]execute_script done [13:21:59]execute_script returns [13:21:59]free content buf [13:21:59]Sock 7.Close socket [13:21:59]Sock 7.Thread stoped [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:43]accept exits with 9 [13:29:43]New connection [13:29:43]New thread 3066592612 created [13:29:43]Thread 3066449252 joined [13:29:43]Waiting for new connection... [13:29:43] Sock 9.Parse request [13:29:43]Sock 9.Check first char [13:29:43]Sock 9.First char is OK [13:29:43]request: POST /json_proto HTTP/1.0 [13:29:43]Method: POST [13:29:43]URL: /json_proto [13:29:43]Method is POST - this is cgi request [13:29:43]url: /json_proto [13:29:43]query_string will be loaded in cgi processing [13:29:43]execute_cgi json_proto POST (null) [13:29:43]execute_cgi path=json_proto method=POST [13:29:43]POST find Content-Length [13:29:43]Host: 172.17.38.133:8080 [13:29:43]Content-Length: 682 [13:29:43]Content-Type: application/json [13:29:43] [13:29:43]POST finish read [13:29:43]Found Content-Length = 682 [13:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673921", "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:29:43]execute_script... [13:29: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)673921", "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:29:43]POST & json_proto [13:29:43]process_json_proto [13:29:43]json parsed OK: [13:29:43]protocol is kg_v1.0 [13:29:43]action value=close_receipt [13:29:43]process_action close_receipt [13:29:43]cmd_close_receipt [13:29:43]MH_GetDate [13:29:43]Write to MH i2c: F0 00 00 FF 11 FF [13:29:43]Write i2c OK [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: F0 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: F0 09 00 [13:29:43]MH_I2C_Read... [13:29:43]Read from MH i2c: F0 09 00 FF 11 00 C9 D1 76 66 BD 8F 7C 64 AA [13:29:43]GetLastDocTimeStamp 1719062517 [13:29:43]current date 1719062985 [13:29:43]FM_GetShiftState [13:29:43]SAM_PROTO_GetShiftState [13:29:43]wFMCommunicate request_size=4 [13:29:43]MH_SAM_APDU [13:29:43]CAPDU: 80 13 01 00 [13:29:43]Write to MH i2c: E2 08 00 00 12 80 13 01 00 00 00 00 00 8F [13:29:43]Write i2c OK [13:29:43]MH_I2C_Read... [13:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:44]Read from MH i2c: E2 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: E2 0E 00 [13:29:44]MH_I2C_Read... [13:29:44]Read from MH i2c: E2 0E 00 00 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 81 [13:29:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:29:44]wFMCommunicate OK [13:29:44]SAM_PROTO_GetShiftState done [13:29:44]FM_GetShiftState done [13:29:44]opened in 1719016176 [13:29:44]opened+sec_in_day 1719102576 [13:29:44]quantity*price = 100064 [13:29:44]sum+1 = 100066 [13:29: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 СНО: Общий режим Чек 113 22.06.2024 13:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104380 ФПД: 183770068611770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104380&fm=183770068611770&tin=02508201610067®Number=0000000000092785&sum=100000 [13:29:45]StoreToDocumentArchive [13:29:45]shift 356 fd 104380 [13:29:45]save to /storage/0356/doc_00104380 [13:29:45]save last doc name /storage/0356/doc_00104380 to /storage/kkm_last_doc_name [13:29:45]save OK [13:29:45]Clear old archive folders... [13:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:45]tlvbuf is 00FDD480 [13:29:45]SAM_PROTO_ClearQueue [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 09 00 00 [13:29:45]Write to MH i2c: E2 08 00 0D 12 80 09 00 00 00 00 00 00 91 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_ClearQueue done [13:29:45]KKMCreateOFDPacket [13:29:45]OFDProtocolAddRootSTLVToBuf [13:29:45]FM_MakeSignedData [13:29:45]FM_MakeSignedData [13:29:45]SAM_PROTO_SignData [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 0D 01 02 [13:29:45]Write to MH i2c: E2 08 00 0E 12 80 0D 01 02 00 00 00 00 99 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]wFMCommunicate request_size=255 [13:29:45]MH_SAM_APDU [13:29: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 71 00 00 00 F4 03 04 00 C9 D1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A7 [13:29:45]Write to MH i2c: E2 02 01 0F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 C9 D1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A7 00 00 EA [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 0F 12 00 90 00 95 [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]wFMCommunicate request_size=10 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 0D 02 02 05 23 4D A8 F2 BA [13:29:45]Write to MH i2c: E2 0D 00 10 12 80 0D 02 02 05 00 23 4D A8 F2 BA 00 00 6A [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [13:29:45]RAPDU: 90 00 [13:29:45]wFMCommunicate OK [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 0D 03 02 [13:29:45]Write to MH i2c: E2 08 00 11 12 80 0D 03 02 00 00 00 00 9E [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0B 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0B 00 11 12 00 73 CB AC 1E 63 8E 6C 27 90 00 2B [13:29:45]RAPDU: 73 CB AC 1E 63 8E 6C 27 90 00 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_SignData done [13:29:45]FM_MakeSignedData done [13:29:45]CreateOFDProtocolMessage [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 11 00 00 [13:29:45]Write to MH i2c: E2 08 00 12 12 80 11 00 00 00 00 00 00 9E [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 17 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 17 00 12 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [13:29:45]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:45]wFMCommunicate OK [13:29:45]CreateOFDProtocolMessage done [13:29:45]OFDSenderStorePacket 104380 [13:29:45]StoreOFDPacket docnum=104380 [13:29: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 4D 50 07 01 9D 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 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 71 00 00 00 F4 03 04 00 C9 D1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A7 23 4D A8 F2 BA 73 CB AC 1E 63 8E 6C 27 [13:29:45]CheckFolder [13:29:45]dirname=/storage/ofd_packets [13:29:45]CheckFolder done [13:29:45]ProducePacketName [13:29:45]name=ofd_packets/00104380 [13:29:45]NVStorageSaveData ofd_packets/00104380 [13:29:45]File name is /storage/ofd_packets/00104380 [13:29:45]Write 301 bytes [13:29:45]NVStorageSaveData done [13:29:45]OFDSenderStorePacket done [13:29:45]KKMCreateOFDPacket done [13:29:45]NVStorageSaveData kkm_last_timestamp [13:29:45]File name is /storage/kkm_last_timestamp [13:29:45]Write 4 bytes [13:29:45]NVStorageSaveData done [13:29:45]ExternCall_PrintAddStr [13:29:45]wPrintStart [13:29:45]Write to MH i2c: 01 00 00 13 12 25 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: 01 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: 01 07 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 FF 0F 3A [13:29:45]RasterBufferAndPrint [13:29:45]line Счет N : (1)673921 [13:29:45]line ИНН: 02508201610067 [13:29:45]line Контрольно-Кассовый Чек [13:29:45]line ПРОДАЖА [13:29:45]line ТРК (МРК, ГНК) : 32 [13:29:45]line Товар: 2710124130 [13:29:45]line Аи-92-К-5 [13:29:45]line 15.070 * 66.40 [13:29:45]line = 1000.65 [13:29:45]line НДС 12% НСП 1% [13:29:45]line > о реализуемом товаре [13:29:45]line ОКРУГЛЕНИЕ: -0.65 [13:29:45]line ИТОГО: 1000.00 [13:29:45]line Внесено: 1000.00 [13:29:45]line СДАЧА: 0.00 [13:29:45]line НСП 1% : 8.85 [13:29:45]line НДС 12% : 106.26 [13:29:45]line Наличными: 1000.00 [13:29:45]line Безнал.: 0.00 [13:29:45]line Место: АЗС № 120 "Партнер Нефть" [13:29:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:29:45]line СНО: Общий режим [13:29:45]line Чек 113 22.06.2024 13:29 [13:29:45]line Смена: 356 ФФД: 1.0 [13:29:45]line ЗНМ: 0300000164 [13:29:45]line РНМ: 0000000000092785 [13:29:45]line Версия ККМ: 001 [13:29:45]line ФМ: 0000000000875093 [13:29:45]line ФД: 104380 [13:29:45]line ФПД: 183770068611770 [13:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104380&fm=183770068611770&tin=02508201610067®Number=0000000000092785&sum=100000 [13:29:46]OFD Sender: Processing packet 104380 [packets to send 17, broken 16] [13:29:46]ProducePacketName [13:29:46]name=ofd_packets/00104380 [13:29:46]OFD Sender: To server: pG, [13:29:46]CommunicateWithHost lk.salyk.kg:30040 [13:29:46]ConnectInit lk.salyk.kg [13:29:46]written 0, free lines is 4095 [13:29:46]Connected sock=10 [13:29: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 4D 50 07 01 9D 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 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 71 00 00 00 F4 03 04 00 C9 D1 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 A7 23 4D A8 F2 BA 73 CB AC 1E 63 8E 6C 27 [13:29: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 C0 FA 47 00 AB 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 BC 97 01 00 F4 03 04 00 48 78 76 66 B6 04 01 00 00 A6 4A FB A4 58 DA 0E E8 [13:29:46]CommunicateWithHost err = 0 [13:29:46]CheckOFDResponse [13:29:46]1017 (14) - 77093643461234 [13:29:46]1041 (16) - 0000000000875093 [13:29:46]1040 (4) - 104380 [13:29:46]1012 (4) - 22.06.2024 07:07 [13:29:46]1206 (1) - 0 [13:29:46]OFD Sender: Remove packet 104380 [13:29:46]ProducePacketName [13:29:46]name=ofd_packets/00104380 [13:29:46]NVStorageDeleteData [13:29:46]Write to MH i2c: 01 00 00 3E 12 50 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 D6 0C 39 [13:29:46]RasterBufferAndPrint [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]line [13:29:46]written 0, free lines is 3293 [13:29:46]MH_Cut [13:29:46]Write to MH i2c: D1 01 00 45 12 01 29 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 01 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: D1 01 00 45 12 00 28 [13:29:46]Write to MH i2c: 01 00 00 46 12 58 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]OFD Sender: No OFD packet to send [13:29:47]*** Cut start [13:29:47]*** Partial cut [13:29:47]*** CUTSNS_PIN = 1 [13:29:47]*** CUTSNS_PIN = 0 [13:29:47]*** Brake cut motor [13:29:47]Read from MH i2c: 01 [13:29:47]MH_I2C_Read... [13:29:47]*** Stop cut motor [13:29:47]*** Cut end [13:29:47]Read from MH i2c: 01 07 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 FF 0F 6D [13:29:47]process_action close_receipt done [13:29:47]requested_data is exist [13:29:47]produce_requested_data [13:29:47]requested_item fm.sn is exist - process it [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 11 00 00 [13:29:47]Write to MH i2c: E2 08 00 47 12 80 11 00 00 00 00 00 00 D3 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 47 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [13:29:47]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:47]wFMCommunicate OK [13:29:47]requested_item fd.num is exist - process it [13:29:47]SAM_PROTO_GetFieldsCounters [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 13 00 00 [13:29:47]Write to MH i2c: E2 08 00 48 12 80 13 00 00 00 00 00 00 D6 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:48]Read from MH i2c: E2 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 62 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 62 00 48 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 09 [13:29: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 BC 97 01 00 0E 04 04 00 64 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:29:48]wFMCommunicate OK [13:29:48]SAM_PROTO_GetFieldsCounters done [13:29:48]requested_item shift.num is exist - process it [13:29:48]requested_item shift.opened is exist - process it [13:29:48]req_shift_opened [13:29:48]FM_GetShiftState [13:29:48]SAM_PROTO_GetShiftState [13:29:48]wFMCommunicate request_size=4 [13:29:48]MH_SAM_APDU [13:29:48]CAPDU: 80 13 01 00 [13:29:48]Write to MH i2c: E2 08 00 49 12 80 13 01 00 00 00 00 00 D8 [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:48]Read from MH i2c: E2 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 0E 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 0E 00 49 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CA [13:29:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:29:48]wFMCommunicate OK [13:29:48]SAM_PROTO_GetShiftState done [13:29:48]FM_GetShiftState done [13:29:48]req_shift_opened done [13:29:48]requested_item shift.open_date is exist - process it [13:29:48]req_shift_open_date [13:29:48]req_shift_open_date done [13:29:48]produce_requested_data done [13:29:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104380,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:29:48]process_action_free close_receipt [13:29:48]json_value_free [13:29:48]json_value_free done [13:29:48]process_json_proto returns [13:29:48]Send response to host [13:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104380,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:29:48]free response buf [13:29:48]execute_script done [13:29:48]execute_script returns [13:29:48]free content buf [13:29:48]Sock 9.Close socket [13:29:48]Sock 9.Thread stoped [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]accept exits with 7 [13:30:41]New connection [13:30:41]New thread 3066449252 created [13:30:41]Thread 3066592612 joined [13:30:41]Waiting for new connection... [13:30:41] Sock 7.Parse request [13:30:41]Sock 7.Check first char [13:30:41]Sock 7.First char is OK [13:30:41]request: POST /json_proto HTTP/1.0 [13:30:41]Method: POST [13:30:41]URL: /json_proto [13:30:41]Method is POST - this is cgi request [13:30:41]url: /json_proto [13:30:41]query_string will be loaded in cgi processing [13:30:41]execute_cgi json_proto POST (null) [13:30:41]execute_cgi path=json_proto method=POST [13:30:41]POST find Content-Length [13:30:41]Host: 172.17.38.133:8080 [13:30:41]Content-Length: 677 [13:30:41]Content-Type: application/json [13:30:41] [13:30:41]POST finish read [13:30:41]Found Content-Length = 677 [13:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673922", "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.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:41]execute_script... [13:30: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)673922", "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.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:41]POST & json_proto [13:30:41]process_json_proto [13:30:41]json parsed OK: [13:30:41]protocol is kg_v1.0 [13:30:41]action value=close_receipt [13:30:41]process_action close_receipt [13:30:41]cmd_close_receipt [13:30:41]MH_GetDate [13:30:41]Write to MH i2c: F0 00 00 4A 12 4B [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 09 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 09 00 4A 12 00 02 D2 76 66 BD 8F 7C 64 30 [13:30:41]GetLastDocTimeStamp 1719062985 [13:30:41]current date 1719063042 [13:30:41]FM_GetShiftState [13:30:41]SAM_PROTO_GetShiftState [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 13 01 00 [13:30:41]Write to MH i2c: E2 08 00 4B 12 80 13 01 00 00 00 00 00 DA [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 0E 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 0E 00 4B 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CC [13:30:41]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:30:41]wFMCommunicate OK [13:30:41]SAM_PROTO_GetShiftState done [13:30:41]FM_GetShiftState done [13:30:41]opened in 1719016176 [13:30:41]opened+sec_in_day 1719102576 [13:30:41]quantity*price = 33000 [13:30:41]sum+1 = 33002 [13:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 114 22.06.2024 13:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104381 ФПД: 71803011730763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104381&fm=71803011730763&tin=02508201610067®Number=0000000000092785&sum=33000 [13:30:42]StoreToDocumentArchive [13:30:42]shift 356 fd 104381 [13:30:42]save to /storage/0356/doc_00104381 [13:30:42]save last doc name /storage/0356/doc_00104381 to /storage/kkm_last_doc_name [13:30:42]save OK [13:30:42]Clear old archive folders... [13:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:42]tlvbuf is 00FCD4B0 [13:30:42]SAM_PROTO_ClearQueue [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 09 00 00 [13:30:42]Write to MH i2c: E2 08 00 58 12 80 09 00 00 00 00 00 00 DC [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [13:30:42]RAPDU: 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_ClearQueue done [13:30:42]KKMCreateOFDPacket [13:30:42]OFDProtocolAddRootSTLVToBuf [13:30:42]FM_MakeSignedData [13:30:42]FM_MakeSignedData [13:30:42]SAM_PROTO_SignData [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 0D 01 02 [13:30:42]Write to MH i2c: E2 08 00 59 12 80 0D 01 02 00 00 00 00 E4 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [13:30:42]RAPDU: 90 00 [13:30:42]wFMCommunicate OK [13:30:42]wFMCommunicate request_size=255 [13:30:42]MH_SAM_APDU [13:30: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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 D2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 41 [13:30:42]Write to MH i2c: E2 02 01 5A 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 D2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 41 00 00 B2 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [13:30:42]RAPDU: 90 00 [13:30:42]wFMCommunicate OK [13:30:42]wFMCommunicate request_size=10 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 0D 02 02 05 4D F1 02 0D 4B [13:30:42]Write to MH i2c: E2 0D 00 5B 12 80 0D 02 02 05 00 4D F1 02 0D 4B 00 00 89 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [13:30:42]RAPDU: 90 00 [13:30:42]wFMCommunicate OK [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 0D 03 02 [13:30:42]Write to MH i2c: E2 08 00 5C 12 80 0D 03 02 00 00 00 00 E9 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0B 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0B 00 5C 12 00 24 E0 3D FA 98 34 EF EE 90 00 CE [13:30:42]RAPDU: 24 E0 3D FA 98 34 EF EE 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_SignData done [13:30:42]FM_MakeSignedData done [13:30:42]CreateOFDProtocolMessage [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 11 00 00 [13:30:42]Write to MH i2c: E2 08 00 5D 12 80 11 00 00 00 00 00 00 E9 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 5D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [13:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:30:42]wFMCommunicate OK [13:30:42]CreateOFDProtocolMessage done [13:30:42]OFDSenderStorePacket 104381 [13:30:42]StoreOFDPacket docnum=104381 [13:30: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 D1 6A 07 01 43 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 D2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 41 4D F1 02 0D 4B 24 E0 3D FA 98 34 EF EE [13:30:42]CheckFolder [13:30:42]dirname=/storage/ofd_packets [13:30:42]CheckFolder done [13:30:42]ProducePacketName [13:30:42]name=ofd_packets/00104381 [13:30:42]NVStorageSaveData ofd_packets/00104381 [13:30:42]File name is /storage/ofd_packets/00104381 [13:30:42]Write 301 bytes [13:30:42]NVStorageSaveData done [13:30:42]OFDSenderStorePacket done [13:30:42]KKMCreateOFDPacket done [13:30:42]NVStorageSaveData kkm_last_timestamp [13:30:42]File name is /storage/kkm_last_timestamp [13:30:42]Write 4 bytes [13:30:42]NVStorageSaveData done [13:30:42]ExternCall_PrintAddStr [13:30:42]wPrintStart [13:30:42]Write to MH i2c: 01 00 00 5E 12 70 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 FF 0F 85 [13:30:42]RasterBufferAndPrint [13:30:42]line Счет N : (1)673922 [13:30:42]line ИНН: 02508201610067 [13:30:42]line Контрольно-Кассовый Чек [13:30:42]line ПРОДАЖА [13:30:42]line ТРК (МРК, ГНК) : 42 [13:30:42]line Товар: 2710124130 [13:30:42]line Аи-92-К-5 [13:30:42]line 4.970 * 66.40 [13:30:42]line = 330.01 [13:30:42]line НДС 12% НСП 1% [13:30:42]line > о реализуемом товаре [13:30:42]line ОКРУГЛЕНИЕ: -0.01 [13:30:42]line ИТОГО: 330.00 [13:30:42]line Внесено: 330.00 [13:30:42]line СДАЧА: 0.00 [13:30:42]line НСП 1% : 2.92 [13:30:42]line НДС 12% : 35.04 [13:30:42]line Наличными: 330.00 [13:30:42]line Безнал.: 0.00 [13:30:42]line Место: АЗС № 120 "Партнер Нефть" [13:30:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:30:42]line СНО: Общий режим [13:30:42]line Чек 114 22.06.2024 13:30 [13:30:42]line Смена: 356 ФФД: 1.0 [13:30:42]line ЗНМ: 0300000164 [13:30:42]line РНМ: 0000000000092785 [13:30:42]line Версия ККМ: 001 [13:30:42]line ФМ: 0000000000875093 [13:30:42]line ФД: 104381 [13:30:42]line ФПД: 71803011730763 [13:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104381&fm=71803011730763&tin=02508201610067®Number=0000000000092785&sum=33000 [13:30:43]OFD Sender: Processing packet 104381 [packets to send 17, broken 16] [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00104381 [13:30:43]OFD Sender: To server: pG, [13:30:43]CommunicateWithHost lk.salyk.kg:30040 [13:30:43]ConnectInit lk.salyk.kg [13:30:43]written 0, free lines is 4095 [13:30:43]Connected sock=10 [13:30: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 D1 6A 07 01 43 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 D2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 41 4D F1 02 0D 4B 24 E0 3D FA 98 34 EF EE [13:30: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 C4 D5 47 00 E6 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 BD 97 01 00 F4 03 04 00 81 78 76 66 B6 04 01 00 00 A1 5E A5 0F 28 20 DC E5 [13:30:43]CommunicateWithHost err = 0 [13:30:43]CheckOFDResponse [13:30:43]1017 (14) - 77093643461234 [13:30:43]1041 (16) - 0000000000875093 [13:30:43]1040 (4) - 104381 [13:30:43]1012 (4) - 22.06.2024 07:08 [13:30:43]1206 (1) - 0 [13:30:43]OFD Sender: Remove packet 104381 [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00104381 [13:30:43]NVStorageDeleteData [13:30:43]Write to MH i2c: 01 00 00 89 12 9B [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 07 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 E5 0C 93 [13:30:43]RasterBufferAndPrint [13:30:43]line [13:30:43]line [13:30:43]line [13:30:43]line [13:30:43]line [13:30:43]written 0, free lines is 3307 [13:30:43]MH_Cut [13:30:43]Write to MH i2c: D1 01 00 90 12 01 74 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: D1 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: D1 01 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: D1 01 00 90 12 00 73 [13:30:43]Write to MH i2c: 01 00 00 91 12 A3 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:44]OFD Sender: No OFD packet to send [13:30:44]*** Cut start [13:30:44]*** Partial cut [13:30:44]*** CUTSNS_PIN = 1 [13:30:44]*** CUTSNS_PIN = 0 [13:30:44]*** Brake cut motor [13:30:45]Read from MH i2c: 01 [13:30:45]MH_I2C_Read... [13:30:45]*** Stop cut motor [13:30:45]*** Cut end [13:30:45]Read from MH i2c: 01 07 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: 01 07 00 91 12 00 00 00 00 00 FF 0F B8 [13:30:45]process_action close_receipt done [13:30:45]requested_data is exist [13:30:45]produce_requested_data [13:30:45]requested_item fm.sn is exist - process it [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 11 00 00 [13:30:45]Write to MH i2c: E2 08 00 92 12 80 11 00 00 00 00 00 00 1E [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 92 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [13:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:30:45]wFMCommunicate OK [13:30:45]requested_item fd.num is exist - process it [13:30:45]SAM_PROTO_GetFieldsCounters [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 00 00 [13:30:45]Write to MH i2c: E2 08 00 93 12 80 13 00 00 00 00 00 00 21 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 93 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 58 [13:30: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 BD 97 01 00 0E 04 04 00 64 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:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetFieldsCounters done [13:30:45]requested_item shift.num is exist - process it [13:30:45]requested_item shift.opened is exist - process it [13:30:45]req_shift_opened [13:30:45]FM_GetShiftState [13:30:45]SAM_PROTO_GetShiftState [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 01 00 [13:30:45]Write to MH i2c: E2 08 00 94 12 80 13 01 00 00 00 00 00 23 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 94 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 15 [13:30:45]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetShiftState done [13:30:45]FM_GetShiftState done [13:30:45]req_shift_opened done [13:30:45]requested_item shift.open_date is exist - process it [13:30:45]req_shift_open_date [13:30:45]req_shift_open_date done [13:30:45]produce_requested_data done [13:30:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104381,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:30:45]process_action_free close_receipt [13:30:45]json_value_free [13:30:45]json_value_free done [13:30:45]process_json_proto returns [13:30:45]Send response to host [13:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104381,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:30:45]free response buf [13:30:45]execute_script done [13:30:45]execute_script returns [13:30:45]free content buf [13:30:45]Sock 7.Close socket [13:30:45]Sock 7.Thread stoped [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:52]accept exits with 9 [13:42:52]New connection [13:42:52]New thread 3066592612 created [13:42:52]Thread 3066449252 joined [13:42:52]Waiting for new connection... [13:42:52] Sock 9.Parse request [13:42:52]Sock 9.Check first char [13:42:52]Sock 9.First char is OK [13:42:52]request: POST /json_proto HTTP/1.0 [13:42:52]Method: POST [13:42:52]URL: /json_proto [13:42:52]Method is POST - this is cgi request [13:42:52]url: /json_proto [13:42:52]query_string will be loaded in cgi processing [13:42:52]execute_cgi json_proto POST (null) [13:42:52]execute_cgi path=json_proto method=POST [13:42:52]POST find Content-Length [13:42:52]Host: 172.17.38.133:8080 [13:42:52]Content-Length: 677 [13:42:52]Content-Type: application/json [13:42:52] [13:42:52]POST finish read [13:42:52]Found Content-Length = 677 [13:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673925", "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" ] } } [13:42:52]execute_script... [13: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)673925", "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" ] } } [13:42:52]POST & json_proto [13:42:52]process_json_proto [13:42:52]json parsed OK: [13:42:52]protocol is kg_v1.0 [13:42:52]action value=close_receipt [13:42:52]process_action close_receipt [13:42:52]cmd_close_receipt [13:42:52]MH_GetDate [13:42:52]Write to MH i2c: F0 00 00 95 12 96 [13:42:52]Write i2c OK [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: F0 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: F0 09 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: F0 09 00 95 12 00 DE D4 76 66 BD 8F 7C 64 59 [13:42:52]GetLastDocTimeStamp 1719063042 [13:42:52]current date 1719063774 [13:42:52]FM_GetShiftState [13:42:52]SAM_PROTO_GetShiftState [13:42:52]wFMCommunicate request_size=4 [13:42:52]MH_SAM_APDU [13:42:52]CAPDU: 80 13 01 00 [13:42:52]Write to MH i2c: E2 08 00 96 12 80 13 01 00 00 00 00 00 25 [13:42:52]Write i2c OK [13:42:52]MH_I2C_Read... [13:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:52]Read from MH i2c: E2 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 0E 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 0E 00 96 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 17 [13:42:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:42:52]wFMCommunicate OK [13:42:52]SAM_PROTO_GetShiftState done [13:42:52]FM_GetShiftState done [13:42:52]opened in 1719016176 [13:42:52]opened+sec_in_day 1719102576 [13:42:52]quantity*price = 50065 [13:42:52]sum+1 = 50067 [13:42:52]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 СНО: Общий режим Чек 115 22.06.2024 13:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104382 ФПД: 270061134421269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104382&fm=270061134421269&tin=02508201610067®Number=0000000000092785&sum=50000 [13:42:54]StoreToDocumentArchive [13:42:54]shift 356 fd 104382 [13:42:54]save to /storage/0356/doc_00104382 [13:42:54]save last doc name /storage/0356/doc_00104382 to /storage/kkm_last_doc_name [13:42:54]save OK [13:42:54]Clear old archive folders... [13:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:54]tlvbuf is 00FC7DA0 [13:42:54]SAM_PROTO_ClearQueue [13:42:54]wFMCommunicate request_size=4 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 09 00 00 [13:42:54]Write to MH i2c: E2 08 00 A3 12 80 09 00 00 00 00 00 00 27 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [13:42:54]RAPDU: 90 00 [13:42:54]wFMCommunicate OK [13:42:54]SAM_PROTO_ClearQueue done [13:42:54]KKMCreateOFDPacket [13:42:54]OFDProtocolAddRootSTLVToBuf [13:42:54]FM_MakeSignedData [13:42:54]FM_MakeSignedData [13:42:54]SAM_PROTO_SignData [13:42:54]wFMCommunicate request_size=4 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 0D 01 02 [13:42:54]Write to MH i2c: E2 08 00 A4 12 80 0D 01 02 00 00 00 00 2F [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [13:42:54]RAPDU: 90 00 [13:42:54]wFMCommunicate OK [13:42:54]wFMCommunicate request_size=255 [13:42:54]MH_SAM_APDU [13:42: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 73 00 00 00 F4 03 04 00 DE D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 [13:42:54]Write to MH i2c: E2 02 01 A5 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 73 00 00 00 F4 03 04 00 DE D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 00 00 9A [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [13:42:54]RAPDU: 90 00 [13:42:54]wFMCommunicate OK [13:42:54]wFMCommunicate request_size=10 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 0D 02 02 05 9E 81 FC 1D 15 [13:42:54]Write to MH i2c: E2 0D 00 A6 12 80 0D 02 02 05 00 9E 81 FC 1D 15 00 00 89 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [13:42:54]RAPDU: 90 00 [13:42:54]wFMCommunicate OK [13:42:54]wFMCommunicate request_size=4 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 0D 03 02 [13:42:54]Write to MH i2c: E2 08 00 A7 12 80 0D 03 02 00 00 00 00 34 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 0B 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 0B 00 A7 12 00 2D B1 AB 9A E6 97 9F F0 90 00 64 [13:42:54]RAPDU: 2D B1 AB 9A E6 97 9F F0 90 00 [13:42:54]wFMCommunicate OK [13:42:54]SAM_PROTO_SignData done [13:42:54]FM_MakeSignedData done [13:42:54]CreateOFDProtocolMessage [13:42:54]wFMCommunicate request_size=4 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 11 00 00 [13:42:54]Write to MH i2c: E2 08 00 A8 12 80 11 00 00 00 00 00 00 34 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 17 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 17 00 A8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [13: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 [13:42:54]wFMCommunicate OK [13:42:54]CreateOFDProtocolMessage done [13:42:54]OFDSenderStorePacket 104382 [13:42:54]StoreOFDPacket docnum=104382 [13: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 AA 0F 07 01 89 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 73 00 00 00 F4 03 04 00 DE D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 9E 81 FC 1D 15 2D B1 AB 9A E6 97 9F F0 [13:42:54]CheckFolder [13:42:54]dirname=/storage/ofd_packets [13:42:54]CheckFolder done [13:42:54]ProducePacketName [13:42:54]name=ofd_packets/00104382 [13:42:54]NVStorageSaveData ofd_packets/00104382 [13:42:54]File name is /storage/ofd_packets/00104382 [13:42:54]Write 301 bytes [13:42:54]NVStorageSaveData done [13:42:54]OFDSenderStorePacket done [13:42:54]KKMCreateOFDPacket done [13:42:54]NVStorageSaveData kkm_last_timestamp [13:42:54]File name is /storage/kkm_last_timestamp [13:42:54]Write 4 bytes [13:42:54]NVStorageSaveData done [13:42:54]ExternCall_PrintAddStr [13:42:54]wPrintStart [13:42:54]Write to MH i2c: 01 00 00 A9 12 BB [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: 01 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: 01 07 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 FF 0F D0 [13:42:54]RasterBufferAndPrint [13:42:54]line Счет N : (1)673925 [13:42:54]line ИНН: 02508201610067 [13:42:54]line Контрольно-Кассовый Чек [13:42:54]line ПРОДАЖА [13:42:54]line ТРК (МРК, ГНК) : 32 [13:42:54]line Товар: 2710124130 [13:42:54]line Аи-92-К-5 [13:42:54]line 7.540 * 66.40 [13:42:54]line = 500.66 [13:42:54]line НДС 12% НСП 1% [13:42:54]line > о реализуемом товаре [13:42:54]line ОКРУГЛЕНИЕ: -0.66 [13:42:54]line ИТОГО: 500.00 [13:42:54]line Внесено: 500.00 [13:42:54]line СДАЧА: 0.00 [13:42:54]line НСП 1% : 4.43 [13:42:54]line НДС 12% : 53.17 [13:42:54]line Наличными: 500.00 [13:42:54]line Безнал.: 0.00 [13:42:54]line Место: АЗС № 120 "Партнер Нефть" [13:42:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:42:54]line СНО: Общий режим [13:42:54]line Чек 115 22.06.2024 13:42 [13:42:54]line Смена: 356 ФФД: 1.0 [13:42:54]line ЗНМ: 0300000164 [13:42:54]line РНМ: 0000000000092785 [13:42:54]line Версия ККМ: 001 [13:42:54]line ФМ: 0000000000875093 [13:42:54]line ФД: 104382 [13:42:54]line ФПД: 270061134421269 [13:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104382&fm=270061134421269&tin=02508201610067®Number=0000000000092785&sum=50000 [13:42:54]OFD Sender: Processing packet 104382 [packets to send 17, broken 16] [13:42:54]ProducePacketName [13:42:54]name=ofd_packets/00104382 [13:42:54]OFD Sender: To server: pG, [13:42:54]CommunicateWithHost lk.salyk.kg:30040 [13:42:54]ConnectInit lk.salyk.kg [13:42:54]written 0, free lines is 4095 [13:42:55]Connected sock=10 [13:42: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 AA 0F 07 01 89 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 73 00 00 00 F4 03 04 00 DE D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 9E 81 FC 1D 15 2D B1 AB 9A E6 97 9F F0 [13:42: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 84 C0 47 00 E9 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 97 01 00 F4 03 04 00 5D 7B 76 66 B6 04 01 00 00 D6 CC 62 BB AF C9 D7 9A [13:42:55]CommunicateWithHost err = 0 [13:42:55]CheckOFDResponse [13:42:55]1017 (14) - 77093643461234 [13:42:55]1041 (16) - 0000000000875093 [13:42:55]1040 (4) - 104382 [13:42:55]1012 (4) - 22.06.2024 07:21 [13:42:55]1206 (1) - 0 [13:42:55]OFD Sender: Remove packet 104382 [13:42:55]ProducePacketName [13:42:55]name=ofd_packets/00104382 [13:42:55]NVStorageDeleteData [13:42:55]Write to MH i2c: 01 00 00 D4 12 E6 [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: 01 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: 01 07 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 DA 0C D3 [13:42:55]RasterBufferAndPrint [13:42:55]line [13:42:55]line [13:42:55]line [13:42:55]line [13:42:55]line [13:42:55]written 0, free lines is 3297 [13:42:55]MH_Cut [13:42:55]Write to MH i2c: D1 01 00 DB 12 01 BF [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: D1 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: D1 01 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: D1 01 00 DB 12 00 BE [13:42:55]Write to MH i2c: 01 00 00 DC 12 EE [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]OFD Sender: No OFD packet to send [13:42:56]*** Cut start [13:42:56]*** Partial cut [13:42:56]*** CUTSNS_PIN = 1 [13:42:56]*** CUTSNS_PIN = 0 [13:42:56]*** Brake cut motor [13:42:56]Read from MH i2c: 01 [13:42:56]MH_I2C_Read... [13:42:56]*** Stop cut motor [13:42:56]*** Cut end [13:42:56]Read from MH i2c: 01 07 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 FF 0F 03 [13:42:56]process_action close_receipt done [13:42:56]requested_data is exist [13:42:56]produce_requested_data [13:42:56]requested_item fm.sn is exist - process it [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 11 00 00 [13:42:56]Write to MH i2c: E2 08 00 DD 12 80 11 00 00 00 00 00 00 69 [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 17 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 17 00 DD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [13: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 [13:42:56]wFMCommunicate OK [13:42:56]requested_item fd.num is exist - process it [13:42:56]SAM_PROTO_GetFieldsCounters [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 13 00 00 [13:42:56]Write to MH i2c: E2 08 00 DE 12 80 13 00 00 00 00 00 00 6C [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 62 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 62 00 DE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A7 [13: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 BE 97 01 00 0E 04 04 00 64 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:42:56]wFMCommunicate OK [13:42:56]SAM_PROTO_GetFieldsCounters done [13:42:56]requested_item shift.num is exist - process it [13:42:56]requested_item shift.opened is exist - process it [13:42:56]req_shift_opened [13:42:56]FM_GetShiftState [13:42:56]SAM_PROTO_GetShiftState [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 13 01 00 [13:42:56]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 0E 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 60 [13:42:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:42:56]wFMCommunicate OK [13:42:56]SAM_PROTO_GetShiftState done [13:42:56]FM_GetShiftState done [13:42:56]req_shift_opened done [13:42:56]requested_item shift.open_date is exist - process it [13:42:56]req_shift_open_date [13:42:56]req_shift_open_date done [13:42:56]produce_requested_data done [13:42:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104382,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:42:56]process_action_free close_receipt [13:42:56]json_value_free [13:42:56]json_value_free done [13:42:56]process_json_proto returns [13:42:56]Send response to host [13:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104382,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:42:56]free response buf [13:42:56]execute_script done [13:42:56]execute_script returns [13:42:56]free content buf [13:42:56]Sock 9.Close socket [13:42:56]Sock 9.Thread stoped [13:43:00]accept exits with 7 [13:43:00]New connection [13:43:00]New thread 3066449252 created [13:43:00]Thread 3066592612 joined [13:43:00]Waiting for new connection... [13:43:00] Sock 7.Parse request [13:43:00]Sock 7.Check first char [13:43:00]Sock 7.First char is OK [13:43:00]request: POST /json_proto HTTP/1.0 [13:43:00]Method: POST [13:43:00]URL: /json_proto [13:43:00]Method is POST - this is cgi request [13:43:00]url: /json_proto [13:43:00]query_string will be loaded in cgi processing [13:43:00]execute_cgi json_proto POST (null) [13:43:00]execute_cgi path=json_proto method=POST [13:43:00]POST find Content-Length [13:43:00]Host: 172.17.38.133:8080 [13:43:00]Content-Length: 677 [13:43:00]Content-Type: application/json [13:43:00] [13:43:00]POST finish read [13:43:00]Found Content-Length = 677 [13:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673926", "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" ] } } [13:43:00]execute_script... [13:43: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)673926", "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" ] } } [13:43:00]POST & json_proto [13:43:00]process_json_proto [13:43:00]json parsed OK: [13:43:00]protocol is kg_v1.0 [13:43:00]action value=close_receipt [13:43:00]process_action close_receipt [13:43:00]cmd_close_receipt [13:43:00]MH_GetDate [13:43:00]Write to MH i2c: F0 00 00 E0 12 E1 [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: F0 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: F0 09 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: F0 09 00 E0 12 00 E6 D4 76 66 BD 8F 7C 64 AC [13:43:00]GetLastDocTimeStamp 1719063774 [13:43:00]current date 1719063782 [13:43:00]FM_GetShiftState [13:43:00]SAM_PROTO_GetShiftState [13:43:00]wFMCommunicate request_size=4 [13:43:00]MH_SAM_APDU [13:43:00]CAPDU: 80 13 01 00 [13:43:00]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:00]Read from MH i2c: E2 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 0E 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 62 [13:43:00]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:43:00]wFMCommunicate OK [13:43:00]SAM_PROTO_GetShiftState done [13:43:00]FM_GetShiftState done [13:43:00]opened in 1719016176 [13:43:00]opened+sec_in_day 1719102576 [13:43:00]quantity*price = 30012 [13:43:00]sum+1 = 30014 [13:43:00]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 СНО: Общий режим Чек 116 22.06.2024 13:43 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104383 ФПД: 21589222257982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134302&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104383&fm=21589222257982&tin=02508201610067®Number=0000000000092785&sum=30000 [13:43:01]StoreToDocumentArchive [13:43:01]shift 356 fd 104383 [13:43:01]save to /storage/0356/doc_00104383 [13:43:01]save last doc name /storage/0356/doc_00104383 to /storage/kkm_last_doc_name [13:43:01]save OK [13:43:01]Clear old archive folders... [13:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:01]tlvbuf is 00FE75C0 [13:43:01]SAM_PROTO_ClearQueue [13:43:01]wFMCommunicate request_size=4 [13:43:01]MH_SAM_APDU [13:43:01]CAPDU: 80 09 00 00 [13:43:01]Write to MH i2c: E2 08 00 EE 12 80 09 00 00 00 00 00 00 72 [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:01]Read from MH i2c: E2 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: E2 03 00 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [13:43:01]RAPDU: 90 00 [13:43:01]wFMCommunicate OK [13:43:01]SAM_PROTO_ClearQueue done [13:43:01]KKMCreateOFDPacket [13:43:01]OFDProtocolAddRootSTLVToBuf [13:43:01]FM_MakeSignedData [13:43:01]FM_MakeSignedData [13:43:01]SAM_PROTO_SignData [13:43:01]wFMCommunicate request_size=4 [13:43:01]MH_SAM_APDU [13:43:01]CAPDU: 80 0D 01 02 [13:43:01]Write to MH i2c: E2 08 00 EF 12 80 0D 01 02 00 00 00 00 7A [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:01]Read from MH i2c: E2 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: E2 03 00 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [13:43:01]RAPDU: 90 00 [13:43:01]wFMCommunicate OK [13:43:01]wFMCommunicate request_size=255 [13:43:01]MH_SAM_APDU [13:43: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 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 74 00 00 00 F4 03 04 00 E6 D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 13 [13:43:01]Write to MH i2c: E2 02 01 F0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 74 00 00 00 F4 03 04 00 E6 D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 13 00 00 AB [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:02]Read from MH i2c: E2 03 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [13:43:02]RAPDU: 90 00 [13:43:02]wFMCommunicate OK [13:43:02]wFMCommunicate request_size=10 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 0D 02 02 05 A2 A1 EC 75 3E [13:43:02]Write to MH i2c: E2 0D 00 F1 12 80 0D 02 02 05 00 A2 A1 EC 75 3E 00 00 69 [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 03 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [13:43:02]RAPDU: 90 00 [13:43:02]wFMCommunicate OK [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 0D 03 02 [13:43:02]Write to MH i2c: E2 08 00 F2 12 80 0D 03 02 00 00 00 00 7F [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0B 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0B 00 F2 12 00 43 E6 EF D0 27 97 3D B5 90 00 18 [13:43:02]RAPDU: 43 E6 EF D0 27 97 3D B5 90 00 [13:43:02]wFMCommunicate OK [13:43:02]SAM_PROTO_SignData done [13:43:02]FM_MakeSignedData done [13:43:02]CreateOFDProtocolMessage [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 11 00 00 [13:43:02]Write to MH i2c: E2 08 00 F3 12 80 11 00 00 00 00 00 00 7F [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 F3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [13:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:43:02]wFMCommunicate OK [13:43:02]CreateOFDProtocolMessage done [13:43:02]OFDSenderStorePacket 104383 [13:43:02]StoreOFDPacket docnum=104383 [13:43: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 1E C5 07 01 24 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 E6 D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 13 A2 A1 EC 75 3E 43 E6 EF D0 27 97 3D B5 [13:43:02]CheckFolder [13:43:02]dirname=/storage/ofd_packets [13:43:02]CheckFolder done [13:43:02]ProducePacketName [13:43:02]name=ofd_packets/00104383 [13:43:02]NVStorageSaveData ofd_packets/00104383 [13:43:02]File name is /storage/ofd_packets/00104383 [13:43:02]Write 301 bytes [13:43:02]NVStorageSaveData done [13:43:02]OFDSenderStorePacket done [13:43:02]KKMCreateOFDPacket done [13:43:02]NVStorageSaveData kkm_last_timestamp [13:43:02]File name is /storage/kkm_last_timestamp [13:43:02]Write 4 bytes [13:43:02]NVStorageSaveData done [13:43:02]ExternCall_PrintAddStr [13:43:02]wPrintStart [13:43:02]Write to MH i2c: 01 00 00 F4 12 06 [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 FF 0F 1B [13:43:02]RasterBufferAndPrint [13:43:02]line Счет N : (1)673926 [13:43:02]line ИНН: 02508201610067 [13:43:02]line Контрольно-Кассовый Чек [13:43:02]line ПРОДАЖА [13:43:02]line ТРК (МРК, ГНК) : 42 [13:43:02]line Товар: 2710124130 [13:43:02]line Аи-92-К-5 [13:43:02]line 4.520 * 66.40 [13:43:02]line = 300.13 [13:43:02]line НДС 12% НСП 1% [13:43:02]line > о реализуемом товаре [13:43:02]line ОКРУГЛЕНИЕ: -0.13 [13:43:02]line ИТОГО: 300.00 [13:43:02]line Внесено: 300.00 [13:43:02]line СДАЧА: 0.00 [13:43:02]line НСП 1% : 2.66 [13:43:02]line НДС 12% : 31.87 [13:43:02]line Наличными: 300.00 [13:43:02]line Безнал.: 0.00 [13:43:02]line Место: АЗС № 120 "Партнер Нефть" [13:43:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:43:02]line СНО: Общий режим [13:43:02]line Чек 116 22.06.2024 13:43 [13:43:02]line Смена: 356 ФФД: 1.0 [13:43:02]line ЗНМ: 0300000164 [13:43:02]line РНМ: 0000000000092785 [13:43:02]line Версия ККМ: 001 [13:43:02]line ФМ: 0000000000875093 [13:43:02]line ФД: 104383 [13:43:02]line ФПД: 21589222257982 [13:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134302&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104383&fm=21589222257982&tin=02508201610067®Number=0000000000092785&sum=30000 [13:43:02]OFD Sender: Processing packet 104383 [packets to send 17, broken 16] [13:43:02]ProducePacketName [13:43:02]name=ofd_packets/00104383 [13:43:02]OFD Sender: To server: pG, [13:43:02]CommunicateWithHost lk.salyk.kg:30040 [13:43:02]ConnectInit lk.salyk.kg [13:43:02]written 0, free lines is 4095 [13:43:02]Connected sock=10 [13:43: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 1E C5 07 01 24 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 E6 D4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 13 A2 A1 EC 75 3E 43 E6 EF D0 27 97 3D B5 [13:43: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 7E 2B 47 00 4D 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 BF 97 01 00 F4 03 04 00 64 7B 76 66 B6 04 01 00 00 20 79 62 E9 DB A1 D7 7F [13:43:02]CommunicateWithHost err = 0 [13:43:02]CheckOFDResponse [13:43:02]1017 (14) - 77093643461234 [13:43:02]1041 (16) - 0000000000875093 [13:43:02]1040 (4) - 104383 [13:43:02]1012 (4) - 22.06.2024 07:21 [13:43:02]1206 (1) - 0 [13:43:02]OFD Sender: Remove packet 104383 [13:43:02]ProducePacketName [13:43:02]name=ofd_packets/00104383 [13:43:02]NVStorageDeleteData [13:43:02]Write to MH i2c: 01 00 00 1F 13 32 [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 F2 0C 37 [13:43:02]RasterBufferAndPrint [13:43:02]line [13:43:02]line [13:43:02]line [13:43:02]line [13:43:02]line [13:43:02]written 0, free lines is 3327 [13:43:02]MH_Cut [13:43:02]Write to MH i2c: D1 01 00 26 13 01 0B [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: D1 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: D1 01 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: D1 01 00 26 13 00 0A [13:43:02]Write to MH i2c: 01 00 00 27 13 3A [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:03]OFD Sender: No OFD packet to send [13:43:03]*** Cut start [13:43:03]*** Partial cut [13:43:03]*** CUTSNS_PIN = 1 [13:43:03]*** CUTSNS_PIN = 0 [13:43:03]*** Brake cut motor [13:43:04]Read from MH i2c: 01 [13:43:04]MH_I2C_Read... [13:43:04]*** Stop cut motor [13:43:04]*** Cut end [13:43:04]Read from MH i2c: 01 07 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: 01 07 00 27 13 00 00 00 00 00 FF 0F 4F [13:43:04]process_action close_receipt done [13:43:04]requested_data is exist [13:43:04]produce_requested_data [13:43:04]requested_item fm.sn is exist - process it [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 11 00 00 [13:43:04]Write to MH i2c: E2 08 00 28 13 80 11 00 00 00 00 00 00 B5 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:04]Read from MH i2c: E2 17 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 17 00 28 13 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:43: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:43:04]wFMCommunicate OK [13:43:04]requested_item fd.num is exist - process it [13:43:04]SAM_PROTO_GetFieldsCounters [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 13 00 00 [13:43:04]Write to MH i2c: E2 08 00 29 13 80 13 00 00 00 00 00 00 B8 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 62 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 62 00 29 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F7 [13:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:43:04]wFMCommunicate OK [13:43:04]SAM_PROTO_GetFieldsCounters done [13:43:04]requested_item shift.num is exist - process it [13:43:04]requested_item shift.opened is exist - process it [13:43:04]req_shift_opened [13:43:04]FM_GetShiftState [13:43:04]SAM_PROTO_GetShiftState [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 13 01 00 [13:43:04]Write to MH i2c: E2 08 00 2A 13 80 13 01 00 00 00 00 00 BA [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 0E 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 0E 00 2A 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AC [13:43:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:43:04]wFMCommunicate OK [13:43:04]SAM_PROTO_GetShiftState done [13:43:04]FM_GetShiftState done [13:43:04]req_shift_opened done [13:43:04]requested_item shift.open_date is exist - process it [13:43:04]req_shift_open_date [13:43:04]req_shift_open_date done [13:43:04]produce_requested_data done [13:43:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104383,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:43:04]process_action_free close_receipt [13:43:04]json_value_free [13:43:04]json_value_free done [13:43:04]process_json_proto returns [13:43:04]Send response to host [13:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104383,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:43:04]free response buf [13:43:04]execute_script done [13:43:04]execute_script returns [13:43:04]free content buf [13:43:04]Sock 7.Close socket [13:43:04]Sock 7.Thread stoped [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:36]accept exits with 9 [13:43:36]New connection [13:43:36]New thread 3066592612 created [13:43:36]Thread 3066449252 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 9.Parse request [13:43:36]Sock 9.Check first char [13:43:36]Sock 9.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.38.133:8080 [13:43:36]Content-Length: 1211 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 1211 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673923\u000A22.06.2024 13:20\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462851;3462852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]execute_script... [13:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673923\u000A22.06.2024 13:20\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462851;3462852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]POST & json_proto [13:43:36]process_json_proto [13:43:36]json parsed OK: [13:43:36]protocol is kg_v1.0 [13:43:36]action value=print_text [13:43:36]process_action print_text [13:43:36]cmd_print_text [13:43:36]ExternCall_PrintAddStr [13:43:36]wPrintStart [13:43:36]Write to MH i2c: 01 00 00 2B 13 3E [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 07 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 FF 0F 53 [13:43:36]RasterBufferAndPrint [13:43:36]line *****ТОВАРНЫЙ ЧЕК***** [13:43:36]line АЗС 120 [13:43:36]line Партнер нефть [13:43:36]line 02508201610067 [13:43:36]line Кассир : Байбугуева Г. [13:43:36]line Счет N : (1)673923 [13:43:36]line 22.06.2024 13:20 [13:43:36]line ПРОДАЖА [13:43:36]line ТРК (МРК, ГНК): 21 [13:43:36]line Вид ГСМ : 2710194210 [13:43:36]line ДТ(л)-К-5 [13:43:36]line 100.000 x 72.90 [13:43:36]line ИТОГ: 7290.00 [13:43:36]line Тип оплаты: Талоны: Партнер нефть [13:43:36]line 3462851;3462852 [13:43:36]line ______________________ [13:43:36]line (подпись) [13:43:36]written 0, free lines is 4095 [13:43:36]Write to MH i2c: 01 00 00 3F 13 52 [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 07 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 18 0E 7F [13:43:36]RasterBufferAndPrint [13:43:36]line [13:43:36]line [13:43:36]line [13:43:36]line [13:43:36]line [13:43:36]written 0, free lines is 3610 [13:43:36]MH_Cut [13:43:36]Write to MH i2c: D1 01 00 46 13 01 2B [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: D1 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: D1 01 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: D1 01 00 46 13 00 2A [13:43:36]Write to MH i2c: 01 00 00 47 13 5A [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** Cut start [13:43:36]*** Partial cut [13:43:36]*** CUTSNS_PIN = 1 [13:43:36]*** CUTSNS_PIN = 0 [13:43:37]*** Brake cut motor [13:43:37]Read from MH i2c: 01 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: 01 07 00 [13:43:37]MH_I2C_Read... [13:43:37]*** Stop cut motor [13:43:37]*** Cut end [13:43:37]Read from MH i2c: 01 07 00 47 13 00 00 00 00 00 FF 0F 6F [13:43:37]process_action print_text done [13:43:37]requested_data is exist [13:43:37]produce_requested_data [13:43:37]requested_item fm.sn is exist - process it [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 11 00 00 [13:43:37]Write to MH i2c: E2 08 00 48 13 80 11 00 00 00 00 00 00 D5 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 17 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 17 00 48 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [13:43: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:43:37]wFMCommunicate OK [13:43:37]requested_item fd.num is exist - process it [13:43:37]SAM_PROTO_GetFieldsCounters [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 13 00 00 [13:43:37]Write to MH i2c: E2 08 00 49 13 80 13 00 00 00 00 00 00 D8 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 62 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 62 00 49 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 17 [13:43: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 BF 97 01 00 0E 04 04 00 64 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:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_GetFieldsCounters done [13:43:37]requested_item shift.num is exist - process it [13:43:37]requested_item shift.opened is exist - process it [13:43:37]req_shift_opened [13:43:37]FM_GetShiftState [13:43:37]SAM_PROTO_GetShiftState [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 13 01 00 [13:43:37]Write to MH i2c: E2 08 00 4A 13 80 13 01 00 00 00 00 00 DA [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0E 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0E 00 4A 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CC [13:43:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_GetShiftState done [13:43:37]FM_GetShiftState done [13:43:37]req_shift_opened done [13:43:37]requested_item shift.open_date is exist - process it [13:43:37]req_shift_open_date [13:43:37]req_shift_open_date done [13:43:37]produce_requested_data done [13:43:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104383,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:43:37]process_action_free print_text [13:43:37]json_value_free [13:43:37]json_value_free done [13:43:37]process_json_proto returns [13:43:37]Send response to host [13:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104383,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:43:37]free response buf [13:43:37]execute_script done [13:43:37]execute_script returns [13:43:37]free content buf [13:43:37]Sock 9.Close socket [13:43:37]Sock 9.Thread stoped [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:06]accept exits with 7 [13:44:06]New connection [13:44:06]New thread 3066449252 created [13:44:06]Thread 3066592612 joined [13:44:06]Waiting for new connection... [13:44:06] Sock 7.Parse request [13:44:06]Sock 7.Check first char [13:44:06]Sock 7.First char is OK [13:44:06]request: POST /json_proto HTTP/1.0 [13:44:06]Method: POST [13:44:06]URL: /json_proto [13:44:06]Method is POST - this is cgi request [13:44:06]url: /json_proto [13:44:06]query_string will be loaded in cgi processing [13:44:06]execute_cgi json_proto POST (null) [13:44:06]execute_cgi path=json_proto method=POST [13:44:06]POST find Content-Length [13:44:06]Host: 172.17.38.133:8080 [13:44:06]Content-Length: 682 [13:44:06]Content-Type: application/json [13:44:06] [13:44:06]POST finish read [13:44:06]Found Content-Length = 682 [13:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673928", "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:44:06]execute_script... [13:44: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)673928", "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:44:06]POST & json_proto [13:44:06]process_json_proto [13:44:06]json parsed OK: [13:44:06]protocol is kg_v1.0 [13:44:06]action value=close_receipt [13:44:06]process_action close_receipt [13:44:06]cmd_close_receipt [13:44:06]MH_GetDate [13:44:06]Write to MH i2c: F0 00 00 4B 13 4D [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: F0 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: F0 09 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: F0 09 00 4B 13 00 27 D5 76 66 BD 8F 7C 64 5A [13:44:06]GetLastDocTimeStamp 1719063782 [13:44:06]current date 1719063847 [13:44:06]FM_GetShiftState [13:44:06]SAM_PROTO_GetShiftState [13:44:06]wFMCommunicate request_size=4 [13:44:06]MH_SAM_APDU [13:44:06]CAPDU: 80 13 01 00 [13:44:06]Write to MH i2c: E2 08 00 4C 13 80 13 01 00 00 00 00 00 DC [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:06]Read from MH i2c: E2 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 0E 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 0E 00 4C 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CE [13:44:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:44:06]wFMCommunicate OK [13:44:06]SAM_PROTO_GetShiftState done [13:44:06]FM_GetShiftState done [13:44:06]opened in 1719016176 [13:44:06]opened+sec_in_day 1719102576 [13:44:06]quantity*price = 100064 [13:44:06]sum+1 = 100066 [13:44:06]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 СНО: Общий режим Чек 117 22.06.2024 13:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104384 ФПД: 137671698119827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104384&fm=137671698119827&tin=02508201610067®Number=0000000000092785&sum=100000 [13:44:07]StoreToDocumentArchive [13:44:07]shift 356 fd 104384 [13:44:07]save to /storage/0356/doc_00104384 [13:44:07]save last doc name /storage/0356/doc_00104384 to /storage/kkm_last_doc_name [13:44:07]save OK [13:44:07]Clear old archive folders... [13:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:07]tlvbuf is 00FEC000 [13:44:07]SAM_PROTO_ClearQueue [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 09 00 00 [13:44:07]Write to MH i2c: E2 08 00 59 13 80 09 00 00 00 00 00 00 DE [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]SAM_PROTO_ClearQueue done [13:44:07]KKMCreateOFDPacket [13:44:07]OFDProtocolAddRootSTLVToBuf [13:44:07]FM_MakeSignedData [13:44:07]FM_MakeSignedData [13:44:07]SAM_PROTO_SignData [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 0D 01 02 [13:44:07]Write to MH i2c: E2 08 00 5A 13 80 0D 01 02 00 00 00 00 E6 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]wFMCommunicate request_size=255 [13:44:07]MH_SAM_APDU [13:44: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 75 00 00 00 F4 03 04 00 27 D5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D [13:44:07]Write to MH i2c: E2 02 01 5B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 27 D5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D 00 00 77 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 5B 13 00 90 00 E2 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]wFMCommunicate request_size=10 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 0D 02 02 05 36 30 A9 7C 93 [13:44:07]Write to MH i2c: E2 0D 00 5C 13 80 0D 02 02 05 00 36 30 A9 7C 93 00 00 11 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 5C 13 00 90 00 E3 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 0D 03 02 [13:44:07]Write to MH i2c: E2 08 00 5D 13 80 0D 03 02 00 00 00 00 EB [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 0B 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 0B 00 5D 13 00 D2 51 15 EA 8B 8A E8 45 90 00 50 [13:44:07]RAPDU: D2 51 15 EA 8B 8A E8 45 90 00 [13:44:07]wFMCommunicate OK [13:44:07]SAM_PROTO_SignData done [13:44:07]FM_MakeSignedData done [13:44:07]CreateOFDProtocolMessage [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 11 00 00 [13:44:07]Write to MH i2c: E2 08 00 5E 13 80 11 00 00 00 00 00 00 EB [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 17 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 17 00 5E 13 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: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 [13:44:07]wFMCommunicate OK [13:44:07]CreateOFDProtocolMessage done [13:44:07]OFDSenderStorePacket 104384 [13:44:07]StoreOFDPacket docnum=104384 [13:44: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 88 03 07 01 68 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 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 75 00 00 00 F4 03 04 00 27 D5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D 36 30 A9 7C 93 D2 51 15 EA 8B 8A E8 45 [13:44:07]CheckFolder [13:44:07]dirname=/storage/ofd_packets [13:44:07]CheckFolder done [13:44:07]ProducePacketName [13:44:07]name=ofd_packets/00104384 [13:44:07]NVStorageSaveData ofd_packets/00104384 [13:44:07]File name is /storage/ofd_packets/00104384 [13:44:07]Write 301 bytes [13:44:07]NVStorageSaveData done [13:44:07]OFDSenderStorePacket done [13:44:07]KKMCreateOFDPacket done [13:44:07]NVStorageSaveData kkm_last_timestamp [13:44:07]File name is /storage/kkm_last_timestamp [13:44:07]Write 4 bytes [13:44:07]NVStorageSaveData done [13:44:07]ExternCall_PrintAddStr [13:44:07]wPrintStart [13:44:07]Write to MH i2c: 01 00 00 5F 13 72 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 07 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 07 00 5F 13 00 00 00 00 00 FF 0F 87 [13:44:07]RasterBufferAndPrint [13:44:07]line Счет N : (1)673928 [13:44:07]line ИНН: 02508201610067 [13:44:07]line Контрольно-Кассовый Чек [13:44:07]line ПРОДАЖА [13:44:07]line ТРК (МРК, ГНК) : 32 [13:44:07]line Товар: 2710124130 [13:44:07]line Аи-92-К-5 [13:44:07]line 15.070 * 66.40 [13:44:07]line = 1000.65 [13:44:07]line НДС 12% НСП 1% [13:44:07]line > о реализуемом товаре [13:44:07]line ОКРУГЛЕНИЕ: -0.65 [13:44:07]line ИТОГО: 1000.00 [13:44:07]line Внесено: 1000.00 [13:44:07]line СДАЧА: 0.00 [13:44:07]line НСП 1% : 8.85 [13:44:07]line НДС 12% : 106.26 [13:44:07]line Наличными: 1000.00 [13:44:07]line Безнал.: 0.00 [13:44:07]line Место: АЗС № 120 "Партнер Нефть" [13:44:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:44:07]line СНО: Общий режим [13:44:07]line Чек 117 22.06.2024 13:44 [13:44:07]line Смена: 356 ФФД: 1.0 [13:44:07]line ЗНМ: 0300000164 [13:44:07]line РНМ: 0000000000092785 [13:44:07]line Версия ККМ: 001 [13:44:07]line ФМ: 0000000000875093 [13:44:07]line ФД: 104384 [13:44:07]line ФПД: 137671698119827 [13:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104384&fm=137671698119827&tin=02508201610067®Number=0000000000092785&sum=100000 [13:44:08]OFD Sender: Processing packet 104384 [packets to send 17, broken 16] [13:44:08]ProducePacketName [13:44:08]name=ofd_packets/00104384 [13:44:08]OFD Sender: To server: pG, [13:44:08]CommunicateWithHost lk.salyk.kg:30040 [13:44:08]ConnectInit lk.salyk.kg [13:44:08]written 0, free lines is 4095 [13:44:08]Connected sock=10 [13:44: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 88 03 07 01 68 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 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 75 00 00 00 F4 03 04 00 27 D5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 7D 36 30 A9 7C 93 D2 51 15 EA 8B 8A E8 45 [13:44: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 1C C1 47 00 59 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 C0 97 01 00 F4 03 04 00 A6 7B 76 66 B6 04 01 00 00 64 74 F8 B2 A6 1C 91 59 [13:44:08]CommunicateWithHost err = 0 [13:44:08]CheckOFDResponse [13:44:08]1017 (14) - 77093643461234 [13:44:08]1041 (16) - 0000000000875093 [13:44:08]1040 (4) - 104384 [13:44:08]1012 (4) - 22.06.2024 07:22 [13:44:08]1206 (1) - 0 [13:44:08]OFD Sender: Remove packet 104384 [13:44:08]ProducePacketName [13:44:08]name=ofd_packets/00104384 [13:44:08]NVStorageDeleteData [13:44:08]Write to MH i2c: 01 00 00 8A 13 9D [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 8A 13 00 00 00 00 00 DA 0C 8A [13:44:08]RasterBufferAndPrint [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]written 0, free lines is 3297 [13:44:08]MH_Cut [13:44:08]Write to MH i2c: D1 01 00 91 13 01 76 [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 01 00 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 01 00 91 13 00 75 [13:44:08]Write to MH i2c: 01 00 00 92 13 A5 [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:09]OFD Sender: No OFD packet to send [13:44:09]*** Cut start [13:44:09]*** Partial cut [13:44:09]*** CUTSNS_PIN = 1 [13:44:09]*** CUTSNS_PIN = 0 [13:44:09]*** Brake cut motor [13:44:09]Read from MH i2c: 01 [13:44:10]MH_I2C_Read... [13:44:10]*** Stop cut motor [13:44:10]*** Cut end [13:44:10]Read from MH i2c: 01 07 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: 01 07 00 92 13 00 00 00 00 00 FF 0F BA [13:44:10]process_action close_receipt done [13:44:10]requested_data is exist [13:44:10]produce_requested_data [13:44:10]requested_item fm.sn is exist - process it [13:44:10]wFMCommunicate request_size=4 [13:44:10]MH_SAM_APDU [13:44:10]CAPDU: 80 11 00 00 [13:44:10]Write to MH i2c: E2 08 00 93 13 80 11 00 00 00 00 00 00 20 [13:44:10]Write i2c OK [13:44:10]MH_I2C_Read... [13:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:10]Read from MH i2c: E2 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 17 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 17 00 93 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [13:44: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:44:10]wFMCommunicate OK [13:44:10]requested_item fd.num is exist - process it [13:44:10]SAM_PROTO_GetFieldsCounters [13:44:10]wFMCommunicate request_size=4 [13:44:10]MH_SAM_APDU [13:44:10]CAPDU: 80 13 00 00 [13:44:10]Write to MH i2c: E2 08 00 94 13 80 13 00 00 00 00 00 00 23 [13:44:10]Write i2c OK [13:44:10]MH_I2C_Read... [13:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:10]Read from MH i2c: E2 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 62 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 62 00 94 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 66 [13:44: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 97 01 00 0E 04 04 00 64 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:44:10]wFMCommunicate OK [13:44:10]SAM_PROTO_GetFieldsCounters done [13:44:10]requested_item shift.num is exist - process it [13:44:10]requested_item shift.opened is exist - process it [13:44:10]req_shift_opened [13:44:10]FM_GetShiftState [13:44:10]SAM_PROTO_GetShiftState [13:44:10]wFMCommunicate request_size=4 [13:44:10]MH_SAM_APDU [13:44:10]CAPDU: 80 13 01 00 [13:44:10]Write to MH i2c: E2 08 00 95 13 80 13 01 00 00 00 00 00 25 [13:44:10]Write i2c OK [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 [13:44:10]MH_I2C_Read... [13:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:10]Read from MH i2c: E2 0E 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 0E 00 95 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 17 [13:44:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:44:10]wFMCommunicate OK [13:44:10]SAM_PROTO_GetShiftState done [13:44:10]FM_GetShiftState done [13:44:10]req_shift_opened done [13:44:10]requested_item shift.open_date is exist - process it [13:44:10]req_shift_open_date [13:44:10]req_shift_open_date done [13:44:10]produce_requested_data done [13:44:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:44:10]process_action_free close_receipt [13:44:10]json_value_free [13:44:10]json_value_free done [13:44:10]process_json_proto returns [13:44:10]Send response to host [13:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:44:10]free response buf [13:44:10]execute_script done [13:44:10]execute_script returns [13:44:10]free content buf [13:44:10]Sock 7.Close socket [13:44:10]Sock 7.Thread stoped [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:02]accept exits with 9 [13:49:02]New connection [13:49:02]New thread 3066592612 created [13:49:02]Thread 3066449252 joined [13:49:02]Waiting for new connection... [13:49:02] Sock 9.Parse request [13:49:02]Sock 9.Check first char [13:49:02]Sock 9.First char is OK [13:49:02]request: POST /json_proto HTTP/1.0 [13:49:02]Method: POST [13:49:02]URL: /json_proto [13:49:02]Method is POST - this is cgi request [13:49:02]url: /json_proto [13:49:02]query_string will be loaded in cgi processing [13:49:02]execute_cgi json_proto POST (null) [13:49:02]execute_cgi path=json_proto method=POST [13:49:02]POST find Content-Length [13:49:02]Host: 172.17.38.133:8080 [13:49:02]Content-Length: 1211 [13:49:02]Content-Type: application/json [13:49:02] [13:49:02]POST finish read [13:49:02]Found Content-Length = 1211 [13:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673927\u000A22.06.2024 13:26\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462856;3462853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:02]execute_script... [13:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673927\u000A22.06.2024 13:26\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462856;3462853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:02]POST & json_proto [13:49:02]process_json_proto [13:49:02]json parsed OK: [13:49:02]protocol is kg_v1.0 [13:49:02]action value=print_text [13:49:02]process_action print_text [13:49:02]cmd_print_text [13:49:02]ExternCall_PrintAddStr [13:49:02]wPrintStart [13:49:02]Write to MH i2c: 01 00 00 96 13 A9 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 FF 0F BE [13:49:02]RasterBufferAndPrint [13:49:02]line *****ТОВАРНЫЙ ЧЕК***** [13:49:02]line АЗС 120 [13:49:02]line Партнер нефть [13:49:02]line 02508201610067 [13:49:02]line Кассир : Байбугуева Г. [13:49:02]line Счет N : (1)673927 [13:49:02]line 22.06.2024 13:26 [13:49:02]line ПРОДАЖА [13:49:02]line ТРК (МРК, ГНК): 21 [13:49:02]line Вид ГСМ : 2710194210 [13:49:02]line ДТ(л)-К-5 [13:49:02]line 100.000 x 72.90 [13:49:02]line ИТОГ: 7290.00 [13:49:02]line Тип оплаты: Талоны: Партнер нефть [13:49:02]line 3462856;3462853 [13:49:02]line ______________________ [13:49:02]line (подпись) [13:49:02]written 0, free lines is 4095 [13:49:02]Write to MH i2c: 01 00 00 AA 13 BD [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 17 0E E9 [13:49:02]RasterBufferAndPrint [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]written 0, free lines is 3609 [13:49:02]MH_Cut [13:49:02]Write to MH i2c: D1 01 00 B1 13 01 96 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 01 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 01 00 B1 13 00 95 [13:49:02]Write to MH i2c: 01 00 00 B2 13 C5 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]*** Cut start [13:49:02]*** Partial cut [13:49:02]*** CUTSNS_PIN = 1 [13:49:03]*** CUTSNS_PIN = 0 [13:49:03]*** Brake cut motor [13:49:03]Read from MH i2c: 01 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: 01 07 00 [13:49:03]MH_I2C_Read... [13:49:03]*** Stop cut motor [13:49:03]*** Cut end [13:49:03]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 FF 0F DA [13:49:03]process_action print_text done [13:49:03]requested_data is exist [13:49:03]produce_requested_data [13:49:03]requested_item fm.sn is exist - process it [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 11 00 00 [13:49:03]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 17 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [13:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:49:03]wFMCommunicate OK [13:49:03]requested_item fd.num is exist - process it [13:49:03]SAM_PROTO_GetFieldsCounters [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 13 00 00 [13:49:03]Write to MH i2c: E2 08 00 B4 13 80 13 00 00 00 00 00 00 43 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 62 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 62 00 B4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 86 [13:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_GetFieldsCounters done [13:49:03]requested_item shift.num is exist - process it [13:49:03]requested_item shift.opened is exist - process it [13:49:03]req_shift_opened [13:49:03]FM_GetShiftState [13:49:03]SAM_PROTO_GetShiftState [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 13 01 00 [13:49:03]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 37 [13:49:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_GetShiftState done [13:49:03]FM_GetShiftState done [13:49:03]req_shift_opened done [13:49:03]requested_item shift.open_date is exist - process it [13:49:03]req_shift_open_date [13:49:03]req_shift_open_date done [13:49:03]produce_requested_data done [13:49:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:49:03]process_action_free print_text [13:49:03]json_value_free [13:49:03]json_value_free done [13:49:03]process_json_proto returns [13:49:03]Send response to host [13:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:49:03]free response buf [13:49:03]execute_script done [13:49:03]execute_script returns [13:49:03]free content buf [13:49:03]Sock 9.Close socket [13:49:03]Sock 9.Thread stoped [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]accept exits with 7 [13:54:24]New connection [13:54:24]New thread 3066449252 created [13:54:24]Thread 3066592612 joined [13:54:24]Waiting for new connection... [13:54:24] Sock 7.Parse request [13:54:24]Sock 7.Check first char [13:54:24]Sock 7.First char is OK [13:54:24]request: POST /json_proto HTTP/1.0 [13:54:24]Method: POST [13:54:24]URL: /json_proto [13:54:24]Method is POST - this is cgi request [13:54:24]url: /json_proto [13:54:24]query_string will be loaded in cgi processing [13:54:24]execute_cgi json_proto POST (null) [13:54:24]execute_cgi path=json_proto method=POST [13:54:24]POST find Content-Length [13:54:24]Host: 172.17.38.133:8080 [13:54:24]Content-Length: 1211 [13:54:24]Content-Type: application/json [13:54:24] [13:54:24]POST finish read [13:54:24]Found Content-Length = 1211 [13:54: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673929\u000A22.06.2024 13:31\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462857;3462855\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:24]execute_script... [13:54: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673929\u000A22.06.2024 13:31\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462857;3462855\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:24]POST & json_proto [13:54:24]process_json_proto [13:54:24]json parsed OK: [13:54:24]protocol is kg_v1.0 [13:54:24]action value=print_text [13:54:24]process_action print_text [13:54:24]cmd_print_text [13:54:24]ExternCall_PrintAddStr [13:54:24]wPrintStart [13:54:24]Write to MH i2c: 01 00 00 B6 13 C9 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [13:54:24]RasterBufferAndPrint [13:54:24]line *****ТОВАРНЫЙ ЧЕК***** [13:54:24]line АЗС 120 [13:54:24]line Партнер нефть [13:54:24]line 02508201610067 [13:54:24]line Кассир : Байбугуева Г. [13:54:24]line Счет N : (1)673929 [13:54:24]line 22.06.2024 13:31 [13:54:24]line ПРОДАЖА [13:54:24]line ТРК (МРК, ГНК): 21 [13:54:24]line Вид ГСМ : 2710194210 [13:54:24]line ДТ(л)-К-5 [13:54:24]line 100.000 x 72.90 [13:54:24]line ИТОГ: 7290.00 [13:54:24]line Тип оплаты: Талоны: Партнер нефть [13:54:24]line 3462857;3462855 [13:54:24]line ______________________ [13:54:24]line (подпись) [13:54:24]written 0, free lines is 4095 [13:54:24]OFD Sender: No OFD packet to send [13:54:24]Write to MH i2c: 01 00 00 CA 13 DD [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 CA 13 00 00 00 00 00 17 0E 09 [13:54:24]RasterBufferAndPrint [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]written 0, free lines is 3609 [13:54:24]MH_Cut [13:54:24]Write to MH i2c: D1 01 00 D1 13 01 B6 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 01 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 01 00 D1 13 00 B5 [13:54:24]Write to MH i2c: 01 00 00 D2 13 E5 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:25]*** Cut start [13:54:25]*** Partial cut [13:54:25]*** CUTSNS_PIN = 1 [13:54:25]*** CUTSNS_PIN = 0 [13:54:25]*** Brake cut motor [13:54:25]Read from MH i2c: 01 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: 01 07 00 [13:54:25]MH_I2C_Read... [13:54:25]*** Stop cut motor [13:54:25]*** Cut end [13:54:25]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [13:54:25]process_action print_text done [13:54:25]requested_data is exist [13:54:25]produce_requested_data [13:54:25]requested_item fm.sn is exist - process it [13:54:25]wFMCommunicate request_size=4 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 11 00 00 [13:54:25]Write to MH i2c: E2 08 00 D3 13 80 11 00 00 00 00 00 00 60 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 17 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 17 00 D3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [13:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:54:25]wFMCommunicate OK [13:54:25]requested_item fd.num is exist - process it [13:54:25]SAM_PROTO_GetFieldsCounters [13:54:25]wFMCommunicate request_size=4 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 13 00 00 [13:54:25]Write to MH i2c: E2 08 00 D4 13 80 13 00 00 00 00 00 00 63 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:26]Read from MH i2c: E2 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 62 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 62 00 D4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A6 [13:54: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 C0 97 01 00 0E 04 04 00 64 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:54:26]wFMCommunicate OK [13:54:26]SAM_PROTO_GetFieldsCounters done [13:54:26]requested_item shift.num is exist - process it [13:54:26]requested_item shift.opened is exist - process it [13:54:26]req_shift_opened [13:54:26]FM_GetShiftState [13:54:26]SAM_PROTO_GetShiftState [13:54:26]wFMCommunicate request_size=4 [13:54:26]MH_SAM_APDU [13:54:26]CAPDU: 80 13 01 00 [13:54:26]Write to MH i2c: E2 08 00 D5 13 80 13 01 00 00 00 00 00 65 [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:26]Read from MH i2c: E2 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 0E 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 0E 00 D5 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 57 [13:54:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:54:26]wFMCommunicate OK [13:54:26]SAM_PROTO_GetShiftState done [13:54:26]FM_GetShiftState done [13:54:26]req_shift_opened done [13:54:26]requested_item shift.open_date is exist - process it [13:54:26]req_shift_open_date [13:54:26]req_shift_open_date done [13:54:26]produce_requested_data done [13:54:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:54:26]process_action_free print_text [13:54:26]json_value_free [13:54:26]json_value_free done [13:54:26]process_json_proto returns [13:54:26]Send response to host [13:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:54:26]free response buf [13:54:26]execute_script done [13:54:26]execute_script returns [13:54:26]free content buf [13:54:26]Sock 7.Close socket [13:54:26]Sock 7.Thread stoped [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56: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:15]accept exits with 9 [13:57:15]New connection [13:57:15]New thread 3066592612 created [13:57:15]Thread 3066449252 joined [13:57:15]Waiting for new connection... [13:57:15] Sock 9.Parse request [13:57:15]Sock 9.Check first char [13:57:15]Sock 9.First char is OK [13:57:15]request: POST /json_proto HTTP/1.0 [13:57:15]Method: POST [13:57:15]URL: /json_proto [13:57:15]Method is POST - this is cgi request [13:57:15]url: /json_proto [13:57:15]query_string will be loaded in cgi processing [13:57:15]execute_cgi json_proto POST (null) [13:57:15]execute_cgi path=json_proto method=POST [13:57:15]POST find Content-Length [13:57:15]Host: 172.17.38.133:8080 [13:57:15]Content-Length: 1212 [13:57:15]Content-Type: application/json [13:57:15] [13:57:15]POST finish read [13:57:15]Found Content-Length = 1212 [13:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673930\u000A22.06.2024 13:34\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\u000A03080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:15]execute_script... [13:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673930\u000A22.06.2024 13:34\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\u000A03080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:15]POST & json_proto [13:57:15]process_json_proto [13:57:15]json parsed OK: [13:57:15]protocol is kg_v1.0 [13:57:15]action value=print_text [13:57:15]process_action print_text [13:57:15]cmd_print_text [13:57:15]ExternCall_PrintAddStr [13:57:15]wPrintStart [13:57:15]Write to MH i2c: 01 00 00 D6 13 E9 [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 07 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 FF 0F FE [13:57:15]RasterBufferAndPrint [13:57:15]line *****ТОВАРНЫЙ ЧЕК***** [13:57:15]line АЗС 120 [13:57:15]line Партнер нефть [13:57:15]line 02508201610067 [13:57:15]line Кассир : Байбугуева Г. [13:57:15]line Счет N : (1)673930 [13:57:15]line 22.06.2024 13:34 [13:57:15]line ПРОДАЖА [13:57:15]line ТРК (МРК, ГНК): 21 [13:57:15]line Вид ГСМ : 2710194210 [13:57:15]line ДТ(л)-К-5 [13:57:15]line 50.000 x 72.90 [13:57:15]line ИТОГ: 3645.00 [13:57:15]line Тип оплаты: Талоны: Топливная Карта [13:57:15]line 03080 [13:57:15]line ______________________ [13:57:15]line (подпись) [13:57:15]written 0, free lines is 4095 [13:57:15]Write to MH i2c: 01 00 00 EA 13 FD [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 07 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 12 0E 24 [13:57:15]RasterBufferAndPrint [13:57:15]line [13:57:15]line [13:57:15]line [13:57:15]line [13:57:15]line [13:57:15]written 0, free lines is 3603 [13:57:15]MH_Cut [13:57:15]Write to MH i2c: D1 01 00 F1 13 01 D6 [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: D1 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: D1 01 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: D1 01 00 F1 13 00 D5 [13:57:15]Write to MH i2c: 01 00 00 F2 13 05 [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]*** Cut start [13:57:15]*** Partial cut [13:57:15]*** CUTSNS_PIN = 1 [13:57:16]*** CUTSNS_PIN = 0 [13:57:16]*** Brake cut motor [13:57:16]Read from MH i2c: 01 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 07 00 [13:57:16]MH_I2C_Read... [13:57:16]*** Stop cut motor [13:57:16]*** Cut end [13:57:16]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 FF 0F 1A [13:57:16]process_action print_text done [13:57:16]requested_data is exist [13:57:16]produce_requested_data [13:57:16]requested_item fm.sn is exist - process it [13:57:16]wFMCommunicate request_size=4 [13:57:16]MH_SAM_APDU [13:57:16]CAPDU: 80 11 00 00 [13:57:16]Write to MH i2c: E2 08 00 F3 13 80 11 00 00 00 00 00 00 80 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 17 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 17 00 F3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [13:57: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:57:16]wFMCommunicate OK [13:57:16]requested_item fd.num is exist - process it [13:57:16]SAM_PROTO_GetFieldsCounters [13:57:16]wFMCommunicate request_size=4 [13:57:16]MH_SAM_APDU [13:57:16]CAPDU: 80 13 00 00 [13:57:16]Write to MH i2c: E2 08 00 F4 13 80 13 00 00 00 00 00 00 83 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 62 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 62 00 F4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C6 [13:57: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 C0 97 01 00 0E 04 04 00 64 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:57:16]wFMCommunicate OK [13:57:16]SAM_PROTO_GetFieldsCounters done [13:57:16]requested_item shift.num is exist - process it [13:57:16]requested_item shift.opened is exist - process it [13:57:16]req_shift_opened [13:57:16]FM_GetShiftState [13:57:16]SAM_PROTO_GetShiftState [13:57:16]wFMCommunicate request_size=4 [13:57:16]MH_SAM_APDU [13:57:16]CAPDU: 80 13 01 00 [13:57:16]Write to MH i2c: E2 08 00 F5 13 80 13 01 00 00 00 00 00 85 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 0E 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 0E 00 F5 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 77 [13:57:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:57:16]wFMCommunicate OK [13:57:16]SAM_PROTO_GetShiftState done [13:57:16]FM_GetShiftState done [13:57:16]req_shift_opened done [13:57:16]requested_item shift.open_date is exist - process it [13:57:16]req_shift_open_date [13:57:16]req_shift_open_date done [13:57:16]produce_requested_data done [13:57:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:57:16]process_action_free print_text [13:57:16]json_value_free [13:57:16]json_value_free done [13:57:16]process_json_proto returns [13:57:16]Send response to host [13:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104384,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:57:16]free response buf [13:57:16]execute_script done [13:57:16]execute_script returns [13:57:16]free content buf [13:57:16]Sock 9.Close socket [13:57:16]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:58:33]accept exits with 7 [13:58:33]New connection [13:58:33]New thread 3066449252 created [13:58:33]Thread 3066592612 joined [13:58:33]Waiting for new connection... [13:58:33] Sock 7.Parse request [13:58:33]Sock 7.Check first char [13:58:33]Sock 7.First char is OK [13:58:33]request: POST /json_proto HTTP/1.0 [13:58:33]Method: POST [13:58:33]URL: /json_proto [13:58:33]Method is POST - this is cgi request [13:58:33]url: /json_proto [13:58:33]query_string will be loaded in cgi processing [13:58:33]execute_cgi json_proto POST (null) [13:58:33]execute_cgi path=json_proto method=POST [13:58:33]POST find Content-Length [13:58:33]Host: 172.17.38.133:8080 [13:58:33]Content-Length: 803 [13:58:33]Content-Type: application/json [13:58:33] [13:58:33]POST finish read [13:58:33]Found Content-Length = 803 [13:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673931", "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" : 27.110, "sum" : 1800.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" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:33]execute_script... [13:58: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)673931", "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" : 27.110, "sum" : 1800.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" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:33]POST & json_proto [13:58:33]process_json_proto [13:58:33]json parsed OK: [13:58:33]protocol is kg_v1.0 [13:58:33]action value=close_receipt [13:58:33]process_action close_receipt [13:58:33]cmd_close_receipt [13:58:33]MH_GetDate [13:58:33]Write to MH i2c: F0 00 00 F6 13 F8 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: F0 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: F0 09 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: F0 09 00 F6 13 00 8B D8 76 66 BD 8F 7C 64 6C [13:58:33]GetLastDocTimeStamp 1719063847 [13:58:33]current date 1719064715 [13:58:33]FM_GetShiftState [13:58:33]SAM_PROTO_GetShiftState [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 13 01 00 [13:58:33]Write to MH i2c: E2 08 00 F7 13 80 13 01 00 00 00 00 00 87 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:34]Read from MH i2c: E2 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: E2 0E 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: E2 0E 00 F7 13 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [13:58:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:58:34]wFMCommunicate OK [13:58:34]SAM_PROTO_GetShiftState done [13:58:34]FM_GetShiftState done [13:58:34]opened in 1719016176 [13:58:34]opened+sec_in_day 1719102576 [13:58:34]quantity*price = 180010 [13:58:34]sum+1 = 180011 [13:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.10 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.10 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 118 22.06.2024 13:58 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104385 ФПД: 174588444302478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104385&fm=174588444302478&tin=02508201610067®Number=0000000000092785&sum=180010 [13:58:35]StoreToDocumentArchive [13:58:35]shift 356 fd 104385 [13:58:35]save to /storage/0356/doc_00104385 [13:58:35]save last doc name /storage/0356/doc_00104385 to /storage/kkm_last_doc_name [13:58:35]save OK [13:58:35]Clear old archive folders... [13:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:35]tlvbuf is B6F00A90 [13:58:35]SAM_PROTO_ClearQueue [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 09 00 00 [13:58:35]Write to MH i2c: E2 08 00 04 14 80 09 00 00 00 00 00 00 8A [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 04 14 00 90 00 8C [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_ClearQueue done [13:58:35]KKMCreateOFDPacket [13:58:35]OFDProtocolAddRootSTLVToBuf [13:58:35]FM_MakeSignedData [13:58:35]FM_MakeSignedData [13:58:35]SAM_PROTO_SignData [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 01 02 [13:58:35]Write to MH i2c: E2 08 00 05 14 80 0D 01 02 00 00 00 00 92 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=255 [13:58:35]MH_SAM_APDU [13:58: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 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 8B D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E [13:58:35]Write to MH i2c: E2 02 01 06 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 8B D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E 00 00 01 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=10 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 02 02 05 C9 8A 34 5C 8E [13:58:35]Write to MH i2c: E2 0D 00 07 14 80 0D 02 02 05 00 C9 8A 34 5C 8E 00 00 10 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 03 02 [13:58:35]Write to MH i2c: E2 08 00 08 14 80 0D 03 02 00 00 00 00 97 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0B 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0B 00 08 14 00 7A F8 A3 F6 EB 18 42 41 90 00 29 [13:58:35]RAPDU: 7A F8 A3 F6 EB 18 42 41 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_SignData done [13:58:35]FM_MakeSignedData done [13:58:35]CreateOFDProtocolMessage [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 11 00 00 [13:58:35]Write to MH i2c: E2 08 00 09 14 80 11 00 00 00 00 00 00 97 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 09 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [13:58: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:58:35]wFMCommunicate OK [13:58:35]CreateOFDProtocolMessage done [13:58:35]OFDSenderStorePacket 104385 [13:58:35]StoreOFDPacket docnum=104385 [13:58: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 01 58 07 01 48 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 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 8B D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E C9 8A 34 5C 8E 7A F8 A3 F6 EB 18 42 41 [13:58:35]CheckFolder [13:58:35]dirname=/storage/ofd_packets [13:58:35]CheckFolder done [13:58:35]ProducePacketName [13:58:35]name=ofd_packets/00104385 [13:58:35]NVStorageSaveData ofd_packets/00104385 [13:58:35]File name is /storage/ofd_packets/00104385 [13:58:35]Write 301 bytes [13:58:35]NVStorageSaveData done [13:58:35]OFDSenderStorePacket done [13:58:35]KKMCreateOFDPacket done [13:58:35]NVStorageSaveData kkm_last_timestamp [13:58:35]File name is /storage/kkm_last_timestamp [13:58:35]Write 4 bytes [13:58:35]NVStorageSaveData done [13:58:35]ExternCall_PrintAddStr [13:58:35]wPrintStart [13:58:35]Write to MH i2c: 01 00 00 0A 14 1E [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 0A 14 00 00 00 00 00 FF 0F 33 [13:58:35]RasterBufferAndPrint [13:58:35]line Счет N : (1)673931 [13:58:35]line ИНН: 02508201610067 [13:58:35]line Контрольно-Кассовый Чек [13:58:35]line ПРОДАЖА [13:58:35]line ТРК (МРК, ГНК) : 42 [13:58:35]line Товар: 2710124130 [13:58:35]line Аи-92-К-5 [13:58:35]line 27.110 * 66.40 [13:58:35]line = 1800.10 [13:58:35]line НДС 12% НСП 1% [13:58:35]line > о реализуемом товаре [13:58:35]line ИТОГО: 1800.10 [13:58:35]line НСП 1% : 15.93 [13:58:35]line НДС 12% : 191.16 [13:58:35]line Наличными: 0.00 [13:58:35]line Безнал.: 1800.10 [13:58:35]line Место: АЗС № 120 "Партнер Нефть" [13:58:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:58:35]line СНО: Общий режим [13:58:35]line Чек 118 22.06.2024 13:58 [13:58:35]line Смена: 356 ФФД: 1.0 [13:58:35]line ЗНМ: 0300000164 [13:58:35]line РНМ: 0000000000092785 [13:58:35]line Версия ККМ: 001 [13:58:35]line Платежная система: O! деньги [13:58:35]line ФМ: 0000000000875093 [13:58:35]line ФД: 104385 [13:58:35]line ФПД: 174588444302478 [13:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104385&fm=174588444302478&tin=02508201610067®Number=0000000000092785&sum=180010 [13:58:35]OFD Sender: Processing packet 104385 [packets to send 17, broken 16] [13:58:35]ProducePacketName [13:58:35]name=ofd_packets/00104385 [13:58:35]OFD Sender: To server: pG, [13:58:35]CommunicateWithHost lk.salyk.kg:30040 [13:58:35]ConnectInit lk.salyk.kg [13:58:35]written 0, free lines is 4095 [13:58:35]Connected sock=10 [13:58: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 01 58 07 01 48 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 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 8B D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9E C9 8A 34 5C 8E 7A F8 A3 F6 EB 18 42 41 [13:58: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 05 FF 47 00 03 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 C1 97 01 00 F4 03 04 00 0A 7F 76 66 B6 04 01 00 00 CC FA 7A 29 B1 DA 06 04 [13:58:36]CommunicateWithHost err = 0 [13:58:36]CheckOFDResponse [13:58:36]1017 (14) - 77093643461234 [13:58:36]1041 (16) - 0000000000875093 [13:58:36]1040 (4) - 104385 [13:58:36]1012 (4) - 22.06.2024 07:36 [13:58:36]1206 (1) - 0 [13:58:36]OFD Sender: Remove packet 104385 [13:58:36]ProducePacketName [13:58:36]name=ofd_packets/00104385 [13:58:36]NVStorageDeleteData [13:58:36]Write to MH i2c: 01 00 00 34 14 48 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 EA 0C 45 [13:58:36]RasterBufferAndPrint [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]written 0, free lines is 3312 [13:58:36]MH_Cut [13:58:36]Write to MH i2c: D1 01 00 3B 14 01 21 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: D1 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: D1 01 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: D1 01 00 3B 14 00 20 [13:58:36]Write to MH i2c: 01 00 00 3C 14 50 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]OFD Sender: No OFD packet to send [13:58:37]*** Cut start [13:58:37]*** Partial cut [13:58:37]*** CUTSNS_PIN = 1 [13:58:37]*** CUTSNS_PIN = 0 [13:58:37]*** Brake cut motor [13:58:37]Read from MH i2c: 01 [13:58:37]MH_I2C_Read... [13:58:37]*** Stop cut motor [13:58:37]*** Cut end [13:58:37]Read from MH i2c: 01 07 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 FF 0F 65 [13:58:37]process_action close_receipt done [13:58:37]requested_data is exist [13:58:37]produce_requested_data [13:58:37]requested_item fm.sn is exist - process it [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 11 00 00 [13:58:37]Write to MH i2c: E2 08 00 3D 14 80 11 00 00 00 00 00 00 CB [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 17 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 17 00 3D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [13:58: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:58:37]wFMCommunicate OK [13:58:37]requested_item fd.num is exist - process it [13:58:37]SAM_PROTO_GetFieldsCounters [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 13 00 00 [13:58:37]Write to MH i2c: E2 08 00 3E 14 80 13 00 00 00 00 00 00 CE [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 62 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 62 00 3E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 15 [13:58: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 C1 97 01 00 0E 04 04 00 64 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 [13:58:37]wFMCommunicate OK [13:58:37]SAM_PROTO_GetFieldsCounters done [13:58:37]requested_item shift.num is exist - process it [13:58:37]requested_item shift.opened is exist - process it [13:58:37]req_shift_opened [13:58:37]FM_GetShiftState [13:58:37]SAM_PROTO_GetShiftState [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 13 01 00 [13:58:37]Write to MH i2c: E2 08 00 3F 14 80 13 01 00 00 00 00 00 D0 [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0E 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0E 00 3F 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C2 [13:58:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [13:58:37]wFMCommunicate OK [13:58:37]SAM_PROTO_GetShiftState done [13:58:37]FM_GetShiftState done [13:58:37]req_shift_opened done [13:58:37]requested_item shift.open_date is exist - process it [13:58:37]req_shift_open_date [13:58:37]req_shift_open_date done [13:58:37]produce_requested_data done [13:58:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104385,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [13:58:37]process_action_free close_receipt [13:58:37]json_value_free [13:58:37]json_value_free done [13:58:37]process_json_proto returns [13:58:37]Send response to host [13:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104385,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [13:58:37]free response buf [13:58:37]execute_script done [13:58:37]execute_script returns [13:58:37]free content buf [13:58:37]Sock 7.Close socket [13:58:37]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]accept exits with 9 [14:00:11]New connection [14:00:11]New thread 3066592612 created [14:00:11]Thread 3066449252 joined [14:00:11]Waiting for new connection... [14:00:11] Sock 9.Parse request [14:00:11]Sock 9.Check first char [14:00:11]Sock 9.First char is OK [14:00:11]request: POST /json_proto HTTP/1.0 [14:00:11]Method: POST [14:00:11]URL: /json_proto [14:00:11]Method is POST - this is cgi request [14:00:11]url: /json_proto [14:00:11]query_string will be loaded in cgi processing [14:00:11]execute_cgi json_proto POST (null) [14:00:11]execute_cgi path=json_proto method=POST [14:00:11]POST find Content-Length [14:00:11]Host: 172.17.38.133:8080 [14:00:11]Content-Length: 1202 [14:00:11]Content-Type: application/json [14:00:11] [14:00:11]POST finish read [14:00:11]Found Content-Length = 1202 [14:00: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673932\u000A22.06.2024 13:37\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462854\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:11]execute_script... [14:00: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673932\u000A22.06.2024 13:37\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3462854\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:11]POST & json_proto [14:00:11]process_json_proto [14:00:11]json parsed OK: [14:00:11]protocol is kg_v1.0 [14:00:11]action value=print_text [14:00:11]process_action print_text [14:00:11]cmd_print_text [14:00:11]ExternCall_PrintAddStr [14:00:11]wPrintStart [14:00:11]Write to MH i2c: 01 00 00 40 14 54 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 40 14 00 00 00 00 00 FF 0F 69 [14:00:11]RasterBufferAndPrint [14:00:11]line *****ТОВАРНЫЙ ЧЕК***** [14:00:11]line АЗС 120 [14:00:11]line Партнер нефть [14:00:11]line 02508201610067 [14:00:11]line Кассир : Байбугуева Г. [14:00:11]line Счет N : (1)673932 [14:00:11]line 22.06.2024 13:37 [14:00:11]line ПРОДАЖА [14:00:11]line ТРК (МРК, ГНК): 21 [14:00:11]line Вид ГСМ : 2710194210 [14:00:11]line ДТ(л)-К-5 [14:00:11]line 50.000 x 72.90 [14:00:11]line ИТОГ: 3645.00 [14:00:11]line Тип оплаты: Талоны: Партнер нефть [14:00:11]line 3462854 [14:00:11]line ______________________ [14:00:11]line (подпись) [14:00:11]written 0, free lines is 4095 [14:00:11]Write to MH i2c: 01 00 00 54 14 68 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 13 0E 90 [14:00:11]RasterBufferAndPrint [14:00:11]line [14:00:11]line [14:00:11]line [14:00:11]line [14:00:11]line [14:00:11]written 0, free lines is 3605 [14:00:11]MH_Cut [14:00:11]Write to MH i2c: D1 01 00 5B 14 01 41 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: D1 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: D1 01 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: D1 01 00 5B 14 00 40 [14:00:11]Write to MH i2c: 01 00 00 5C 14 70 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]OFD Sender: No OFD packet to send [14:00:11]*** Cut start [14:00:11]*** Partial cut [14:00:11]*** CUTSNS_PIN = 1 [14:00:11]*** CUTSNS_PIN = 0 [14:00:12]*** Brake cut motor [14:00:12]Read from MH i2c: 01 [14:00:12]MH_I2C_Read... [14:00:12]*** Stop cut motor [14:00:12]*** Cut end [14:00:12]Read from MH i2c: 01 07 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [14:00:12]process_action print_text done [14:00:12]requested_data is exist [14:00:12]produce_requested_data [14:00:12]requested_item fm.sn is exist - process it [14:00:12]wFMCommunicate request_size=4 [14:00:12]MH_SAM_APDU [14:00:12]CAPDU: 80 11 00 00 [14:00:12]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:12]Read from MH i2c: E2 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 17 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [14: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 [14:00:12]wFMCommunicate OK [14:00:12]requested_item fd.num is exist - process it [14:00:12]SAM_PROTO_GetFieldsCounters [14:00:12]wFMCommunicate request_size=4 [14:00:12]MH_SAM_APDU [14:00:12]CAPDU: 80 13 00 00 [14:00:12]Write to MH i2c: E2 08 00 5E 14 80 13 00 00 00 00 00 00 EE [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:12]Read from MH i2c: E2 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 62 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 62 00 5E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 35 [14:00: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 C1 97 01 00 0E 04 04 00 64 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:00:12]wFMCommunicate OK [14:00:12]SAM_PROTO_GetFieldsCounters done [14:00:12]requested_item shift.num is exist - process it [14:00:12]requested_item shift.opened is exist - process it [14:00:12]req_shift_opened [14:00:12]FM_GetShiftState [14:00:12]SAM_PROTO_GetShiftState [14:00:12]wFMCommunicate request_size=4 [14:00:12]MH_SAM_APDU [14:00:12]CAPDU: 80 13 01 00 [14:00:12]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:12]Read from MH i2c: E2 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 0E 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E2 [14:00:12]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:00:12]wFMCommunicate OK [14:00:12]SAM_PROTO_GetShiftState done [14:00:12]FM_GetShiftState done [14:00:12]req_shift_opened done [14:00:12]requested_item shift.open_date is exist - process it [14:00:12]req_shift_open_date [14:00:12]req_shift_open_date done [14:00:12]produce_requested_data done [14:00:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104385,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:00:12]process_action_free print_text [14:00:12]json_value_free [14:00:12]json_value_free done [14:00:12]process_json_proto returns [14:00:12]Send response to host [14:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104385,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:00:12]free response buf [14:00:12]execute_script done [14:00:12]execute_script returns [14:00:12]free content buf [14:00:12]Sock 9.Close socket [14:00:12]Sock 9.Thread stoped [14:00:16]OFD Sender: No OFD packet to send [14:00:17]accept exits with 7 [14:00:17]New connection [14:00:17]New thread 3066449252 created [14:00:17]Thread 3066592612 joined [14:00:17]Waiting for new connection... [14:00:17] Sock 7.Parse request [14:00:17]Sock 7.Check first char [14:00:17]Sock 7.First char is OK [14:00:17]request: POST /json_proto HTTP/1.0 [14:00:17]Method: POST [14:00:17]URL: /json_proto [14:00:17]Method is POST - this is cgi request [14:00:17]url: /json_proto [14:00:17]query_string will be loaded in cgi processing [14:00:17]execute_cgi json_proto POST (null) [14:00:17]execute_cgi path=json_proto method=POST [14:00:17]POST find Content-Length [14:00:17]Host: 172.17.38.133:8080 [14:00:17]Content-Length: 678 [14:00:17]Content-Type: application/json [14:00:17] [14:00:17]POST finish read [14:00:17]Found Content-Length = 678 [14:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673933", "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" ] } } [14:00:17]execute_script... [14:00: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)673933", "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" ] } } [14:00:17]POST & json_proto [14:00:17]process_json_proto [14:00:17]json parsed OK: [14:00:17]protocol is kg_v1.0 [14:00:17]action value=close_receipt [14:00:17]process_action close_receipt [14:00:17]cmd_close_receipt [14:00:17]MH_GetDate [14:00:17]Write to MH i2c: F0 00 00 60 14 63 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 09 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: F0 09 00 60 14 00 F3 D8 76 66 BD 8F 7C 64 3F [14:00:17]GetLastDocTimeStamp 1719064715 [14:00:17]current date 1719064819 [14:00:17]FM_GetShiftState [14:00:17]SAM_PROTO_GetShiftState [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 13 01 00 [14:00:17]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 0E 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E4 [14:00:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:00:17]wFMCommunicate OK [14:00:17]SAM_PROTO_GetShiftState done [14:00:17]FM_GetShiftState done [14:00:17]opened in 1719016176 [14:00:17]opened+sec_in_day 1719102576 [14:00:17]quantity*price = 80033 [14:00:17]sum+1 = 80035 [14:00:17]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 СНО: Общий режим Чек 119 22.06.2024 14:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104386 ФПД: 61493970912904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104386&fm=61493970912904&tin=02508201610067®Number=0000000000092785&sum=80000 [14:00:19]StoreToDocumentArchive [14:00:19]shift 356 fd 104386 [14:00:19]save to /storage/0356/doc_00104386 [14:00:19]save last doc name /storage/0356/doc_00104386 to /storage/kkm_last_doc_name [14:00:19]save OK [14:00:19]Clear old archive folders... [14:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:19]tlvbuf is 00FC87E0 [14:00:19]SAM_PROTO_ClearQueue [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 09 00 00 [14:00:19]Write to MH i2c: E2 08 00 6E 14 80 09 00 00 00 00 00 00 F4 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_ClearQueue done [14:00:19]KKMCreateOFDPacket [14:00:19]OFDProtocolAddRootSTLVToBuf [14:00:19]FM_MakeSignedData [14:00:19]FM_MakeSignedData [14:00:19]SAM_PROTO_SignData [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 01 02 [14:00:19]Write to MH i2c: E2 08 00 6F 14 80 0D 01 02 00 00 00 00 FC [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=255 [14:00:19]MH_SAM_APDU [14:00: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 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 77 00 00 00 F4 03 04 00 F3 D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 37 [14:00:19]Write to MH i2c: E2 02 01 70 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 77 00 00 00 F4 03 04 00 F3 D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 37 00 00 FD [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=10 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 02 02 05 ED AE 4A C6 88 [14:00:19]Write to MH i2c: E2 0D 00 71 14 80 0D 02 02 05 00 ED AE 4A C6 88 00 00 3C [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [14:00:19]RAPDU: 90 00 [14:00:19]wFMCommunicate OK [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 0D 03 02 [14:00:19]Write to MH i2c: E2 08 00 72 14 80 0D 03 02 00 00 00 00 01 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0B 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0B 00 72 14 00 60 65 B3 8D E8 A0 57 B3 90 00 99 [14:00:19]RAPDU: 60 65 B3 8D E8 A0 57 B3 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_SignData done [14:00:19]FM_MakeSignedData done [14:00:19]CreateOFDProtocolMessage [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 11 00 00 [14:00:19]Write to MH i2c: E2 08 00 73 14 80 11 00 00 00 00 00 00 01 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 73 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [14:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:19]wFMCommunicate OK [14:00:19]CreateOFDProtocolMessage done [14:00:19]OFDSenderStorePacket 104386 [14:00:19]StoreOFDPacket docnum=104386 [14:00: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 F3 A6 07 01 97 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 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 77 00 00 00 F4 03 04 00 F3 D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 37 ED AE 4A C6 88 60 65 B3 8D E8 A0 57 B3 [14:00:19]CheckFolder [14:00:19]dirname=/storage/ofd_packets [14:00:19]CheckFolder done [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00104386 [14:00:19]NVStorageSaveData ofd_packets/00104386 [14:00:19]File name is /storage/ofd_packets/00104386 [14:00:19]Write 301 bytes [14:00:19]NVStorageSaveData done [14:00:19]OFDSenderStorePacket done [14:00:19]KKMCreateOFDPacket done [14:00:19]NVStorageSaveData kkm_last_timestamp [14:00:19]File name is /storage/kkm_last_timestamp [14:00:19]Write 4 bytes [14:00:19]NVStorageSaveData done [14:00:19]ExternCall_PrintAddStr [14:00:19]wPrintStart [14:00:19]Write to MH i2c: 01 00 00 74 14 88 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 FF 0F 9D [14:00:19]RasterBufferAndPrint [14:00:19]line Счет N : (1)673933 [14:00:19]line ИНН: 02508201610067 [14:00:19]line Контрольно-Кассовый Чек [14:00:19]line ПРОДАЖА [14:00:19]line ТРК (МРК, ГНК) : 31 [14:00:19]line Товар: 2710124500 [14:00:19]line Аи-95-К-5 [14:00:19]line 10.830 * 73.90 [14:00:19]line = 800.34 [14:00:19]line НДС 12% НСП 1% [14:00:19]line > о реализуемом товаре [14:00:19]line ОКРУГЛЕНИЕ: -0.34 [14:00:19]line ИТОГО: 800.00 [14:00:19]line Внесено: 800.00 [14:00:19]line СДАЧА: 0.00 [14:00:19]line НСП 1% : 7.08 [14:00:19]line НДС 12% : 84.99 [14:00:19]line Наличными: 800.00 [14:00:19]line Безнал.: 0.00 [14:00:19]line Место: АЗС № 120 "Партнер Нефть" [14:00:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:00:19]line СНО: Общий режим [14:00:19]line Чек 119 22.06.2024 14:00 [14:00:19]line Смена: 356 ФФД: 1.0 [14:00:19]line ЗНМ: 0300000164 [14:00:19]line РНМ: 0000000000092785 [14:00:19]line Версия ККМ: 001 [14:00:19]line ФМ: 0000000000875093 [14:00:19]line ФД: 104386 [14:00:19]line ФПД: 61493970912904 [14:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104386&fm=61493970912904&tin=02508201610067®Number=0000000000092785&sum=80000 [14:00:19]OFD Sender: Processing packet 104386 [packets to send 17, broken 16] [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00104386 [14:00:19]OFD Sender: To server: pG, [14:00:19]CommunicateWithHost lk.salyk.kg:30040 [14:00:19]ConnectInit lk.salyk.kg [14:00:19]written 0, free lines is 4095 [14:00:20]Connected sock=10 [14:00: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 F3 A6 07 01 97 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 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 77 00 00 00 F4 03 04 00 F3 D8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 37 ED AE 4A C6 88 60 65 B3 8D E8 A0 57 B3 [14:00: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 EC F7 47 00 9D 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 C2 97 01 00 F4 03 04 00 72 7F 76 66 B6 04 01 00 00 F6 C6 29 04 0F AD 83 30 [14:00:20]CommunicateWithHost err = 0 [14:00:20]CheckOFDResponse [14:00:20]1017 (14) - 77093643461234 [14:00:20]1041 (16) - 0000000000875093 [14:00:20]1040 (4) - 104386 [14:00:20]1012 (4) - 22.06.2024 07:38 [14:00:20]1206 (1) - 0 [14:00:20]OFD Sender: Remove packet 104386 [14:00:20]ProducePacketName [14:00:20]name=ofd_packets/00104386 [14:00:20]NVStorageDeleteData [14:00:20]Write to MH i2c: 01 00 00 9F 14 B3 [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 07 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 D0 0C 96 [14:00:20]RasterBufferAndPrint [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]line [14:00:20]written 0, free lines is 3287 [14:00:20]MH_Cut [14:00:20]Write to MH i2c: D1 01 00 A6 14 01 8C [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 01 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: D1 01 00 A6 14 00 8B [14:00:20]Write to MH i2c: 01 00 00 A7 14 BB [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]OFD Sender: No OFD packet to send [14:00:21]*** Cut start [14:00:21]*** Partial cut [14:00:21]*** CUTSNS_PIN = 1 [14:00:21]*** CUTSNS_PIN = 0 [14:00:21]*** Brake cut motor [14:00:21]Read from MH i2c: 01 [14:00:21]MH_I2C_Read... [14:00:21]*** Stop cut motor [14:00:21]*** Cut end [14:00:21]Read from MH i2c: 01 07 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: 01 07 00 A7 14 00 00 00 00 00 FF 0F D0 [14:00:21]process_action close_receipt done [14:00:21]requested_data is exist [14:00:21]produce_requested_data [14:00:21]requested_item fm.sn is exist - process it [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 11 00 00 [14:00:21]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 89 [14:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:21]wFMCommunicate OK [14:00:21]requested_item fd.num is exist - process it [14:00:21]SAM_PROTO_GetFieldsCounters [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 00 00 [14:00:21]Write to MH i2c: E2 08 00 A9 14 80 13 00 00 00 00 00 00 39 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 A9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 84 [14:00: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 C2 97 01 00 0E 04 04 00 64 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:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetFieldsCounters done [14:00:21]requested_item shift.num is exist - process it [14:00:21]requested_item shift.opened is exist - process it [14:00:21]req_shift_opened [14:00:21]FM_GetShiftState [14:00:21]SAM_PROTO_GetShiftState [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 01 00 [14:00:21]Write to MH i2c: E2 08 00 AA 14 80 13 01 00 00 00 00 00 3B [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0E 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 0E 00 AA 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2D [14:00:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_GetShiftState done [14:00:22]FM_GetShiftState done [14:00:22]req_shift_opened done [14:00:22]requested_item shift.open_date is exist - process it [14:00:22]req_shift_open_date [14:00:22]req_shift_open_date done [14:00:22]produce_requested_data done [14:00:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104386,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:00:22]process_action_free close_receipt [14:00:22]json_value_free [14:00:22]json_value_free done [14:00:22]process_json_proto returns [14:00:22]Send response to host [14:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104386,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:00:22]free response buf [14:00:22]execute_script done [14:00:22]execute_script returns [14:00:22]free content buf [14:00:22]Sock 7.Close socket [14:00:22]Sock 7.Thread stoped [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:18]accept exits with 9 [14:01:18]New connection [14:01:18]New thread 3066592612 created [14:01:18]Thread 3066449252 joined [14:01:18]Waiting for new connection... [14:01:18] Sock 9.Parse request [14:01:18]Sock 9.Check first char [14:01:18]Sock 9.First char is OK [14:01:18]request: POST /json_proto HTTP/1.0 [14:01:18]Method: POST [14:01:18]URL: /json_proto [14:01:18]Method is POST - this is cgi request [14:01:18]url: /json_proto [14:01:18]query_string will be loaded in cgi processing [14:01:18]execute_cgi json_proto POST (null) [14:01:18]execute_cgi path=json_proto method=POST [14:01:18]POST find Content-Length [14:01:18]Host: 172.17.38.133:8080 [14:01:18]Content-Length: 1169 [14:01:18]Content-Type: application/json [14:01:18] [14:01:18]POST finish read [14:01:18]Found Content-Length = 1169 [14:01:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673934\u000A22.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 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\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:18]execute_script... [14:01:18]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673934\u000A22.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 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\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:18]POST & json_proto [14:01:18]process_json_proto [14:01:18]json parsed OK: [14:01:18]protocol is kg_v1.0 [14:01:18]action value=print_text [14:01:18]process_action print_text [14:01:18]cmd_print_text [14:01:18]ExternCall_PrintAddStr [14:01:18]wPrintStart [14:01:18]Write to MH i2c: 01 00 00 AB 14 BF [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 AB 14 00 00 00 00 00 FF 0F D4 [14:01:18]RasterBufferAndPrint [14:01:18]line *****ТОВАРНЫЙ ЧЕК***** [14:01:18]line АЗС 120 [14:01:18]line Партнер нефть [14:01:18]line 02508201610067 [14:01:18]line Кассир : Байбугуева Г. [14:01:18]line Счет N : (1)673934 [14:01:18]line 22.06.2024 13:38 [14:01:18]line ПРОДАЖА [14:01:18]line ТРК (МРК, ГНК): 42 [14:01:18]line Вид ГСМ : 2710124130 [14:01:18]line Аи-92-К-5 [14:01:18]line 15.070 x 66.40 [14:01:18]line ИТОГ: 1000.65 [14:01:18]line Тип оплаты: Талоны: ТК ГПНА Online [14:01:18]line 30101507 [14:01:18]line ______________________ [14:01:18]line (подпись) [14:01:18]written 0, free lines is 4095 [14:01:18]Write to MH i2c: 01 00 00 BF 14 D3 [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 10 0E F8 [14:01:18]RasterBufferAndPrint [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]line [14:01:18]written 0, free lines is 3602 [14:01:18]MH_Cut [14:01:18]Write to MH i2c: D1 01 00 C6 14 01 AC [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 01 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: D1 01 00 C6 14 00 AB [14:01:18]Write to MH i2c: 01 00 00 C7 14 DB [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]*** Cut start [14:01:18]*** Partial cut [14:01:18]*** CUTSNS_PIN = 1 [14:01:18]*** CUTSNS_PIN = 0 [14:01:19]*** Brake cut motor [14:01:19]Read from MH i2c: 01 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 [14:01:19]MH_I2C_Read... [14:01:19]*** Stop cut motor [14:01:19]*** Cut end [14:01:19]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 FF 0F F0 [14:01:19]process_action print_text done [14:01:19]requested_data is exist [14:01:19]produce_requested_data [14:01:19]requested_item fm.sn is exist - process it [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 11 00 00 [14:01:19]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [14:01:19]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:19]wFMCommunicate OK [14:01:19]requested_item fd.num is exist - process it [14:01:19]SAM_PROTO_GetFieldsCounters [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 13 00 00 [14:01:19]Write to MH i2c: E2 08 00 C9 14 80 13 00 00 00 00 00 00 59 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 62 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 62 00 C9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A4 [14:01: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 C2 97 01 00 0E 04 04 00 64 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:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_GetFieldsCounters done [14:01:19]requested_item shift.num is exist - process it [14:01:19]requested_item shift.opened is exist - process it [14:01:19]req_shift_opened [14:01:19]FM_GetShiftState [14:01:19]SAM_PROTO_GetShiftState [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 13 01 00 [14:01:19]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0E 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4D [14:01:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_GetShiftState done [14:01:19]FM_GetShiftState done [14:01:19]req_shift_opened done [14:01:19]requested_item shift.open_date is exist - process it [14:01:19]req_shift_open_date [14:01:19]req_shift_open_date done [14:01:19]produce_requested_data done [14:01:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104386,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:01:19]process_action_free print_text [14:01:19]json_value_free [14:01:19]json_value_free done [14:01:19]process_json_proto returns [14:01:19]Send response to host [14:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104386,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:01:19]free response buf [14:01:19]execute_script done [14:01:19]execute_script returns [14:01:19]free content buf [14:01:19]Sock 9.Close socket [14:01:19]Sock 9.Thread stoped [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]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:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07: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:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:44]accept exits with 7 [14:09:44]New connection [14:09:44]New thread 3066449252 created [14:09:44]Thread 3066592612 joined [14:09:44]Waiting for new connection... [14:09:44] Sock 7.Parse request [14:09:44]Sock 7.Check first char [14:09:44]Sock 7.First char is OK [14:09:44]request: POST /json_proto HTTP/1.0 [14:09:44]Method: POST [14:09:44]URL: /json_proto [14:09:44]Method is POST - this is cgi request [14:09:44]url: /json_proto [14:09:44]query_string will be loaded in cgi processing [14:09:44]execute_cgi json_proto POST (null) [14:09:44]execute_cgi path=json_proto method=POST [14:09:44]POST find Content-Length [14:09:44]Host: 172.17.38.133:8080 [14:09:44]Content-Length: 677 [14:09:44]Content-Type: application/json [14:09:44] [14:09:44]POST finish read [14:09:44]Found Content-Length = 677 [14:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673937", "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" ] } } [14:09:44]execute_script... [14:09: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)673937", "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" ] } } [14:09:44]POST & json_proto [14:09:44]process_json_proto [14:09:44]json parsed OK: [14:09:44]protocol is kg_v1.0 [14:09:44]action value=close_receipt [14:09:44]process_action close_receipt [14:09:44]cmd_close_receipt [14:09:44]MH_GetDate [14:09:44]Write to MH i2c: F0 00 00 CB 14 CE [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 09 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 09 00 CB 14 00 29 DB 76 66 BD 8F 7C 64 E3 [14:09:44]GetLastDocTimeStamp 1719064819 [14:09:44]current date 1719065385 [14:09:44]FM_GetShiftState [14:09:44]SAM_PROTO_GetShiftState [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 13 01 00 [14:09:44]Write to MH i2c: E2 08 00 CC 14 80 13 01 00 00 00 00 00 5D [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 CC 14 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4F [14:09:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_GetShiftState done [14:09:44]FM_GetShiftState done [14:09:44]opened in 1719016176 [14:09:44]opened+sec_in_day 1719102576 [14:09:44]quantity*price = 60025 [14:09:44]sum+1 = 60027 [14:09:44]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 СНО: Общий режим Чек 120 22.06.2024 14:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104387 ФПД: 50254222096384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140946&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104387&fm=50254222096384&tin=02508201610067®Number=0000000000092785&sum=60000 [14:09:45]StoreToDocumentArchive [14:09:45]shift 356 fd 104387 [14:09:45]save to /storage/0356/doc_00104387 [14:09:45]save last doc name /storage/0356/doc_00104387 to /storage/kkm_last_doc_name [14:09:45]save OK [14:09:45]Clear old archive folders... [14:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:45]tlvbuf is 00FC82F0 [14:09:45]SAM_PROTO_ClearQueue [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 09 00 00 [14:09:45]Write to MH i2c: E2 08 00 D9 14 80 09 00 00 00 00 00 00 5F [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]SAM_PROTO_ClearQueue done [14:09:45]KKMCreateOFDPacket [14:09:45]OFDProtocolAddRootSTLVToBuf [14:09:45]FM_MakeSignedData [14:09:45]FM_MakeSignedData [14:09:45]SAM_PROTO_SignData [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 01 02 [14:09:45]Write to MH i2c: E2 08 00 DA 14 80 0D 01 02 00 00 00 00 67 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]wFMCommunicate request_size=255 [14:09:45]MH_SAM_APDU [14:09: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 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 78 00 00 00 F4 03 04 00 2A DB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2D [14:09:45]Write to MH i2c: E2 02 01 DB 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 2A DB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2D 00 00 44 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]wFMCommunicate request_size=10 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 02 02 05 B4 B9 0E 78 00 [14:09:45]Write to MH i2c: E2 0D 00 DC 14 80 0D 02 02 05 00 B4 B9 0E 78 00 00 00 67 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [14:09:46]RAPDU: 90 00 [14:09:46]wFMCommunicate OK [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 0D 03 02 [14:09:46]Write to MH i2c: E2 08 00 DD 14 80 0D 03 02 00 00 00 00 6C [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0B 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0B 00 DD 14 00 0D 91 7F 95 7C E7 B3 7A 90 00 AF [14:09:46]RAPDU: 0D 91 7F 95 7C E7 B3 7A 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_SignData done [14:09:46]FM_MakeSignedData done [14:09:46]CreateOFDProtocolMessage [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 11 00 00 [14:09:46]Write to MH i2c: E2 08 00 DE 14 80 11 00 00 00 00 00 00 6C [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 DE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [14: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 [14:09:46]wFMCommunicate OK [14:09:46]CreateOFDProtocolMessage done [14:09:46]OFDSenderStorePacket 104387 [14:09:46]StoreOFDPacket docnum=104387 [14:09: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 52 FD 07 01 04 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 78 00 00 00 F4 03 04 00 2A DB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2D B4 B9 0E 78 00 0D 91 7F 95 7C E7 B3 7A [14:09:46]CheckFolder [14:09:46]dirname=/storage/ofd_packets [14:09:46]CheckFolder done [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00104387 [14:09:46]NVStorageSaveData ofd_packets/00104387 [14:09:46]File name is /storage/ofd_packets/00104387 [14:09:46]Write 301 bytes [14:09:46]NVStorageSaveData done [14:09:46]OFDSenderStorePacket done [14:09:46]KKMCreateOFDPacket done [14:09:46]NVStorageSaveData kkm_last_timestamp [14:09:46]File name is /storage/kkm_last_timestamp [14:09:46]Write 4 bytes [14:09:46]NVStorageSaveData done [14:09:46]ExternCall_PrintAddStr [14:09:46]wPrintStart [14:09:46]Write to MH i2c: 01 00 00 DF 14 F3 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 DF 14 00 00 00 00 00 FF 0F 08 [14:09:46]RasterBufferAndPrint [14:09:46]line Счет N : (1)673937 [14:09:46]line ИНН: 02508201610067 [14:09:46]line Контрольно-Кассовый Чек [14:09:46]line ПРОДАЖА [14:09:46]line ТРК (МРК, ГНК) : 32 [14:09:46]line Товар: 2710124130 [14:09:46]line Аи-92-К-5 [14:09:46]line 9.040 * 66.40 [14:09:46]line = 600.26 [14:09:46]line НДС 12% НСП 1% [14:09:46]line > о реализуемом товаре [14:09:46]line ОКРУГЛЕНИЕ: -0.26 [14:09:46]line ИТОГО: 600.00 [14:09:46]line Внесено: 600.00 [14:09:46]line СДАЧА: 0.00 [14:09:46]line НСП 1% : 5.31 [14:09:46]line НДС 12% : 63.74 [14:09:46]line Наличными: 600.00 [14:09:46]line Безнал.: 0.00 [14:09:46]line Место: АЗС № 120 "Партнер Нефть" [14:09:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:09:46]line СНО: Общий режим [14:09:46]line Чек 120 22.06.2024 14:09 [14:09:46]line Смена: 356 ФФД: 1.0 [14:09:46]line ЗНМ: 0300000164 [14:09:46]line РНМ: 0000000000092785 [14:09:46]line Версия ККМ: 001 [14:09:46]line ФМ: 0000000000875093 [14:09:46]line ФД: 104387 [14:09:46]line ФПД: 50254222096384 [14:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140946&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104387&fm=50254222096384&tin=02508201610067®Number=0000000000092785&sum=60000 [14:09:46]OFD Sender: Processing packet 104387 [packets to send 17, broken 16] [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00104387 [14:09:46]OFD Sender: To server: pG, [14:09:46]CommunicateWithHost lk.salyk.kg:30040 [14:09:46]ConnectInit lk.salyk.kg [14:09:46]written 0, free lines is 4095 [14:09:46]Connected sock=11 [14:09: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 52 FD 07 01 04 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 78 00 00 00 F4 03 04 00 2A DB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2D B4 B9 0E 78 00 0D 91 7F 95 7C E7 B3 7A [14:09: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 3D 0D 47 00 5D 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 C3 97 01 00 F4 03 04 00 A9 81 76 66 B6 04 01 00 00 EA CE 8A 57 7D 0B 39 8C [14:09:46]CommunicateWithHost err = 0 [14:09:46]CheckOFDResponse [14:09:46]1017 (14) - 77093643461234 [14:09:46]1041 (16) - 0000000000875093 [14:09:46]1040 (4) - 104387 [14:09:46]1012 (4) - 22.06.2024 07:47 [14:09:46]1206 (1) - 0 [14:09:46]OFD Sender: Remove packet 104387 [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00104387 [14:09:46]NVStorageDeleteData [14:09:46]Write to MH i2c: 01 00 00 0A 15 1F [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 CD 0C FF [14:09:46]RasterBufferAndPrint [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]written 0, free lines is 3280 [14:09:46]MH_Cut [14:09:46]Write to MH i2c: D1 01 00 11 15 01 F8 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: D1 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: D1 01 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: D1 01 00 11 15 00 F7 [14:09:46]Write to MH i2c: 01 00 00 12 15 27 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:47]OFD Sender: No OFD packet to send [14:09:47]*** Cut start [14:09:47]*** Partial cut [14:09:47]*** CUTSNS_PIN = 1 [14:09:47]*** CUTSNS_PIN = 0 [14:09:47]*** Brake cut motor [14:09:48]Read from MH i2c: 01 [14:09:48]MH_I2C_Read... [14:09:48]*** Stop cut motor [14:09:48]*** Cut end [14:09:48]Read from MH i2c: 01 07 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 12 15 00 00 00 00 00 FF 0F 3C [14:09:48]process_action close_receipt done [14:09:48]requested_data is exist [14:09:48]produce_requested_data [14:09:48]requested_item fm.sn is exist - process it [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 11 00 00 [14:09:48]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [14:09: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:09:48]wFMCommunicate OK [14:09:48]requested_item fd.num is exist - process it [14:09:48]SAM_PROTO_GetFieldsCounters [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 13 00 00 [14:09:48]Write to MH i2c: E2 08 00 14 15 80 13 00 00 00 00 00 00 A5 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 62 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 62 00 14 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F4 [14:09: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 C3 97 01 00 0E 04 04 00 64 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:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_GetFieldsCounters done [14:09:48]requested_item shift.num is exist - process it [14:09:48]requested_item shift.opened is exist - process it [14:09:48]req_shift_opened [14:09:48]FM_GetShiftState [14:09:48]SAM_PROTO_GetShiftState [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 13 01 00 [14:09:48]Write to MH i2c: E2 08 00 15 15 80 13 01 00 00 00 00 00 A7 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0E 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0E 00 15 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 99 [14:09:48]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_GetShiftState done [14:09:48]FM_GetShiftState done [14:09:48]req_shift_opened done [14:09:48]requested_item shift.open_date is exist - process it [14:09:48]req_shift_open_date [14:09:48]req_shift_open_date done [14:09:48]produce_requested_data done [14:09:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104387,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:09:48]process_action_free close_receipt [14:09:48]json_value_free [14:09:48]json_value_free done [14:09:48]process_json_proto returns [14:09:48]Send response to host [14:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104387,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:09:48]free response buf [14:09:48]execute_script done [14:09:48]execute_script returns [14:09:48]free content buf [14:09:48]Sock 7.Close socket [14:09:48]Sock 7.Thread stoped [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:04]accept exits with 9 [14:14:04]New connection [14:14:04]New thread 3066592612 created [14:14:04]Thread 3066449252 joined [14:14:04]Waiting for new connection... [14:14:04] Sock 9.Parse request [14:14:04]Sock 9.Check first char [14:14:04]Sock 9.First char is OK [14:14:04]request: POST /json_proto HTTP/1.0 [14:14:04]Method: POST [14:14:04]URL: /json_proto [14:14:04]Method is POST - this is cgi request [14:14:04]url: /json_proto [14:14:04]query_string will be loaded in cgi processing [14:14:04]execute_cgi json_proto POST (null) [14:14:04]execute_cgi path=json_proto method=POST [14:14:04]POST find Content-Length [14:14:04]Host: 172.17.38.133:8080 [14:14:04]Content-Length: 811 [14:14:04]Content-Type: application/json [14:14:04] [14:14:04]POST finish read [14:14:04]Found Content-Length = 811 [14:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673936", "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" ] } } [14:14:04]execute_script... [14:14: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)673936", "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" ] } } [14:14:04]POST & json_proto [14:14:04]process_json_proto [14:14:04]json parsed OK: [14:14:04]protocol is kg_v1.0 [14:14:04]action value=close_receipt [14:14:04]process_action close_receipt [14:14:04]cmd_close_receipt [14:14:04]MH_GetDate [14:14:04]Write to MH i2c: F0 00 00 16 15 1A [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: F0 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: F0 09 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: F0 09 00 16 15 00 2E DC 76 66 BD 8F 7C 64 35 [14:14:04]GetLastDocTimeStamp 1719065386 [14:14:04]current date 1719065646 [14:14:04]FM_GetShiftState [14:14:04]SAM_PROTO_GetShiftState [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 13 01 00 [14:14:04]Write to MH i2c: E2 08 00 17 15 80 13 01 00 00 00 00 00 A9 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 17 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9B [14:14:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_GetShiftState done [14:14:04]FM_GetShiftState done [14:14:04]opened in 1719016176 [14:14:04]opened+sec_in_day 1719102576 [14:14:04]quantity*price = 1000042 [14:14:04]sum+1 = 1000043 [14:14: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 СНО: Общий режим Чек 121 22.06.2024 14:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104388 ФПД: 78549536281104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141406&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104388&fm=78549536281104&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:14:05]StoreToDocumentArchive [14:14:05]shift 356 fd 104388 [14:14:05]save to /storage/0356/doc_00104388 [14:14:05]save last doc name /storage/0356/doc_00104388 to /storage/kkm_last_doc_name [14:14:05]save OK [14:14:05]Clear old archive folders... [14:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:14:05]tlvbuf is 00FDCF00 [14:14:05]SAM_PROTO_ClearQueue [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 09 00 00 [14:14:05]Write to MH i2c: E2 08 00 24 15 80 09 00 00 00 00 00 00 AB [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]SAM_PROTO_ClearQueue done [14:14:05]KKMCreateOFDPacket [14:14:05]OFDProtocolAddRootSTLVToBuf [14:14:05]FM_MakeSignedData [14:14:05]FM_MakeSignedData [14:14:05]SAM_PROTO_SignData [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 0D 01 02 [14:14:05]Write to MH i2c: E2 08 00 25 15 80 0D 01 02 00 00 00 00 B3 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]wFMCommunicate request_size=255 [14:14:05]MH_SAM_APDU [14:14: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 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 79 00 00 00 F4 03 04 00 2E DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:14:05]Write to MH i2c: E2 02 01 26 15 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 79 00 00 00 F4 03 04 00 2E DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 04 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:06]Read from MH i2c: E2 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 03 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [14:14:06]RAPDU: 90 00 [14:14:06]wFMCommunicate OK [14:14:06]wFMCommunicate request_size=11 [14:14:06]MH_SAM_APDU [14:14:06]CAPDU: 80 0D 02 02 06 47 70 BD 35 12 10 [14:14:06]Write to MH i2c: E2 0E 00 27 15 80 0D 02 02 06 00 47 70 BD 35 12 10 00 00 8D [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:06]Read from MH i2c: E2 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 03 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [14:14:06]RAPDU: 90 00 [14:14:06]wFMCommunicate OK [14:14:06]wFMCommunicate request_size=4 [14:14:06]MH_SAM_APDU [14:14:06]CAPDU: 80 0D 03 02 [14:14:06]Write to MH i2c: E2 08 00 28 15 80 0D 03 02 00 00 00 00 B8 [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:06]Read from MH i2c: E2 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 0B 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 0B 00 28 15 00 89 00 FF D6 02 CB A3 F9 90 00 80 [14:14:06]RAPDU: 89 00 FF D6 02 CB A3 F9 90 00 [14:14:06]wFMCommunicate OK [14:14:06]SAM_PROTO_SignData done [14:14:06]FM_MakeSignedData done [14:14:06]CreateOFDProtocolMessage [14:14:06]wFMCommunicate request_size=4 [14:14:06]MH_SAM_APDU [14:14:06]CAPDU: 80 11 00 00 [14:14:06]Write to MH i2c: E2 08 00 29 15 80 11 00 00 00 00 00 00 B8 [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:06]Read from MH i2c: E2 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 17 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: E2 17 00 29 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [14:14: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:14:06]wFMCommunicate OK [14:14:06]CreateOFDProtocolMessage done [14:14:06]OFDSenderStorePacket 104388 [14:14:06]StoreOFDPacket docnum=104388 [14:14: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 92 5A 08 01 2B B3 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 79 00 00 00 F4 03 04 00 2E DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 70 BD 35 12 10 89 00 FF D6 02 CB A3 F9 [14:14:06]CheckFolder [14:14:06]dirname=/storage/ofd_packets [14:14:06]CheckFolder done [14:14:06]ProducePacketName [14:14:06]name=ofd_packets/00104388 [14:14:06]NVStorageSaveData ofd_packets/00104388 [14:14:06]File name is /storage/ofd_packets/00104388 [14:14:06]Write 302 bytes [14:14:06]NVStorageSaveData done [14:14:06]OFDSenderStorePacket done [14:14:06]KKMCreateOFDPacket done [14:14:06]NVStorageSaveData kkm_last_timestamp [14:14:06]File name is /storage/kkm_last_timestamp [14:14:06]Write 4 bytes [14:14:06]NVStorageSaveData done [14:14:06]ExternCall_PrintAddStr [14:14:06]wPrintStart [14:14:06]Write to MH i2c: 01 00 00 2A 15 3F [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 07 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 FF 0F 54 [14:14:06]RasterBufferAndPrint [14:14:06]line Счет N : (1)673936 [14:14:06]line ИНН: 02508201610067 [14:14:06]line Контрольно-Кассовый Чек [14:14:06]line ПРОДАЖА [14:14:06]line ТРК (МРК, ГНК) : 11 [14:14:06]line Товар: 2710194210 [14:14:06]line ДТ(л)-К-5 [14:14:06]line 137.180 * 72.90 [14:14:06]line = 10000.42 [14:14:06]line НДС 12% НСП 1% [14:14:06]line > о реализуемом товаре [14:14:06]line ИТОГО: 10000.42 [14:14:06]line НСП 1% : 88.50 [14:14:06]line НДС 12% : 1061.99 [14:14:06]line Наличными: 0.00 [14:14:06]line Безнал.: 10000.42 [14:14:06]line Место: АЗС № 120 "Партнер Нефть" [14:14:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:14:06]line СНО: Общий режим [14:14:06]line Чек 121 22.06.2024 14:14 [14:14:06]line Смена: 356 ФФД: 1.0 [14:14:06]line ЗНМ: 0300000164 [14:14:06]line РНМ: 0000000000092785 [14:14:06]line Версия ККМ: 001 [14:14:06]line Платежная система: O! деньги [14:14:06]line ФМ: 0000000000875093 [14:14:06]line ФД: 104388 [14:14:06]line ФПД: 78549536281104 [14:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141406&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104388&fm=78549536281104&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:14:06]OFD Sender: Processing packet 104388 [packets to send 17, broken 16] [14:14:06]ProducePacketName [14:14:06]name=ofd_packets/00104388 [14:14:06]OFD Sender: To server: pG, [14:14:06]CommunicateWithHost lk.salyk.kg:30040 [14:14:06]ConnectInit lk.salyk.kg [14:14:06]written 0, free lines is 4095 [14:14:06]Connected sock=10 [14:14: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 92 5A 08 01 2B B3 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 79 00 00 00 F4 03 04 00 2E DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 70 BD 35 12 10 89 00 FF D6 02 CB A3 F9 [14: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 B8 2D 47 00 96 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 97 01 00 F4 03 04 00 AD 82 76 66 B6 04 01 00 00 25 45 6C 6B D5 46 0D AC [14:14:07]CommunicateWithHost err = 0 [14:14:07]CheckOFDResponse [14:14:07]1017 (14) - 77093643461234 [14:14:07]1041 (16) - 0000000000875093 [14:14:07]1040 (4) - 104388 [14:14:07]1012 (4) - 22.06.2024 07:52 [14:14:07]1206 (1) - 0 [14:14:07]OFD Sender: Remove packet 104388 [14:14:07]ProducePacketName [14:14:07]name=ofd_packets/00104388 [14:14:07]NVStorageDeleteData [14:14:07]Write to MH i2c: 01 00 00 54 15 69 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: 01 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: 01 07 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 E2 0C 5E [14:14:07]RasterBufferAndPrint [14:14:07]line [14:14:07]line [14:14:07]line [14:14:07]line [14:14:07]line [14:14:07]written 0, free lines is 3304 [14:14:07]MH_Cut [14:14:07]Write to MH i2c: D1 01 00 5B 15 01 42 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: D1 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: D1 01 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: D1 01 00 5B 15 00 41 [14:14:07]Write to MH i2c: 01 00 00 5C 15 71 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]OFD Sender: No OFD packet to send [14:14:07]*** Cut start [14:14:07]*** Partial cut [14:14:07]*** CUTSNS_PIN = 1 [14:14:07]*** CUTSNS_PIN = 0 [14:14:08]*** Brake cut motor [14:14:08]Read from MH i2c: 01 [14:14:08]MH_I2C_Read... [14:14:08]*** Stop cut motor [14:14:08]*** Cut end [14:14:08]Read from MH i2c: 01 07 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: 01 07 00 5C 15 00 00 00 00 00 FF 0F 86 [14:14:08]process_action close_receipt done [14:14:08]requested_data is exist [14:14:08]produce_requested_data [14:14:08]requested_item fm.sn is exist - process it [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 11 00 00 [14:14:08]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 17 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [14: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 [14:14:08]wFMCommunicate OK [14:14:08]requested_item fd.num is exist - process it [14:14:08]SAM_PROTO_GetFieldsCounters [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 13 00 00 [14:14:08]Write to MH i2c: E2 08 00 5E 15 80 13 00 00 00 00 00 00 EF [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 62 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 62 00 5E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 42 [14:14: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 C4 97 01 00 0E 04 04 00 64 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:14:08]wFMCommunicate OK [14:14:08]SAM_PROTO_GetFieldsCounters done [14:14:08]requested_item shift.num is exist - process it [14:14:08]requested_item shift.opened is exist - process it [14:14:08]req_shift_opened [14:14:08]FM_GetShiftState [14:14:08]SAM_PROTO_GetShiftState [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 13 01 00 [14:14:08]Write to MH i2c: E2 08 00 5F 15 80 13 01 00 00 00 00 00 F1 [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 0E 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 0E 00 5F 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E3 [14:14:08]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:14:08]wFMCommunicate OK [14:14:08]SAM_PROTO_GetShiftState done [14:14:08]FM_GetShiftState done [14:14:08]req_shift_opened done [14:14:08]requested_item shift.open_date is exist - process it [14:14:08]req_shift_open_date [14:14:08]req_shift_open_date done [14:14:08]produce_requested_data done [14:14:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104388,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:14:08]process_action_free close_receipt [14:14:08]json_value_free [14:14:08]json_value_free done [14:14:08]process_json_proto returns [14:14:08]Send response to host [14:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104388,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:14:08]free response buf [14:14:08]execute_script done [14:14:08]execute_script returns [14:14:08]free content buf [14:14:08]Sock 9.Close socket [14:14:08]Sock 9.Thread stoped [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:43]accept exits with 7 [14:14:43]New connection [14:14:43]New thread 3066449252 created [14:14:43]Thread 3066592612 joined [14:14:43]Waiting for new connection... [14:14:43] Sock 7.Parse request [14:14:43]Sock 7.Check first char [14:14:43]Sock 7.First char is OK [14:14:43]request: POST /json_proto HTTP/1.0 [14:14:43]Method: POST [14:14:43]URL: /json_proto [14:14:43]Method is POST - this is cgi request [14:14:43]url: /json_proto [14:14:43]query_string will be loaded in cgi processing [14:14:43]execute_cgi json_proto POST (null) [14:14:43]execute_cgi path=json_proto method=POST [14:14:43]POST find Content-Length [14:14:43]Host: 172.17.38.133:8080 [14:14:43]Content-Length: 692 [14:14:43]Content-Type: application/json [14:14:43] [14:14:43]POST finish read [14:14:43]Found Content-Length = 692 [14:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673935", "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" : 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" ] } } [14:14:43]execute_script... [14:14: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)673935", "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" : 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" ] } } [14:14:43]POST & json_proto [14:14:43]process_json_proto [14:14:43]json parsed OK: [14:14:43]protocol is kg_v1.0 [14:14:43]action value=close_receipt [14:14:43]process_action close_receipt [14:14:43]cmd_close_receipt [14:14:43]MH_GetDate [14:14:43]Write to MH i2c: F0 00 00 60 15 64 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: F0 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: F0 09 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: F0 09 00 60 15 00 55 DC 76 66 BD 8F 7C 64 A6 [14:14:43]GetLastDocTimeStamp 1719065646 [14:14:43]current date 1719065685 [14:14:43]FM_GetShiftState [14:14:43]SAM_PROTO_GetShiftState [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 13 01 00 [14:14:43]Write to MH i2c: E2 08 00 61 15 80 13 01 00 00 00 00 00 F3 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0E 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0E 00 61 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E5 [14:14:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:14:43]wFMCommunicate OK [14:14:43]SAM_PROTO_GetShiftState done [14:14:43]FM_GetShiftState done [14:14:43]opened in 1719016176 [14:14:43]opened+sec_in_day 1719102576 [14:14:43]quantity*price = 1000042 [14:14:43]sum+1 = 1000043 [14:14:43]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 СНО: Общий режим Чек 122 22.06.2024 14:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104389 ФПД: 215619666378048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141445&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104389&fm=215619666378048&tin=02508201610067®Number=0000000000092785&sum=1000000 [14:14:45]StoreToDocumentArchive [14:14:45]shift 356 fd 104389 [14:14:45]save to /storage/0356/doc_00104389 [14:14:45]save last doc name /storage/0356/doc_00104389 to /storage/kkm_last_doc_name [14:14:45]save OK [14:14:45]Clear old archive folders... [14:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:14:45]tlvbuf is 00FF3BF0 [14:14:45]SAM_PROTO_ClearQueue [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 09 00 00 [14:14:45]Write to MH i2c: E2 08 00 6E 15 80 09 00 00 00 00 00 00 F5 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [14:14:45]RAPDU: 90 00 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_ClearQueue done [14:14:45]KKMCreateOFDPacket [14:14:45]OFDProtocolAddRootSTLVToBuf [14:14:45]FM_MakeSignedData [14:14:45]FM_MakeSignedData [14:14:45]SAM_PROTO_SignData [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 0D 01 02 [14:14:45]Write to MH i2c: E2 08 00 6F 15 80 0D 01 02 00 00 00 00 FD [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [14:14:45]RAPDU: 90 00 [14:14:45]wFMCommunicate OK [14:14:45]wFMCommunicate request_size=255 [14:14:45]MH_SAM_APDU [14:14: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 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 7A 00 00 00 F4 03 04 00 55 DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:14:45]Write to MH i2c: E2 02 01 70 15 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 7A 00 00 00 F4 03 04 00 55 DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 23 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [14:14:45]RAPDU: 90 00 [14:14:45]wFMCommunicate OK [14:14:45]wFMCommunicate request_size=11 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 0D 02 02 06 C4 1A DD 9E FD 40 [14:14:45]Write to MH i2c: E2 0E 00 71 15 80 0D 02 02 06 00 C4 1A DD 9E FD 40 00 00 A2 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [14:14:45]RAPDU: 90 00 [14:14:45]wFMCommunicate OK [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 0D 03 02 [14:14:45]Write to MH i2c: E2 08 00 72 15 80 0D 03 02 00 00 00 00 02 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0B 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0B 00 72 15 00 AF 36 5C 83 D4 3E C6 95 90 00 34 [14:14:45]RAPDU: AF 36 5C 83 D4 3E C6 95 90 00 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_SignData done [14:14:45]FM_MakeSignedData done [14:14:45]CreateOFDProtocolMessage [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 11 00 00 [14:14:45]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 73 15 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:14: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:14:45]wFMCommunicate OK [14:14:45]CreateOFDProtocolMessage done [14:14:45]OFDSenderStorePacket 104389 [14:14:45]StoreOFDPacket docnum=104389 [14:14: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 DC 7B 08 01 43 EE 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 7A 00 00 00 F4 03 04 00 55 DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 1A DD 9E FD 40 AF 36 5C 83 D4 3E C6 95 [14:14:45]CheckFolder [14:14:45]dirname=/storage/ofd_packets [14:14:45]CheckFolder done [14:14:45]ProducePacketName [14:14:45]name=ofd_packets/00104389 [14:14:45]NVStorageSaveData ofd_packets/00104389 [14:14:45]File name is /storage/ofd_packets/00104389 [14:14:45]Write 302 bytes [14:14:45]NVStorageSaveData done [14:14:45]OFDSenderStorePacket done [14:14:45]KKMCreateOFDPacket done [14:14:45]NVStorageSaveData kkm_last_timestamp [14:14:45]File name is /storage/kkm_last_timestamp [14:14:45]Write 4 bytes [14:14:45]NVStorageSaveData done [14:14:45]ExternCall_PrintAddStr [14:14:45]wPrintStart [14:14:45]Write to MH i2c: 01 00 00 74 15 89 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: 01 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: 01 07 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: 01 07 00 74 15 00 00 00 00 00 FF 0F 9E [14:14:45]RasterBufferAndPrint [14:14:45]line Счет N : (1)673935 [14:14:45]line ИНН: 02508201610067 [14:14:45]line Контрольно-Кассовый Чек [14:14:45]line ПРОДАЖА [14:14:45]line ТРК (МРК, ГНК) : 21 [14:14:45]line Товар: 2710194210 [14:14:45]line ДТ(л)-К-5 [14:14:45]line 137.180 * 72.90 [14:14:45]line = 10000.42 [14:14:45]line НДС 12% НСП 1% [14:14:45]line > о реализуемом товаре [14:14:45]line ОКРУГЛЕНИЕ: -0.42 [14:14:45]line ИТОГО: 10000.00 [14:14:45]line Внесено: 10000.00 [14:14:45]line СДАЧА: 0.00 [14:14:45]line НСП 1% : 88.50 [14:14:45]line НДС 12% : 1061.99 [14:14:45]line Наличными: 10000.00 [14:14:45]line Безнал.: 0.00 [14:14:45]line Место: АЗС № 120 "Партнер Нефть" [14:14:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:14:45]line СНО: Общий режим [14:14:45]line Чек 122 22.06.2024 14:14 [14:14:45]line Смена: 356 ФФД: 1.0 [14:14:45]line ЗНМ: 0300000164 [14:14:45]line РНМ: 0000000000092785 [14:14:45]line Версия ККМ: 001 [14:14:45]line ФМ: 0000000000875093 [14:14:45]line ФД: 104389 [14:14:45]line ФПД: 215619666378048 [14:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141445&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104389&fm=215619666378048&tin=02508201610067®Number=0000000000092785&sum=1000000 [14:14:45]OFD Sender: Processing packet 104389 [packets to send 17, broken 16] [14:14:45]ProducePacketName [14:14:45]name=ofd_packets/00104389 [14:14:45]OFD Sender: To server: pG, [14:14:45]CommunicateWithHost lk.salyk.kg:30040 [14:14:45]ConnectInit lk.salyk.kg [14:14:45]written 0, free lines is 4095 [14:14:45]Connected sock=10 [14:14: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 DC 7B 08 01 43 EE 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 7A 00 00 00 F4 03 04 00 55 DC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 C4 1A DD 9E FD 40 AF 36 5C 83 D4 3E C6 95 [14:14: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 E8 21 47 00 6E 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 C5 97 01 00 F4 03 04 00 D4 82 76 66 B6 04 01 00 00 70 7C F0 48 83 D2 22 24 [14:14:46]CommunicateWithHost err = 0 [14:14:46]CheckOFDResponse [14:14:46]1017 (14) - 77093643461234 [14:14:46]1041 (16) - 0000000000875093 [14:14:46]1040 (4) - 104389 [14:14:46]1012 (4) - 22.06.2024 07:52 [14:14:46]1206 (1) - 0 [14:14:46]OFD Sender: Remove packet 104389 [14:14:46]ProducePacketName [14:14:46]name=ofd_packets/00104389 [14:14:46]NVStorageDeleteData [14:14:46]Write to MH i2c: 01 00 00 9F 15 B4 [14:14:46]Write i2c OK [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: 01 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: 01 07 00 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: 01 07 00 9F 15 00 00 00 00 00 DE 0C A5 [14:14:46]RasterBufferAndPrint [14:14:46]line [14:14:46]line [14:14:46]line [14:14:46]line [14:14:46]line [14:14:46]written 0, free lines is 3301 [14:14:46]MH_Cut [14:14:46]Write to MH i2c: D1 01 00 A6 15 01 8D [14:14:46]Write i2c OK [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: D1 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: D1 01 00 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: D1 01 00 A6 15 00 8C [14:14:46]Write to MH i2c: 01 00 00 A7 15 BC [14:14:46]Write i2c OK [14:14:46]MH_I2C_Read... [14:14:46]OFD Sender: No OFD packet to send [14:14:47]*** Cut start [14:14:47]*** Partial cut [14:14:47]*** CUTSNS_PIN = 1 [14:14:47]*** CUTSNS_PIN = 0 [14:14:47]*** Brake cut motor [14:14:47]Read from MH i2c: 01 [14:14:47]MH_I2C_Read... [14:14:47]*** Stop cut motor [14:14:47]*** Cut end [14:14:47]Read from MH i2c: 01 07 00 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: 01 07 00 A7 15 00 00 00 00 00 FF 0F D1 [14:14:47]process_action close_receipt done [14:14:47]requested_data is exist [14:14:47]produce_requested_data [14:14:47]requested_item fm.sn is exist - process it [14:14:47]wFMCommunicate request_size=4 [14:14:47]MH_SAM_APDU [14:14:47]CAPDU: 80 11 00 00 [14:14:47]Write to MH i2c: E2 08 00 A8 15 80 11 00 00 00 00 00 00 37 [14:14:47]Write i2c OK [14:14:47]MH_I2C_Read... [14:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:47]Read from MH i2c: E2 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 17 00 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 17 00 A8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [14:14: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:14:47]wFMCommunicate OK [14:14:47]requested_item fd.num is exist - process it [14:14:47]SAM_PROTO_GetFieldsCounters [14:14:47]wFMCommunicate request_size=4 [14:14:47]MH_SAM_APDU [14:14:47]CAPDU: 80 13 00 00 [14:14:47]Write to MH i2c: E2 08 00 A9 15 80 13 00 00 00 00 00 00 3A [14:14:47]Write i2c OK [14:14:47]MH_I2C_Read... [14:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:47]Read from MH i2c: E2 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 62 00 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 62 00 A9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 91 [14:14: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 C5 97 01 00 0E 04 04 00 64 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:14:47]wFMCommunicate OK [14:14:47]SAM_PROTO_GetFieldsCounters done [14:14:47]requested_item shift.num is exist - process it [14:14:47]requested_item shift.opened is exist - process it [14:14:47]req_shift_opened [14:14:47]FM_GetShiftState [14:14:47]SAM_PROTO_GetShiftState [14:14:47]wFMCommunicate request_size=4 [14:14:47]MH_SAM_APDU [14:14:47]CAPDU: 80 13 01 00 [14:14:47]Write to MH i2c: E2 08 00 AA 15 80 13 01 00 00 00 00 00 3C [14:14:47]Write i2c OK [14:14:47]MH_I2C_Read... [14:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:47]Read from MH i2c: E2 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 0E 00 [14:14:47]MH_I2C_Read... [14:14:47]Read from MH i2c: E2 0E 00 AA 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2E [14:14:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:14:47]wFMCommunicate OK [14:14:47]SAM_PROTO_GetShiftState done [14:14:47]FM_GetShiftState done [14:14:47]req_shift_opened done [14:14:47]requested_item shift.open_date is exist - process it [14:14:47]req_shift_open_date [14:14:47]req_shift_open_date done [14:14:47]produce_requested_data done [14:14:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104389,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:14:47]process_action_free close_receipt [14:14:47]json_value_free [14:14:47]json_value_free done [14:14:47]process_json_proto returns [14:14:47]Send response to host [14:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104389,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:14:47]free response buf [14:14:47]execute_script done [14:14:47]execute_script returns [14:14:47]free content buf [14:14:47]Sock 7.Close socket [14:14:47]Sock 7.Thread stoped [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:49]accept exits with 9 [14:18:49]New connection [14:18:49]New thread 3066592612 created [14:18:49]Thread 3066449252 joined [14:18:49]Waiting for new connection... [14:18:49] Sock 9.Parse request [14:18:49]Sock 9.Check first char [14:18:49]Sock 9.First char is OK [14:18:49]request: POST /json_proto HTTP/1.0 [14:18:49]Method: POST [14:18:49]URL: /json_proto [14:18:49]Method is POST - this is cgi request [14:18:49]url: /json_proto [14:18:49]query_string will be loaded in cgi processing [14:18:49]execute_cgi json_proto POST (null) [14:18:49]execute_cgi path=json_proto method=POST [14:18:49]POST find Content-Length [14:18:49]Host: 172.17.38.133:8080 [14:18:49]Content-Length: 677 [14:18:49]Content-Type: application/json [14:18:49] [14:18:49]POST finish read [14:18:49]Found Content-Length = 677 [14:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673940", "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.180, "sum" : 343.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 343.00, "payments": [ { "type": 0, "sum" : 343.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:49]execute_script... [14:18: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)673940", "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.180, "sum" : 343.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 343.00, "payments": [ { "type": 0, "sum" : 343.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:49]POST & json_proto [14:18:49]process_json_proto [14:18:49]json parsed OK: [14:18:49]protocol is kg_v1.0 [14:18:49]action value=close_receipt [14:18:49]process_action close_receipt [14:18:49]cmd_close_receipt [14:18:49]MH_GetDate [14:18:49]Write to MH i2c: F0 00 00 AB 15 AF [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: F0 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: F0 09 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: F0 09 00 AB 15 00 4B DD 76 66 BD 8F 7C 64 E8 [14:18:49]GetLastDocTimeStamp 1719065685 [14:18:49]current date 1719065931 [14:18:49]FM_GetShiftState [14:18:49]SAM_PROTO_GetShiftState [14:18:49]wFMCommunicate request_size=4 [14:18:49]MH_SAM_APDU [14:18:49]CAPDU: 80 13 01 00 [14:18:49]Write to MH i2c: E2 08 00 AC 15 80 13 01 00 00 00 00 00 3E [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:49]Read from MH i2c: E2 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 0E 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 0E 00 AC 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 30 [14:18:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:18:49]wFMCommunicate OK [14:18:49]SAM_PROTO_GetShiftState done [14:18:49]FM_GetShiftState done [14:18:49]opened in 1719016176 [14:18:49]opened+sec_in_day 1719102576 [14:18:49]quantity*price = 34395 [14:18:49]sum+1 = 34396 [14:18:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 343.00 Внесено: 350.00 СДАЧА: 7.00 НСП 1% : 3.04 НДС 12% : 36.53 Наличными: 343.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 123 22.06.2024 14:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104390 ФПД: 78947519276010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141851&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104390&fm=78947519276010&tin=02508201610067®Number=0000000000092785&sum=34300 [14:18:50]StoreToDocumentArchive [14:18:50]shift 356 fd 104390 [14:18:50]save to /storage/0356/doc_00104390 [14:18:50]save last doc name /storage/0356/doc_00104390 to /storage/kkm_last_doc_name [14:18:50]save OK [14:18:50]Clear old archive folders... [14:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:50]tlvbuf is 00FB70C0 [14:18:50]SAM_PROTO_ClearQueue [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 09 00 00 [14:18:50]Write to MH i2c: E2 08 00 B9 15 80 09 00 00 00 00 00 00 40 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [14:18:50]RAPDU: 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_ClearQueue done [14:18:50]KKMCreateOFDPacket [14:18:50]OFDProtocolAddRootSTLVToBuf [14:18:50]FM_MakeSignedData [14:18:50]FM_MakeSignedData [14:18:50]SAM_PROTO_SignData [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 0D 01 02 [14:18:50]Write to MH i2c: E2 08 00 BA 15 80 0D 01 02 00 00 00 00 48 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=255 [14:18:51]MH_SAM_APDU [14:18: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 3C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5B 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 [14:18:51]Write to MH i2c: E2 02 01 BB 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5B 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 00 00 A1 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=10 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 02 02 05 CD 66 D7 A3 EA [14:18:51]Write to MH i2c: E2 0D 00 BC 15 80 0D 02 02 05 00 CD 66 D7 A3 EA 00 00 EC [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 03 02 [14:18:51]Write to MH i2c: E2 08 00 BD 15 80 0D 03 02 00 00 00 00 4D [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 BD 15 00 A1 3F 0F 1E C5 56 83 A8 90 00 A1 [14:18:51]RAPDU: A1 3F 0F 1E C5 56 83 A8 90 00 [14:18:51]wFMCommunicate OK [14:18:51]SAM_PROTO_SignData done [14:18:51]FM_MakeSignedData done [14:18:51]CreateOFDProtocolMessage [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 11 00 00 [14:18:51]Write to MH i2c: E2 08 00 BE 15 80 11 00 00 00 00 00 00 4D [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 17 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 17 00 BE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [14:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:18:51]wFMCommunicate OK [14:18:51]CreateOFDProtocolMessage done [14:18:51]OFDSenderStorePacket 104390 [14:18:51]StoreOFDPacket docnum=104390 [14:18: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 43 80 07 01 49 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5B 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 CD 66 D7 A3 EA A1 3F 0F 1E C5 56 83 A8 [14:18:51]CheckFolder [14:18:51]dirname=/storage/ofd_packets [14:18:51]CheckFolder done [14:18:51]ProducePacketName [14:18:51]name=ofd_packets/00104390 [14:18:51]NVStorageSaveData ofd_packets/00104390 [14:18:51]File name is /storage/ofd_packets/00104390 [14:18:51]Write 301 bytes [14:18:51]NVStorageSaveData done [14:18:51]OFDSenderStorePacket done [14:18:51]KKMCreateOFDPacket done [14:18:51]NVStorageSaveData kkm_last_timestamp [14:18:51]File name is /storage/kkm_last_timestamp [14:18:51]Write 4 bytes [14:18:51]NVStorageSaveData done [14:18:51]ExternCall_PrintAddStr [14:18:51]wPrintStart [14:18:51]Write to MH i2c: 01 00 00 BF 15 D4 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 BF 15 00 00 00 00 00 FF 0F E9 [14:18:51]RasterBufferAndPrint [14:18:51]line Счет N : (1)673940 [14:18:51]line ИНН: 02508201610067 [14:18:51]line Контрольно-Кассовый Чек [14:18:51]line ПРОДАЖА [14:18:51]line ТРК (МРК, ГНК) : 32 [14:18:51]line Товар: 2710124130 [14:18:51]line Аи-92-К-5 [14:18:51]line 5.180 * 66.40 [14:18:51]line = 343.95 [14:18:51]line НДС 12% НСП 1% [14:18:51]line > о реализуемом товаре [14:18:51]line ОКРУГЛЕНИЕ: -0.95 [14:18:51]line ИТОГО: 343.00 [14:18:51]line Внесено: 350.00 [14:18:51]line СДАЧА: 7.00 [14:18:51]line НСП 1% : 3.04 [14:18:51]line НДС 12% : 36.53 [14:18:51]line Наличными: 343.00 [14:18:51]line Безнал.: 0.00 [14:18:51]line Место: АЗС № 120 "Партнер Нефть" [14:18:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:18:51]line СНО: Общий режим [14:18:51]line Чек 123 22.06.2024 14:18 [14:18:51]line Смена: 356 ФФД: 1.0 [14:18:51]line ЗНМ: 0300000164 [14:18:51]line РНМ: 0000000000092785 [14:18:51]line Версия ККМ: 001 [14:18:51]line ФМ: 0000000000875093 [14:18:51]line ФД: 104390 [14:18:51]line ФПД: 78947519276010 [14:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141851&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104390&fm=78947519276010&tin=02508201610067®Number=0000000000092785&sum=34300 [14:18:51]OFD Sender: Processing packet 104390 [packets to send 17, broken 16] [14:18:51]ProducePacketName [14:18:51]name=ofd_packets/00104390 [14:18:51]OFD Sender: To server: pG, [14:18:51]CommunicateWithHost lk.salyk.kg:30040 [14:18:51]ConnectInit lk.salyk.kg [14:18:51]written 0, free lines is 4095 [14:18:51]Connected sock=10 [14:18: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 43 80 07 01 49 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5B 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 47 CD 66 D7 A3 EA A1 3F 0F 1E C5 56 83 A8 [14:18: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 EB 5A 47 00 B5 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 C6 97 01 00 F4 03 04 00 CA 83 76 66 B6 04 01 00 00 6D 34 F5 AE 13 8B 87 82 [14:18:52]CommunicateWithHost err = 0 [14:18:52]CheckOFDResponse [14:18:52]1017 (14) - 77093643461234 [14:18:52]1041 (16) - 0000000000875093 [14:18:52]1040 (4) - 104390 [14:18:52]1012 (4) - 22.06.2024 07:56 [14:18:52]1206 (1) - 0 [14:18:52]OFD Sender: Remove packet 104390 [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00104390 [14:18:52]NVStorageDeleteData [14:18:52]Write to MH i2c: 01 00 00 EA 15 FF [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 D6 0C E8 [14:18:52]RasterBufferAndPrint [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]written 0, free lines is 3289 [14:18:52]MH_Cut [14:18:52]Write to MH i2c: D1 01 00 F1 15 01 D8 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 01 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 01 00 F1 15 00 D7 [14:18:52]Write to MH i2c: 01 00 00 F2 15 07 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]OFD Sender: No OFD packet to send [14:18:53]*** Cut start [14:18:53]*** Partial cut [14:18:53]*** CUTSNS_PIN = 1 [14:18:53]*** CUTSNS_PIN = 0 [14:18:53]*** Brake cut motor [14:18:53]Read from MH i2c: 01 [14:18:53]MH_I2C_Read... [14:18:53]*** Stop cut motor [14:18:53]*** Cut end [14:18:53]Read from MH i2c: 01 07 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [14:18:53]process_action close_receipt done [14:18:53]requested_data is exist [14:18:53]produce_requested_data [14:18:53]requested_item fm.sn is exist - process it [14:18:53]wFMCommunicate request_size=4 [14:18:53]MH_SAM_APDU [14:18:53]CAPDU: 80 11 00 00 [14:18:53]Write to MH i2c: E2 08 00 F3 15 80 11 00 00 00 00 00 00 82 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:53]Read from MH i2c: E2 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 17 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 17 00 F3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [14:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:18:53]wFMCommunicate OK [14:18:53]requested_item fd.num is exist - process it [14:18:53]SAM_PROTO_GetFieldsCounters [14:18:53]wFMCommunicate request_size=4 [14:18:53]MH_SAM_APDU [14:18:53]CAPDU: 80 13 00 00 [14:18:53]Write to MH i2c: E2 08 00 F4 15 80 13 00 00 00 00 00 00 85 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:53]Read from MH i2c: E2 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 62 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 62 00 F4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E0 [14:18: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 C6 97 01 00 0E 04 04 00 64 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:18:53]wFMCommunicate OK [14:18:53]SAM_PROTO_GetFieldsCounters done [14:18:53]requested_item shift.num is exist - process it [14:18:53]requested_item shift.opened is exist - process it [14:18:53]req_shift_opened [14:18:53]FM_GetShiftState [14:18:53]SAM_PROTO_GetShiftState [14:18:53]wFMCommunicate request_size=4 [14:18:53]MH_SAM_APDU [14:18:53]CAPDU: 80 13 01 00 [14:18:53]Write to MH i2c: E2 08 00 F5 15 80 13 01 00 00 00 00 00 87 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:53]Read from MH i2c: E2 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 0E 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: E2 0E 00 F5 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [14:18:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:18:53]wFMCommunicate OK [14:18:53]SAM_PROTO_GetShiftState done [14:18:53]FM_GetShiftState done [14:18:53]req_shift_opened done [14:18:53]requested_item shift.open_date is exist - process it [14:18:53]req_shift_open_date [14:18:53]req_shift_open_date done [14:18:53]produce_requested_data done [14:18:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104390,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:18:53]process_action_free close_receipt [14:18:53]json_value_free [14:18:53]json_value_free done [14:18:53]process_json_proto returns [14:18:53]Send response to host [14:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104390,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:18:53]free response buf [14:18:53]execute_script done [14:18:53]execute_script returns [14:18:53]free content buf [14:18:53]Sock 9.Close socket [14:18:53]Sock 9.Thread stoped [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:30]accept exits with 7 [14:19:30]New connection [14:19:30]New thread 3066449252 created [14:19:30]Thread 3066592612 joined [14:19:30]Waiting for new connection... [14:19:30] Sock 7.Parse request [14:19:30]Sock 7.Check first char [14:19:30]Sock 7.First char is OK [14:19:30]request: POST /json_proto HTTP/1.0 [14:19:30]Method: POST [14:19:30]URL: /json_proto [14:19:30]Method is POST - this is cgi request [14:19:30]url: /json_proto [14:19:30]query_string will be loaded in cgi processing [14:19:30]execute_cgi json_proto POST (null) [14:19:30]execute_cgi path=json_proto method=POST [14:19:30]POST find Content-Length [14:19:30]Host: 172.17.38.133:8080 [14:19:30]Content-Length: 682 [14:19:30]Content-Type: application/json [14:19:30] [14:19:30]POST finish read [14:19:30]Found Content-Length = 682 [14:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673941", "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" ] } } [14:19:30]execute_script... [14:19: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)673941", "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" ] } } [14:19:30]POST & json_proto [14:19:30]process_json_proto [14:19:30]json parsed OK: [14:19:30]protocol is kg_v1.0 [14:19:30]action value=close_receipt [14:19:30]process_action close_receipt [14:19:30]cmd_close_receipt [14:19:30]MH_GetDate [14:19:30]Write to MH i2c: F0 00 00 F6 15 FA [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: F0 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: F0 09 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: F0 09 00 F6 15 00 73 DD 76 66 BD 8F 7C 64 5B [14:19:30]GetLastDocTimeStamp 1719065931 [14:19:30]current date 1719065971 [14:19:30]FM_GetShiftState [14:19:30]SAM_PROTO_GetShiftState [14:19:30]wFMCommunicate request_size=4 [14:19:30]MH_SAM_APDU [14:19:30]CAPDU: 80 13 01 00 [14:19:30]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:30]Read from MH i2c: E2 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 0E 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [14:19:30]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:19:30]wFMCommunicate OK [14:19:30]SAM_PROTO_GetShiftState done [14:19:30]FM_GetShiftState done [14:19:30]opened in 1719016176 [14:19:30]opened+sec_in_day 1719102576 [14:19:30]quantity*price = 100060 [14:19:30]sum+1 = 100062 [14:19:30]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 СНО: Общий режим Чек 124 22.06.2024 14:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104391 ФПД: 149291075590128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104391&fm=149291075590128&tin=02508201610067®Number=0000000000092785&sum=100000 [14:19:31]StoreToDocumentArchive [14:19:31]shift 356 fd 104391 [14:19:31]save to /storage/0356/doc_00104391 [14:19:31]save last doc name /storage/0356/doc_00104391 to /storage/kkm_last_doc_name [14:19:31]save OK [14:19:31]Clear old archive folders... [14:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:31]tlvbuf is 00FCCEF0 [14:19:31]SAM_PROTO_ClearQueue [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 09 00 00 [14:19:31]Write to MH i2c: E2 08 00 04 16 80 09 00 00 00 00 00 00 8C [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [14:19:31]RAPDU: 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_ClearQueue done [14:19:31]KKMCreateOFDPacket [14:19:31]OFDProtocolAddRootSTLVToBuf [14:19:31]FM_MakeSignedData [14:19:31]FM_MakeSignedData [14:19:31]SAM_PROTO_SignData [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 0D 01 02 [14:19:31]Write to MH i2c: E2 08 00 05 16 80 0D 01 02 00 00 00 00 94 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [14:19:31]RAPDU: 90 00 [14:19:31]wFMCommunicate OK [14:19:31]wFMCommunicate request_size=255 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 7C 00 00 00 F4 03 04 00 73 DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 87 [14:19:31]Write to MH i2c: E2 02 01 06 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7C 00 00 00 F4 03 04 00 73 DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 87 00 00 82 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [14:19:31]RAPDU: 90 00 [14:19:31]wFMCommunicate OK [14:19:31]wFMCommunicate request_size=10 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 0D 02 02 05 C7 89 87 57 F0 [14:19:31]Write to MH i2c: E2 0D 00 07 16 80 0D 02 02 05 00 C7 89 87 57 F0 00 00 BF [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [14:19:31]RAPDU: 90 00 [14:19:31]wFMCommunicate OK [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 0D 03 02 [14:19:31]Write to MH i2c: E2 08 00 08 16 80 0D 03 02 00 00 00 00 99 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0B 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0B 00 08 16 00 EF 59 3A B2 5C AA C2 16 90 00 AC [14:19:31]RAPDU: EF 59 3A B2 5C AA C2 16 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_SignData done [14:19:31]FM_MakeSignedData done [14:19:31]CreateOFDProtocolMessage [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 11 00 00 [14:19:31]Write to MH i2c: E2 08 00 09 16 80 11 00 00 00 00 00 00 99 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 09 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [14:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:31]wFMCommunicate OK [14:19:31]CreateOFDProtocolMessage done [14:19:31]OFDSenderStorePacket 104391 [14:19:31]StoreOFDPacket docnum=104391 [14:19: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 10 3D 07 01 AD 30 5A 03 01 00 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 7C 00 00 00 F4 03 04 00 73 DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 87 C7 89 87 57 F0 EF 59 3A B2 5C AA C2 16 [14:19:31]CheckFolder [14:19:31]dirname=/storage/ofd_packets [14:19:31]CheckFolder done [14:19:31]ProducePacketName [14:19:31]name=ofd_packets/00104391 [14:19:31]NVStorageSaveData ofd_packets/00104391 [14:19:31]File name is /storage/ofd_packets/00104391 [14:19:31]Write 301 bytes [14:19:31]NVStorageSaveData done [14:19:31]OFDSenderStorePacket done [14:19:31]KKMCreateOFDPacket done [14:19:31]NVStorageSaveData kkm_last_timestamp [14:19:31]File name is /storage/kkm_last_timestamp [14:19:31]Write 4 bytes [14:19:31]NVStorageSaveData done [14:19:31]ExternCall_PrintAddStr [14:19:31]wPrintStart [14:19:31]Write to MH i2c: 01 00 00 0A 16 20 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: 01 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: 01 07 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 FF 0F 35 [14:19:31]RasterBufferAndPrint [14:19:31]line Счет N : (1)673941 [14:19:31]line ИНН: 02508201610067 [14:19:31]line Контрольно-Кассовый Чек [14:19:31]line ПРОДАЖА [14:19:31]line ТРК (МРК, ГНК) : 41 [14:19:31]line Товар: 2710124500 [14:19:31]line Аи-95-К-5 [14:19:31]line 13.540 * 73.90 [14:19:31]line = 1000.61 [14:19:31]line НДС 12% НСП 1% [14:19:31]line > о реализуемом товаре [14:19:31]line ОКРУГЛЕНИЕ: -0.61 [14:19:31]line ИТОГО: 1000.00 [14:19:31]line Внесено: 1000.00 [14:19:31]line СДАЧА: 0.00 [14:19:31]line НСП 1% : 8.85 [14:19:31]line НДС 12% : 106.26 [14:19:31]line Наличными: 1000.00 [14:19:31]line Безнал.: 0.00 [14:19:31]line Место: АЗС № 120 "Партнер Нефть" [14:19:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:19:31]line СНО: Общий режим [14:19:31]line Чек 124 22.06.2024 14:19 [14:19:31]line Смена: 356 ФФД: 1.0 [14:19:31]line ЗНМ: 0300000164 [14:19:31]line РНМ: 0000000000092785 [14:19:31]line Версия ККМ: 001 [14:19:31]line ФМ: 0000000000875093 [14:19:31]line ФД: 104391 [14:19:31]line ФПД: 149291075590128 [14:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104391&fm=149291075590128&tin=02508201610067®Number=0000000000092785&sum=100000 [14:19:32]OFD Sender: Processing packet 104391 [packets to send 17, broken 16] [14:19:32]ProducePacketName [14:19:32]name=ofd_packets/00104391 [14:19:32]OFD Sender: To server: pG, [14:19:32]CommunicateWithHost lk.salyk.kg:30040 [14:19:32]ConnectInit lk.salyk.kg [14:19:32]written 0, free lines is 4095 [14:19:32]Connected sock=10 [14:19: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 0F 01 00 00 10 3D 07 01 AD 30 5A 03 01 00 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 7C 00 00 00 F4 03 04 00 73 DD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 87 C7 89 87 57 F0 EF 59 3A B2 5C AA C2 16 [14:19: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 35 81 47 00 5B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 97 01 00 F4 03 04 00 F2 83 76 66 B6 04 01 00 00 C1 57 EF 44 A1 A1 47 E5 [14:19:32]CommunicateWithHost err = 0 [14:19:32]CheckOFDResponse [14:19:32]1017 (14) - 77093643461234 [14:19:32]1041 (16) - 0000000000875093 [14:19:32]1040 (4) - 104391 [14:19:32]1012 (4) - 22.06.2024 07:57 [14:19:32]1206 (1) - 0 [14:19:32]OFD Sender: Remove packet 104391 [14:19:32]ProducePacketName [14:19:32]name=ofd_packets/00104391 [14:19:32]NVStorageDeleteData [14:19:32]Write to MH i2c: 01 00 00 35 16 4B [14:19:32]Write i2c OK [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: 01 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: 01 07 00 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 DF 0C 3D [14:19:32]RasterBufferAndPrint [14:19:32]line [14:19:32]line [14:19:32]line [14:19:32]line [14:19:32]line [14:19:32]written 0, free lines is 3301 [14:19:32]MH_Cut [14:19:32]Write to MH i2c: D1 01 00 3C 16 01 24 [14:19:32]Write i2c OK [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: D1 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: D1 01 00 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: D1 01 00 3C 16 00 23 [14:19:32]Write to MH i2c: 01 00 00 3D 16 53 [14:19:32]Write i2c OK [14:19:32]MH_I2C_Read... [14:19:32]OFD Sender: No OFD packet to send [14:19:33]*** Cut start [14:19:33]*** Partial cut [14:19:33]*** CUTSNS_PIN = 1 [14:19:33]*** CUTSNS_PIN = 0 [14:19:33]*** Brake cut motor [14:19:33]Read from MH i2c: 01 [14:19:33]MH_I2C_Read... [14:19:33]*** Stop cut motor [14:19:33]*** Cut end [14:19:33]Read from MH i2c: 01 07 00 [14:19:33]MH_I2C_Read... [14:19:33]Read from MH i2c: 01 07 00 3D 16 00 00 00 00 00 FF 0F 68 [14:19:33]process_action close_receipt done [14:19:33]requested_data is exist [14:19:33]produce_requested_data [14:19:33]requested_item fm.sn is exist - process it [14:19:33]wFMCommunicate request_size=4 [14:19:33]MH_SAM_APDU [14:19:33]CAPDU: 80 11 00 00 [14:19:33]Write to MH i2c: E2 08 00 3E 16 80 11 00 00 00 00 00 00 CE [14:19:33]Write i2c OK [14:19:33]MH_I2C_Read... [14:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:33]Read from MH i2c: E2 [14:19:33]MH_I2C_Read... [14:19:33]Read from MH i2c: E2 17 00 [14:19:33]MH_I2C_Read... [14:19:33]Read from MH i2c: E2 17 00 3E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [14:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:33]wFMCommunicate OK [14:19:33]requested_item fd.num is exist - process it [14:19:33]SAM_PROTO_GetFieldsCounters [14:19:33]wFMCommunicate request_size=4 [14:19:33]MH_SAM_APDU [14:19:33]CAPDU: 80 13 00 00 [14:19:33]Write to MH i2c: E2 08 00 3F 16 80 13 00 00 00 00 00 00 D1 [14:19:33]Write i2c OK [14:19:33]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 62 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 62 00 3F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 30 [14:19: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 97 01 00 0E 04 04 00 64 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:19:34]wFMCommunicate OK [14:19:34]SAM_PROTO_GetFieldsCounters done [14:19:34]requested_item shift.num is exist - process it [14:19:34]requested_item shift.opened is exist - process it [14:19:34]req_shift_opened [14:19:34]FM_GetShiftState [14:19:34]SAM_PROTO_GetShiftState [14:19:34]wFMCommunicate request_size=4 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 13 01 00 [14:19:34]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 0E 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [14:19:34]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:19:34]wFMCommunicate OK [14:19:34]SAM_PROTO_GetShiftState done [14:19:34]FM_GetShiftState done [14:19:34]req_shift_opened done [14:19:34]requested_item shift.open_date is exist - process it [14:19:34]req_shift_open_date [14:19:34]req_shift_open_date done [14:19:34]produce_requested_data done [14:19:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104391,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:19:34]process_action_free close_receipt [14:19:34]json_value_free [14:19:34]json_value_free done [14:19:34]process_json_proto returns [14:19:34]Send response to host [14:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104391,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:19:34]free response buf [14:19:34]execute_script done [14:19:34]execute_script returns [14:19:34]free content buf [14:19:34]Sock 7.Close socket [14:19:34]Sock 7.Thread stoped [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:17]accept exits with 9 [14:22:17]New connection [14:22:17]New thread 3066592612 created [14:22:17]Thread 3066449252 joined [14:22:17]Waiting for new connection... [14:22:17] Sock 9.Parse request [14:22:17]Sock 9.Check first char [14:22:17]Sock 9.First char is OK [14:22:17]request: POST /json_proto HTTP/1.0 [14:22:17]Method: POST [14:22:17]URL: /json_proto [14:22:17]Method is POST - this is cgi request [14:22:17]url: /json_proto [14:22:17]query_string will be loaded in cgi processing [14:22:17]execute_cgi json_proto POST (null) [14:22:17]execute_cgi path=json_proto method=POST [14:22:17]POST find Content-Length [14:22:17]Host: 172.17.38.133:8080 [14:22:17]Content-Length: 811 [14:22:17]Content-Type: application/json [14:22:17] [14:22:17]POST finish read [14:22:17]Found Content-Length = 811 [14:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673938", "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" ] } } [14:22:17]execute_script... [14:22: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)673938", "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" ] } } [14:22:17]POST & json_proto [14:22:17]process_json_proto [14:22:17]json parsed OK: [14:22:17]protocol is kg_v1.0 [14:22:17]action value=close_receipt [14:22:17]process_action close_receipt [14:22:17]cmd_close_receipt [14:22:17]MH_GetDate [14:22:17]Write to MH i2c: F0 00 00 41 16 46 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: F0 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: F0 09 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: F0 09 00 41 16 00 1A DE 76 66 BD 8F 7C 64 4F [14:22:17]GetLastDocTimeStamp 1719065971 [14:22:17]current date 1719066138 [14:22:17]FM_GetShiftState [14:22:17]SAM_PROTO_GetShiftState [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 13 01 00 [14:22:17]Write to MH i2c: E2 08 00 42 16 80 13 01 00 00 00 00 00 D5 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0E 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0E 00 42 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C7 [14:22:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_GetShiftState done [14:22:17]FM_GetShiftState done [14:22:17]opened in 1719016176 [14:22:17]opened+sec_in_day 1719102576 [14:22:17]quantity*price = 1000042 [14:22:17]sum+1 = 1000043 [14:22:17]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 СНО: Общий режим Чек 125 22.06.2024 14:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104392 ФПД: 224886018725622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104392&fm=224886018725622&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:22:18]StoreToDocumentArchive [14:22:18]shift 356 fd 104392 [14:22:18]save to /storage/0356/doc_00104392 [14:22:18]save last doc name /storage/0356/doc_00104392 to /storage/kkm_last_doc_name [14:22:18]save OK [14:22:18]Clear old archive folders... [14:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:22:18]tlvbuf is 00F92EE0 [14:22:18]SAM_PROTO_ClearQueue [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 09 00 00 [14:22:18]Write to MH i2c: E2 08 00 4F 16 80 09 00 00 00 00 00 00 D7 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [14:22:18]RAPDU: 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_ClearQueue done [14:22:18]KKMCreateOFDPacket [14:22:18]OFDProtocolAddRootSTLVToBuf [14:22:18]FM_MakeSignedData [14:22:18]FM_MakeSignedData [14:22:18]SAM_PROTO_SignData [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 0D 01 02 [14:22:18]Write to MH i2c: E2 08 00 50 16 80 0D 01 02 00 00 00 00 DF [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [14:22:18]RAPDU: 90 00 [14:22:18]wFMCommunicate OK [14:22:18]wFMCommunicate request_size=255 [14:22:18]MH_SAM_APDU [14:22:18]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 7D 00 00 00 F4 03 04 00 1A DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:22:18]Write to MH i2c: E2 02 01 51 16 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 7D 00 00 00 F4 03 04 00 1A DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 26 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [14:22:18]RAPDU: 90 00 [14:22:18]wFMCommunicate OK [14:22:18]wFMCommunicate request_size=11 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 0D 02 02 06 CC 88 5B 42 D6 F6 [14:22:18]Write to MH i2c: E2 0E 00 52 16 80 0D 02 02 06 00 CC 88 5B 42 D6 F6 00 00 AB [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [14:22:18]RAPDU: 90 00 [14:22:18]wFMCommunicate OK [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 0D 03 02 [14:22:18]Write to MH i2c: E2 08 00 53 16 80 0D 03 02 00 00 00 00 E4 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0B 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0B 00 53 16 00 18 B9 BE B2 94 20 1B 27 90 00 1C [14:22:18]RAPDU: 18 B9 BE B2 94 20 1B 27 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_SignData done [14:22:18]FM_MakeSignedData done [14:22:18]CreateOFDProtocolMessage [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 11 00 00 [14:22:18]Write to MH i2c: E2 08 00 54 16 80 11 00 00 00 00 00 00 E4 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 54 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [14:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:22:18]wFMCommunicate OK [14:22:18]CreateOFDProtocolMessage done [14:22:18]OFDSenderStorePacket 104392 [14:22:18]StoreOFDPacket docnum=104392 [14:22: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 10 01 00 00 21 CE 08 01 0F 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 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 7D 00 00 00 F4 03 04 00 1A DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CC 88 5B 42 D6 F6 18 B9 BE B2 94 20 1B 27 [14:22:18]CheckFolder [14:22:18]dirname=/storage/ofd_packets [14:22:18]CheckFolder done [14:22:18]ProducePacketName [14:22:18]name=ofd_packets/00104392 [14:22:18]NVStorageSaveData ofd_packets/00104392 [14:22:18]File name is /storage/ofd_packets/00104392 [14:22:18]Write 302 bytes [14:22:18]NVStorageSaveData done [14:22:18]OFDSenderStorePacket done [14:22:18]KKMCreateOFDPacket done [14:22:18]NVStorageSaveData kkm_last_timestamp [14:22:18]File name is /storage/kkm_last_timestamp [14:22:18]Write 4 bytes [14:22:18]NVStorageSaveData done [14:22:18]ExternCall_PrintAddStr [14:22:18]wPrintStart [14:22:18]Write to MH i2c: 01 00 00 55 16 6B [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 FF 0F 80 [14:22:18]RasterBufferAndPrint [14:22:18]line Счет N : (1)673938 [14:22:18]line ИНН: 02508201610067 [14:22:18]line Контрольно-Кассовый Чек [14:22:18]line ПРОДАЖА [14:22:18]line ТРК (МРК, ГНК) : 11 [14:22:18]line Товар: 2710194210 [14:22:18]line ДТ(л)-К-5 [14:22:18]line 137.180 * 72.90 [14:22:18]line = 10000.42 [14:22:18]line НДС 12% НСП 1% [14:22:18]line > о реализуемом товаре [14:22:18]line ИТОГО: 10000.42 [14:22:18]line НСП 1% : 88.50 [14:22:18]line НДС 12% : 1061.99 [14:22:18]line Наличными: 0.00 [14:22:18]line Безнал.: 10000.42 [14:22:18]line Место: АЗС № 120 "Партнер Нефть" [14:22:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:22:18]line СНО: Общий режим [14:22:18]line Чек 125 22.06.2024 14:22 [14:22:18]line Смена: 356 ФФД: 1.0 [14:22:18]line ЗНМ: 0300000164 [14:22:18]line РНМ: 0000000000092785 [14:22:19]line Версия ККМ: 001 [14:22:19]line Платежная система: O! деньги [14:22:19]line ФМ: 0000000000875093 [14:22:19]line ФД: 104392 [14:22:19]line ФПД: 224886018725622 [14:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104392&fm=224886018725622&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:22:19]OFD Sender: Processing packet 104392 [packets to send 17, broken 16] [14:22:19]ProducePacketName [14:22:19]name=ofd_packets/00104392 [14:22:19]OFD Sender: To server: pG, [14:22:19]CommunicateWithHost lk.salyk.kg:30040 [14:22:19]ConnectInit lk.salyk.kg [14:22:19]written 0, free lines is 4095 [14:22:19]Connected sock=10 [14:22: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 10 01 00 00 21 CE 08 01 0F 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 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 7D 00 00 00 F4 03 04 00 1A DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CC 88 5B 42 D6 F6 18 B9 BE B2 94 20 1B 27 [14:22: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 41 6F 47 00 9C 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 C8 97 01 00 F4 03 04 00 99 84 76 66 B6 04 01 00 00 B5 CB 3D C8 B1 4E EE A0 [14:22:19]CommunicateWithHost err = 0 [14:22:19]CheckOFDResponse [14:22:19]1017 (14) - 77093643461234 [14:22:19]1041 (16) - 0000000000875093 [14:22:19]1040 (4) - 104392 [14:22:19]1012 (4) - 22.06.2024 08:00 [14:22:19]1206 (1) - 0 [14:22:19]OFD Sender: Remove packet 104392 [14:22:19]ProducePacketName [14:22:19]name=ofd_packets/00104392 [14:22:19]NVStorageDeleteData [14:22:19]Write to MH i2c: 01 00 00 7F 16 95 [14:22:19]Write i2c OK [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: 01 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: 01 07 00 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: 01 07 00 7F 16 00 00 00 00 00 EA 0C 92 [14:22:19]RasterBufferAndPrint [14:22:19]line [14:22:19]line [14:22:19]line [14:22:19]line [14:22:19]line [14:22:19]written 0, free lines is 3310 [14:22:19]MH_Cut [14:22:19]Write to MH i2c: D1 01 00 86 16 01 6E [14:22:19]Write i2c OK [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: D1 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: D1 01 00 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: D1 01 00 86 16 00 6D [14:22:19]Write to MH i2c: 01 00 00 87 16 9D [14:22:19]Write i2c OK [14:22:19]MH_I2C_Read... [14:22:20]OFD Sender: No OFD packet to send [14:22:20]*** Cut start [14:22:20]*** Partial cut [14:22:20]*** CUTSNS_PIN = 1 [14:22:20]*** CUTSNS_PIN = 0 [14:22:20]*** Brake cut motor [14:22:21]Read from MH i2c: 01 [14:22:21]MH_I2C_Read... [14:22:21]*** Stop cut motor [14:22:21]*** Cut end [14:22:21]Read from MH i2c: 01 07 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: 01 07 00 87 16 00 00 00 00 00 FF 0F B2 [14:22:21]process_action close_receipt done [14:22:21]requested_data is exist [14:22:21]produce_requested_data [14:22:21]requested_item fm.sn is exist - process it [14:22:21]wFMCommunicate request_size=4 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 11 00 00 [14:22:21]Write to MH i2c: E2 08 00 88 16 80 11 00 00 00 00 00 00 18 [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:21]Read from MH i2c: E2 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 17 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 17 00 88 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [14:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:22:21]wFMCommunicate OK [14:22:21]requested_item fd.num is exist - process it [14:22:21]SAM_PROTO_GetFieldsCounters [14:22:21]wFMCommunicate request_size=4 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 13 00 00 [14:22:21]Write to MH i2c: E2 08 00 89 16 80 13 00 00 00 00 00 00 1B [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:21]Read from MH i2c: E2 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 62 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 62 00 89 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7E [14:22: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 C8 97 01 00 0E 04 04 00 64 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:22:21]wFMCommunicate OK [14:22:21]SAM_PROTO_GetFieldsCounters done [14:22:21]requested_item shift.num is exist - process it [14:22:21]requested_item shift.opened is exist - process it [14:22:21]req_shift_opened [14:22:21]FM_GetShiftState [14:22:21]SAM_PROTO_GetShiftState [14:22:21]wFMCommunicate request_size=4 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 13 01 00 [14:22:21]Write to MH i2c: E2 08 00 8A 16 80 13 01 00 00 00 00 00 1D [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:21]Read from MH i2c: E2 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 0E 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 0E 00 8A 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 0F [14:22:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:22:21]wFMCommunicate OK [14:22:21]SAM_PROTO_GetShiftState done [14:22:21]FM_GetShiftState done [14:22:21]req_shift_opened done [14:22:21]requested_item shift.open_date is exist - process it [14:22:21]req_shift_open_date [14:22:21]req_shift_open_date done [14:22:21]produce_requested_data done [14:22:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104392,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:22:21]process_action_free close_receipt [14:22:21]json_value_free [14:22:21]json_value_free done [14:22:21]process_json_proto returns [14:22:21]Send response to host [14:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104392,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:22:21]free response buf [14:22:21]execute_script done [14:22:21]execute_script returns [14:22:21]free content buf [14:22:21]Sock 9.Close socket [14:22:21]Sock 9.Thread stoped [14:22:24]accept exits with 7 [14:22:24]New connection [14:22:24]New thread 3066449252 created [14:22:24]Thread 3066592612 joined [14:22:24]Waiting for new connection... [14:22:24] Sock 7.Parse request [14:22:24]Sock 7.Check first char [14:22:24]Sock 7.First char is OK [14:22:24]request: POST /json_proto HTTP/1.0 [14:22:24]Method: POST [14:22:24]URL: /json_proto [14:22:24]Method is POST - this is cgi request [14:22:24]url: /json_proto [14:22:24]query_string will be loaded in cgi processing [14:22:24]execute_cgi json_proto POST (null) [14:22:24]execute_cgi path=json_proto method=POST [14:22:24]POST find Content-Length [14:22:24]Host: 172.17.38.133:8080 [14:22:24]Content-Length: 811 [14:22:24]Content-Type: application/json [14:22:24] [14:22:24]POST finish read [14:22:24]Found Content-Length = 811 [14:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673939", "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" : 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" ] } } [14:22:24]execute_script... [14: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)673939", "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" : 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" ] } } [14:22:24]POST & json_proto [14:22:24]process_json_proto [14:22:24]json parsed OK: [14:22:24]protocol is kg_v1.0 [14:22:24]action value=close_receipt [14:22:24]process_action close_receipt [14:22:24]cmd_close_receipt [14:22:24]MH_GetDate [14:22:24]Write to MH i2c: F0 00 00 8B 16 90 [14:22:24]Write i2c OK [14:22:24]MH_I2C_Read... [14:22:24]Read from MH i2c: F0 [14:22:24]MH_I2C_Read... [14:22:24]Read from MH i2c: F0 09 00 [14:22:24]MH_I2C_Read... [14:22:24]Read from MH i2c: F0 09 00 8B 16 00 22 DE 76 66 BD 8F 7C 64 A1 [14:22:24]GetLastDocTimeStamp 1719066138 [14:22:24]current date 1719066146 [14:22:24]FM_GetShiftState [14:22:24]SAM_PROTO_GetShiftState [14:22:24]wFMCommunicate request_size=4 [14:22:24]MH_SAM_APDU [14:22:24]CAPDU: 80 13 01 00 [14:22:24]Write to MH i2c: E2 08 00 8C 16 80 13 01 00 00 00 00 00 1F [14:22:24]Write i2c OK [14:22:24]MH_I2C_Read... [14:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:24]Read from MH i2c: E2 [14:22:24]MH_I2C_Read... [14:22:24]Read from MH i2c: E2 0E 00 [14:22:24]MH_I2C_Read... [14:22:24]Read from MH i2c: E2 0E 00 8C 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 11 [14:22:24]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:22:24]wFMCommunicate OK [14:22:24]SAM_PROTO_GetShiftState done [14:22:24]FM_GetShiftState done [14:22:24]opened in 1719016176 [14:22:24]opened+sec_in_day 1719102576 [14:22:24]quantity*price = 1000042 [14:22:24]sum+1 = 1000043 [14:22:24]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 СНО: Общий режим Чек 126 22.06.2024 14:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104393 ФПД: 264806317907729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104393&fm=264806317907729&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:22:25]StoreToDocumentArchive [14:22:25]shift 356 fd 104393 [14:22:25]save to /storage/0356/doc_00104393 [14:22:25]save last doc name /storage/0356/doc_00104393 to /storage/kkm_last_doc_name [14:22:25]save OK [14:22:25]Clear old archive folders... [14:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:22:25]tlvbuf is 00FDC7C0 [14:22:25]SAM_PROTO_ClearQueue [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 09 00 00 [14:22:25]Write to MH i2c: E2 08 00 99 16 80 09 00 00 00 00 00 00 21 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 03 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [14:22:25]RAPDU: 90 00 [14:22:25]wFMCommunicate OK [14:22:25]SAM_PROTO_ClearQueue done [14:22:25]KKMCreateOFDPacket [14:22:25]OFDProtocolAddRootSTLVToBuf [14:22:25]FM_MakeSignedData [14:22:25]FM_MakeSignedData [14:22:25]SAM_PROTO_SignData [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 0D 01 02 [14:22:25]Write to MH i2c: E2 08 00 9A 16 80 0D 01 02 00 00 00 00 29 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 03 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [14:22:25]RAPDU: 90 00 [14:22:25]wFMCommunicate OK [14:22:25]wFMCommunicate request_size=255 [14:22:25]MH_SAM_APDU [14:22:25]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 7E 00 00 00 F4 03 04 00 22 DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:22:25]Write to MH i2c: E2 02 01 9B 16 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 7E 00 00 00 F4 03 04 00 22 DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 7A [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [14:22:26]RAPDU: 90 00 [14:22:26]wFMCommunicate OK [14:22:26]wFMCommunicate request_size=11 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 0D 02 02 06 F0 D7 06 83 5F 11 [14:22:26]Write to MH i2c: E2 0E 00 9C 16 80 0D 02 02 06 00 F0 D7 06 83 5F 11 00 00 F8 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 9C 16 00 90 00 26 [14:22:26]RAPDU: 90 00 [14:22:26]wFMCommunicate OK [14:22:26]wFMCommunicate request_size=4 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 0D 03 02 [14:22:26]Write to MH i2c: E2 08 00 9D 16 80 0D 03 02 00 00 00 00 2E [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 0B 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 0B 00 9D 16 00 68 2E 5A E1 D9 A3 0F D9 90 00 64 [14:22:26]RAPDU: 68 2E 5A E1 D9 A3 0F D9 90 00 [14:22:26]wFMCommunicate OK [14:22:26]SAM_PROTO_SignData done [14:22:26]FM_MakeSignedData done [14:22:26]CreateOFDProtocolMessage [14:22:26]wFMCommunicate request_size=4 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 11 00 00 [14:22:26]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 17 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [14: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 [14:22:26]wFMCommunicate OK [14:22:26]CreateOFDProtocolMessage done [14:22:26]OFDSenderStorePacket 104393 [14:22:26]StoreOFDPacket docnum=104393 [14: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 10 01 00 00 9F 7A 08 01 18 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 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 7E 00 00 00 F4 03 04 00 22 DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F0 D7 06 83 5F 11 68 2E 5A E1 D9 A3 0F D9 [14:22:26]CheckFolder [14:22:26]dirname=/storage/ofd_packets [14:22:26]CheckFolder done [14:22:26]ProducePacketName [14:22:26]name=ofd_packets/00104393 [14:22:26]NVStorageSaveData ofd_packets/00104393 [14:22:26]File name is /storage/ofd_packets/00104393 [14:22:26]Write 302 bytes [14:22:26]NVStorageSaveData done [14:22:26]OFDSenderStorePacket done [14:22:26]KKMCreateOFDPacket done [14:22:26]NVStorageSaveData kkm_last_timestamp [14:22:26]File name is /storage/kkm_last_timestamp [14:22:26]Write 4 bytes [14:22:26]NVStorageSaveData done [14:22:26]ExternCall_PrintAddStr [14:22:26]wPrintStart [14:22:26]Write to MH i2c: 01 00 00 9F 16 B5 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 07 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 FF 0F CA [14:22:26]RasterBufferAndPrint [14:22:26]line Счет N : (1)673939 [14:22:26]line ИНН: 02508201610067 [14:22:26]line Контрольно-Кассовый Чек [14:22:26]line ПРОДАЖА [14:22:26]line ТРК (МРК, ГНК) : 21 [14:22:26]line Товар: 2710194210 [14:22:26]line ДТ(л)-К-5 [14:22:26]line 137.180 * 72.90 [14:22:26]line = 10000.42 [14:22:26]line НДС 12% НСП 1% [14:22:26]line > о реализуемом товаре [14:22:26]line ИТОГО: 10000.42 [14:22:26]line НСП 1% : 88.50 [14:22:26]line НДС 12% : 1061.99 [14:22:26]line Наличными: 0.00 [14:22:26]line Безнал.: 10000.42 [14:22:26]line Место: АЗС № 120 "Партнер Нефть" [14:22:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:22:26]line СНО: Общий режим [14:22:26]line Чек 126 22.06.2024 14:22 [14:22:26]line Смена: 356 ФФД: 1.0 [14:22:26]line ЗНМ: 0300000164 [14:22:26]line РНМ: 0000000000092785 [14:22:26]line Версия ККМ: 001 [14:22:26]line Платежная система: O! деньги [14:22:26]line ФМ: 0000000000875093 [14:22:26]line ФД: 104393 [14:22:26]line ФПД: 264806317907729 [14:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104393&fm=264806317907729&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:22:26]written 0, free lines is 4095 [14:22:26]OFD Sender: Processing packet 104393 [packets to send 17, broken 16] [14:22:26]ProducePacketName [14:22:26]name=ofd_packets/00104393 [14:22:26]OFD Sender: To server: pG, [14:22:26]CommunicateWithHost lk.salyk.kg:30040 [14:22:26]ConnectInit lk.salyk.kg [14:22:26]Connected sock=10 [14:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9F 7A 08 01 18 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 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 7E 00 00 00 F4 03 04 00 22 DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F0 D7 06 83 5F 11 68 2E 5A E1 D9 A3 0F D9 [14:22: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 71 87 47 00 28 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 C9 97 01 00 F4 03 04 00 A0 84 76 66 B6 04 01 00 00 6B C5 54 99 1B 40 97 8B [14:22:26]CommunicateWithHost err = 0 [14:22:26]CheckOFDResponse [14:22:26]1017 (14) - 77093643461234 [14:22:26]1041 (16) - 0000000000875093 [14:22:26]1040 (4) - 104393 [14:22:26]1012 (4) - 22.06.2024 08:00 [14:22:26]1206 (1) - 0 [14:22:26]OFD Sender: Remove packet 104393 [14:22:26]ProducePacketName [14:22:26]name=ofd_packets/00104393 [14:22:26]NVStorageDeleteData [14:22:26]Write to MH i2c: 01 00 00 C9 16 DF [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 07 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 F0 0C E2 [14:22:26]RasterBufferAndPrint [14:22:26]line [14:22:26]line [14:22:26]line [14:22:26]line [14:22:26]line [14:22:26]written 0, free lines is 3322 [14:22:26]MH_Cut [14:22:26]Write to MH i2c: D1 01 00 D0 16 01 B8 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: D1 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: D1 01 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: D1 01 00 D0 16 00 B7 [14:22:26]Write to MH i2c: 01 00 00 D1 16 E7 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:27]OFD Sender: No OFD packet to send [14:22:27]*** Cut start [14:22:27]*** Partial cut [14:22:27]*** CUTSNS_PIN = 1 [14:22:27]*** CUTSNS_PIN = 0 [14:22:27]*** Brake cut motor [14:22:28]Read from MH i2c: 01 [14:22:28]MH_I2C_Read... [14:22:28]*** Stop cut motor [14:22:28]*** Cut end [14:22:28]Read from MH i2c: 01 07 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [14:22:28]process_action close_receipt done [14:22:28]requested_data is exist [14:22:28]produce_requested_data [14:22:28]requested_item fm.sn is exist - process it [14:22:28]wFMCommunicate request_size=4 [14:22:28]MH_SAM_APDU [14:22:28]CAPDU: 80 11 00 00 [14:22:28]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:28]Read from MH i2c: E2 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 17 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [14: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 [14:22:28]wFMCommunicate OK [14:22:28]requested_item fd.num is exist - process it [14:22:28]SAM_PROTO_GetFieldsCounters [14:22:28]wFMCommunicate request_size=4 [14:22:28]MH_SAM_APDU [14:22:28]CAPDU: 80 13 00 00 [14:22:28]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 [14:22:28]MH_I2C_Read... [14:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:28]Read from MH i2c: E2 62 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 CC [14:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:22:28]wFMCommunicate OK [14:22:28]SAM_PROTO_GetFieldsCounters done [14:22:28]requested_item shift.num is exist - process it [14:22:28]requested_item shift.opened is exist - process it [14:22:28]req_shift_opened [14:22:28]FM_GetShiftState [14:22:28]SAM_PROTO_GetShiftState [14:22:28]wFMCommunicate request_size=4 [14:22:28]MH_SAM_APDU [14:22:28]CAPDU: 80 13 01 00 [14:22:28]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:28]Read from MH i2c: E2 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 0E 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 59 [14:22:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:22:28]wFMCommunicate OK [14:22:28]SAM_PROTO_GetShiftState done [14:22:28]FM_GetShiftState done [14:22:28]req_shift_opened done [14:22:28]requested_item shift.open_date is exist - process it [14:22:28]req_shift_open_date [14:22:28]req_shift_open_date done [14:22:28]produce_requested_data done [14:22:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104393,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:22:28]process_action_free close_receipt [14:22:28]json_value_free [14:22:28]json_value_free done [14:22:28]process_json_proto returns [14:22:28]Send response to host [14:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104393,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:22:28]free response buf [14:22:28]execute_script done [14:22:28]execute_script returns [14:22:28]free content buf [14:22:28]Sock 7.Close socket [14:22:28]Sock 7.Thread stoped [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:12]accept exits with 9 [14:24:12]New connection [14:24:12]New thread 3066592612 created [14:24:12]Thread 3066449252 joined [14:24:12]Waiting for new connection... [14:24:12] Sock 9.Parse request [14:24:12]Sock 9.Check first char [14:24:12]Sock 9.First char is OK [14:24:12]request: POST /json_proto HTTP/1.0 [14:24:12]Method: POST [14:24:12]URL: /json_proto [14:24:12]Method is POST - this is cgi request [14:24:12]url: /json_proto [14:24:12]query_string will be loaded in cgi processing [14:24:12]execute_cgi json_proto POST (null) [14:24:12]execute_cgi path=json_proto method=POST [14:24:12]POST find Content-Length [14:24:12]Host: 172.17.38.133:8080 [14:24:12]Content-Length: 1168 [14:24:12]Content-Type: application/json [14:24:12] [14:24:12]POST finish read [14:24:12]Found Content-Length = 1168 [14:24: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673944\u000A22.06.2024 14:01\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 12.570 x 66.40\u000A\u0418\u0422\u041E\u0413: 834.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:12]execute_script... [14:24: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673944\u000A22.06.2024 14:01\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 12.570 x 66.40\u000A\u0418\u0422\u041E\u0413: 834.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:12]POST & json_proto [14:24:12]process_json_proto [14:24:12]json parsed OK: [14:24:12]protocol is kg_v1.0 [14:24:12]action value=print_text [14:24:12]process_action print_text [14:24:12]cmd_print_text [14:24:12]ExternCall_PrintAddStr [14:24:12]wPrintStart [14:24:12]Write to MH i2c: 01 00 00 D5 16 EB [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 D5 16 00 00 00 00 00 FF 0F 00 [14:24:12]RasterBufferAndPrint [14:24:12]line *****ТОВАРНЫЙ ЧЕК***** [14:24:12]line АЗС 120 [14:24:12]line Партнер нефть [14:24:12]line 02508201610067 [14:24:12]line Кассир : Байбугуева Г. [14:24:12]line Счет N : (1)673944 [14:24:12]line 22.06.2024 14:01 [14:24:12]line ПРОДАЖА [14:24:12]line ТРК (МРК, ГНК): 42 [14:24:12]line Вид ГСМ : 2710124130 [14:24:12]line Аи-92-К-5 [14:24:12]line 12.570 x 66.40 [14:24:12]line ИТОГ: 834.65 [14:24:12]line Тип оплаты: Талоны: ТК ГПНА Online [14:24:12]line 30101507 [14:24:12]line ______________________ [14:24:12]line (подпись) [14:24:12]written 0, free lines is 4095 [14:24:12]Write to MH i2c: 01 00 00 E9 16 FF [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 10 0E 24 [14:24:12]RasterBufferAndPrint [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]written 0, free lines is 3601 [14:24:12]MH_Cut [14:24:12]Write to MH i2c: D1 01 00 F0 16 01 D8 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 01 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 01 00 F0 16 00 D7 [14:24:12]Write to MH i2c: 01 00 00 F1 16 07 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:13]*** Cut start [14:24:13]*** Partial cut [14:24:13]*** CUTSNS_PIN = 1 [14:24:13]*** CUTSNS_PIN = 0 [14:24:13]*** Brake cut motor [14:24:14]Read from MH i2c: 01 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 [14:24:14]MH_I2C_Read... [14:24:14]*** Stop cut motor [14:24:14]*** Cut end [14:24:14]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [14:24:14]process_action print_text done [14:24:14]requested_data is exist [14:24:14]produce_requested_data [14:24:14]requested_item fm.sn is exist - process it [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 11 00 00 [14:24:14]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [14:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:24:14]wFMCommunicate OK [14:24:14]requested_item fd.num is exist - process it [14:24:14]SAM_PROTO_GetFieldsCounters [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 00 00 [14:24:14]Write to MH i2c: E2 08 00 F3 16 80 13 00 00 00 00 00 00 85 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 62 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 62 00 F3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EC [14:24: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 C9 97 01 00 0E 04 04 00 64 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:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetFieldsCounters done [14:24:14]requested_item shift.num is exist - process it [14:24:14]requested_item shift.opened is exist - process it [14:24:14]req_shift_opened [14:24:14]FM_GetShiftState [14:24:14]SAM_PROTO_GetShiftState [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 01 00 [14:24:14]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [14:24:14]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetShiftState done [14:24:14]FM_GetShiftState done [14:24:14]req_shift_opened done [14:24:14]requested_item shift.open_date is exist - process it [14:24:14]req_shift_open_date [14:24:14]req_shift_open_date done [14:24:14]produce_requested_data done [14:24:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104393,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:24:14]process_action_free print_text [14:24:14]json_value_free [14:24:14]json_value_free done [14:24:14]process_json_proto returns [14:24:14]Send response to host [14:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104393,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:24:14]free response buf [14:24:14]execute_script done [14:24:14]execute_script returns [14:24:14]free content buf [14:24:14]Sock 9.Close socket [14:24:14]Sock 9.Thread stoped [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]accept exits with 7 [14:25:02]New connection [14:25:02]New thread 3066449252 created [14:25:02]Thread 3066592612 joined [14:25:02]Waiting for new connection... [14:25:02] Sock 7.Parse request [14:25:02]Sock 7.Check first char [14:25:02]Sock 7.First char is OK [14:25:02]request: POST /json_proto HTTP/1.0 [14:25:02]Method: POST [14:25:02]URL: /json_proto [14:25:02]Method is POST - this is cgi request [14:25:02]url: /json_proto [14:25:02]query_string will be loaded in cgi processing [14:25:02]execute_cgi json_proto POST (null) [14:25:02]execute_cgi path=json_proto method=POST [14:25:02]POST find Content-Length [14:25:02]Host: 172.17.38.133:8080 [14:25:02]Content-Length: 678 [14:25:02]Content-Type: application/json [14:25:02] [14:25:02]POST finish read [14:25:02]Found Content-Length = 678 [14:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673945", "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" ] } } [14:25:02]execute_script... [14:25: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)673945", "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" ] } } [14:25:02]POST & json_proto [14:25:02]process_json_proto [14:25:02]json parsed OK: [14:25:02]protocol is kg_v1.0 [14:25:02]action value=close_receipt [14:25:02]process_action close_receipt [14:25:02]cmd_close_receipt [14:25:02]MH_GetDate [14:25:02]Write to MH i2c: F0 00 00 F5 16 FA [14:25:02]Write i2c OK [14:25:02]MH_I2C_Read... [14:25:02]Read from MH i2c: F0 [14:25:02]MH_I2C_Read... [14:25:02]Read from MH i2c: F0 09 00 [14:25:02]MH_I2C_Read... [14:25:02]Read from MH i2c: F0 09 00 F5 16 00 BF DE 76 66 BD 8F 7C 64 A8 [14:25:02]GetLastDocTimeStamp 1719066146 [14:25:02]current date 1719066303 [14:25:02]FM_GetShiftState [14:25:02]SAM_PROTO_GetShiftState [14:25:02]wFMCommunicate request_size=4 [14:25:02]MH_SAM_APDU [14:25:02]CAPDU: 80 13 01 00 [14:25:02]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [14:25:02]Write i2c OK [14:25:02]MH_I2C_Read... [14:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:02]Read from MH i2c: E2 [14:25:02]MH_I2C_Read... [14:25:02]Read from MH i2c: E2 0E 00 [14:25:02]MH_I2C_Read... [14:25:02]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [14:25:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:25:02]wFMCommunicate OK [14:25:02]SAM_PROTO_GetShiftState done [14:25:02]FM_GetShiftState done [14:25:02]opened in 1719016176 [14:25:02]opened+sec_in_day 1719102576 [14:25:02]quantity*price = 70052 [14:25:02]sum+1 = 70053 [14:25:02]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 СНО: Общий режим Чек 127 22.06.2024 14:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104394 ФПД: 275523292683893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142503&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104394&fm=275523292683893&tin=02508201610067®Number=0000000000092785&sum=70000 [14:25:03]StoreToDocumentArchive [14:25:03]shift 356 fd 104394 [14:25:03]save to /storage/0356/doc_00104394 [14:25:03]save last doc name /storage/0356/doc_00104394 to /storage/kkm_last_doc_name [14:25:03]save OK [14:25:03]Clear old archive folders... [14:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:03]tlvbuf is 010101E0 [14:25:03]SAM_PROTO_ClearQueue [14:25:03]wFMCommunicate request_size=4 [14:25:03]MH_SAM_APDU [14:25:03]CAPDU: 80 09 00 00 [14:25:03]Write to MH i2c: E2 08 00 03 17 80 09 00 00 00 00 00 00 8C [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [14:25:03]RAPDU: 90 00 [14:25:03]wFMCommunicate OK [14:25:03]SAM_PROTO_ClearQueue done [14:25:03]KKMCreateOFDPacket [14:25:03]OFDProtocolAddRootSTLVToBuf [14:25:03]FM_MakeSignedData [14:25:03]FM_MakeSignedData [14:25:03]SAM_PROTO_SignData [14:25:03]wFMCommunicate request_size=4 [14:25:03]MH_SAM_APDU [14:25:03]CAPDU: 80 0D 01 02 [14:25:03]Write to MH i2c: E2 08 00 04 17 80 0D 01 02 00 00 00 00 94 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [14:25:03]RAPDU: 90 00 [14:25:03]wFMCommunicate OK [14:25:03]wFMCommunicate request_size=255 [14:25:03]MH_SAM_APDU [14:25: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 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 7F 00 00 00 F4 03 04 00 BF DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA [14:25:03]Write to MH i2c: E2 02 01 05 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7F 00 00 00 F4 03 04 00 BF DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 00 00 19 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [14:25:03]RAPDU: 90 00 [14:25:03]wFMCommunicate OK [14:25:03]wFMCommunicate request_size=10 [14:25:03]MH_SAM_APDU [14:25:03]CAPDU: 80 0D 02 02 05 96 43 FC DE 75 [14:25:03]Write to MH i2c: E2 0D 00 06 17 80 0D 02 02 05 00 96 43 FC DE 75 00 00 C9 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [14:25:03]RAPDU: 90 00 [14:25:03]wFMCommunicate OK [14:25:03]wFMCommunicate request_size=4 [14:25:03]MH_SAM_APDU [14:25:03]CAPDU: 80 0D 03 02 [14:25:03]Write to MH i2c: E2 08 00 07 17 80 0D 03 02 00 00 00 00 99 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 0B 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 0B 00 07 17 00 20 EC BE 92 03 84 6F C1 90 00 AD [14:25:03]RAPDU: 20 EC BE 92 03 84 6F C1 90 00 [14:25:03]wFMCommunicate OK [14:25:03]SAM_PROTO_SignData done [14:25:03]FM_MakeSignedData done [14:25:03]CreateOFDProtocolMessage [14:25:03]wFMCommunicate request_size=4 [14:25:03]MH_SAM_APDU [14:25:03]CAPDU: 80 11 00 00 [14:25:03]Write to MH i2c: E2 08 00 08 17 80 11 00 00 00 00 00 00 99 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:03]Read from MH i2c: E2 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 17 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: E2 17 00 08 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [14:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:25:03]wFMCommunicate OK [14:25:03]CreateOFDProtocolMessage done [14:25:03]OFDSenderStorePacket 104394 [14:25:03]StoreOFDPacket docnum=104394 [14:25: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 DE 4B 07 01 6D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7F 00 00 00 F4 03 04 00 BF DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 96 43 FC DE 75 20 EC BE 92 03 84 6F C1 [14:25:03]CheckFolder [14:25:03]dirname=/storage/ofd_packets [14:25:03]CheckFolder done [14:25:03]ProducePacketName [14:25:03]name=ofd_packets/00104394 [14:25:03]NVStorageSaveData ofd_packets/00104394 [14:25:03]File name is /storage/ofd_packets/00104394 [14:25:03]Write 301 bytes [14:25:03]NVStorageSaveData done [14:25:03]OFDSenderStorePacket done [14:25:03]KKMCreateOFDPacket done [14:25:03]NVStorageSaveData kkm_last_timestamp [14:25:03]File name is /storage/kkm_last_timestamp [14:25:03]Write 4 bytes [14:25:03]NVStorageSaveData done [14:25:03]ExternCall_PrintAddStr [14:25:03]wPrintStart [14:25:03]Write to MH i2c: 01 00 00 09 17 20 [14:25:03]Write i2c OK [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: 01 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: 01 07 00 [14:25:03]MH_I2C_Read... [14:25:03]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 FF 0F 35 [14:25:03]RasterBufferAndPrint [14:25:03]line Счет N : (1)673945 [14:25:03]line ИНН: 02508201610067 [14:25:03]line Контрольно-Кассовый Чек [14:25:03]line ПРОДАЖА [14:25:03]line ТРК (МРК, ГНК) : 32 [14:25:03]line Товар: 2710124130 [14:25:03]line Аи-92-К-5 [14:25:03]line 10.550 * 66.40 [14:25:03]line = 700.52 [14:25:03]line НДС 12% НСП 1% [14:25:03]line > о реализуемом товаре [14:25:03]line ОКРУГЛЕНИЕ: -0.52 [14:25:03]line ИТОГО: 700.00 [14:25:03]line Внесено: 700.00 [14:25:03]line СДАЧА: 0.00 [14:25:03]line НСП 1% : 6.20 [14:25:03]line НДС 12% : 74.39 [14:25:03]line Наличными: 700.00 [14:25:03]line Безнал.: 0.00 [14:25:03]line Место: АЗС № 120 "Партнер Нефть" [14:25:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:25:03]line СНО: Общий режим [14:25:03]line Чек 127 22.06.2024 14:25 [14:25:03]line Смена: 356 ФФД: 1.0 [14:25:03]line ЗНМ: 0300000164 [14:25:03]line РНМ: 0000000000092785 [14:25:03]line Версия ККМ: 001 [14:25:03]line ФМ: 0000000000875093 [14:25:03]line ФД: 104394 [14:25:03]line ФПД: 275523292683893 [14:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142503&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104394&fm=275523292683893&tin=02508201610067®Number=0000000000092785&sum=70000 [14:25:04]OFD Sender: Processing packet 104394 [packets to send 17, broken 16] [14:25:04]ProducePacketName [14:25:04]name=ofd_packets/00104394 [14:25:04]OFD Sender: To server: pG, [14:25:04]CommunicateWithHost lk.salyk.kg:30040 [14:25:04]ConnectInit lk.salyk.kg [14:25:04]written 0, free lines is 4095 [14:25:04]Connected sock=11 [14:25: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 DE 4B 07 01 6D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7F 00 00 00 F4 03 04 00 BF DE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 96 43 FC DE 75 20 EC BE 92 03 84 6F C1 [14:25: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 F6 53 47 00 B7 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 CA 97 01 00 F4 03 04 00 3E 85 76 66 B6 04 01 00 00 52 61 F0 9A 44 84 7C B7 [14:25:04]CommunicateWithHost err = 0 [14:25:04]CheckOFDResponse [14:25:04]1017 (14) - 77093643461234 [14:25:04]1041 (16) - 0000000000875093 [14:25:04]1040 (4) - 104394 [14:25:04]1012 (4) - 22.06.2024 08:03 [14:25:04]1206 (1) - 0 [14:25:04]OFD Sender: Remove packet 104394 [14:25:04]ProducePacketName [14:25:04]name=ofd_packets/00104394 [14:25:04]NVStorageDeleteData [14:25:04]Write to MH i2c: 01 00 00 34 17 4B [14:25:04]Write i2c OK [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: 01 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: 01 07 00 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 DC 0C 3A [14:25:04]RasterBufferAndPrint [14:25:04]line [14:25:04]line [14:25:04]line [14:25:04]line [14:25:04]line [14:25:04]written 0, free lines is 3299 [14:25:04]MH_Cut [14:25:04]Write to MH i2c: D1 01 00 3B 17 01 24 [14:25:04]Write i2c OK [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: D1 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: D1 01 00 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: D1 01 00 3B 17 00 23 [14:25:04]Write to MH i2c: 01 00 00 3C 17 53 [14:25:04]Write i2c OK [14:25:04]MH_I2C_Read... [14:25:05]OFD Sender: No OFD packet to send [14:25:05]*** Cut start [14:25:05]*** Partial cut [14:25:05]*** CUTSNS_PIN = 1 [14:25:05]*** CUTSNS_PIN = 0 [14:25:05]*** Brake cut motor [14:25:06]Read from MH i2c: 01 [14:25:06]MH_I2C_Read... [14:25:06]*** Stop cut motor [14:25:06]*** Cut end [14:25:06]Read from MH i2c: 01 07 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 FF 0F 68 [14:25:06]process_action close_receipt done [14:25:06]requested_data is exist [14:25:06]produce_requested_data [14:25:06]requested_item fm.sn is exist - process it [14:25:06]wFMCommunicate request_size=4 [14:25:06]MH_SAM_APDU [14:25:06]CAPDU: 80 11 00 00 [14:25:06]Write to MH i2c: E2 08 00 3D 17 80 11 00 00 00 00 00 00 CE [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:06]Read from MH i2c: E2 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 17 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 17 00 3D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [14:25: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:25:06]wFMCommunicate OK [14:25:06]requested_item fd.num is exist - process it [14:25:06]SAM_PROTO_GetFieldsCounters [14:25:06]wFMCommunicate request_size=4 [14:25:06]MH_SAM_APDU [14:25:06]CAPDU: 80 13 00 00 [14:25:06]Write to MH i2c: E2 08 00 3E 17 80 13 00 00 00 00 00 00 D1 [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:06]Read from MH i2c: E2 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 62 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 62 00 3E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 3C [14:25: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 CA 97 01 00 0E 04 04 00 64 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:25:06]wFMCommunicate OK [14:25:06]SAM_PROTO_GetFieldsCounters done [14:25:06]requested_item shift.num is exist - process it [14:25:06]requested_item shift.opened is exist - process it [14:25:06]req_shift_opened [14:25:06]FM_GetShiftState [14:25:06]SAM_PROTO_GetShiftState [14:25:06]wFMCommunicate request_size=4 [14:25:06]MH_SAM_APDU [14:25:06]CAPDU: 80 13 01 00 [14:25:06]Write to MH i2c: E2 08 00 3F 17 80 13 01 00 00 00 00 00 D3 [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:06]Read from MH i2c: E2 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 0E 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: E2 0E 00 3F 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [14:25:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:25:06]wFMCommunicate OK [14:25:06]SAM_PROTO_GetShiftState done [14:25:06]FM_GetShiftState done [14:25:06]req_shift_opened done [14:25:06]requested_item shift.open_date is exist - process it [14:25:06]req_shift_open_date [14:25:06]req_shift_open_date done [14:25:06]produce_requested_data done [14:25:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104394,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:25:06]process_action_free close_receipt [14:25:06]json_value_free [14:25:06]json_value_free done [14:25:06]process_json_proto returns [14:25:06]Send response to host [14:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104394,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:25:06]free response buf [14:25:06]execute_script done [14:25:06]execute_script returns [14:25:06]free content buf [14:25:06]Sock 7.Close socket [14:25:06]Sock 7.Thread stoped [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:19]accept exits with 9 [14:28:19]New connection [14:28:19]New thread 3066592612 created [14:28:19]Thread 3066449252 joined [14:28:19]Waiting for new connection... [14:28:19] Sock 9.Parse request [14:28:19]Sock 9.Check first char [14:28:19]Sock 9.First char is OK [14:28:19]request: POST /json_proto HTTP/1.0 [14:28:19]Method: POST [14:28:19]URL: /json_proto [14:28:19]Method is POST - this is cgi request [14:28:19]url: /json_proto [14:28:19]query_string will be loaded in cgi processing [14:28:19]execute_cgi json_proto POST (null) [14:28:19]execute_cgi path=json_proto method=POST [14:28:19]POST find Content-Length [14:28:19]Host: 172.17.38.133:8080 [14:28:19]Content-Length: 678 [14:28:19]Content-Type: application/json [14:28:19] [14:28:19]POST finish read [14:28:19]Found Content-Length = 678 [14:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673946", "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" ] } } [14:28:19]execute_script... [14:28: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)673946", "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" ] } } [14:28:19]POST & json_proto [14:28:19]process_json_proto [14:28:19]json parsed OK: [14:28:19]protocol is kg_v1.0 [14:28:19]action value=close_receipt [14:28:19]process_action close_receipt [14:28:19]cmd_close_receipt [14:28:19]MH_GetDate [14:28:19]Write to MH i2c: F0 00 00 40 17 46 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: F0 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: F0 09 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: F0 09 00 40 17 00 84 DF 76 66 BD 8F 7C 64 BA [14:28:19]GetLastDocTimeStamp 1719066303 [14:28:19]current date 1719066500 [14:28:19]FM_GetShiftState [14:28:19]SAM_PROTO_GetShiftState [14:28:19]wFMCommunicate request_size=4 [14:28:19]MH_SAM_APDU [14:28:19]CAPDU: 80 13 01 00 [14:28:19]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 0E 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C7 [14:28:19]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:28:19]wFMCommunicate OK [14:28:19]SAM_PROTO_GetShiftState done [14:28:19]FM_GetShiftState done [14:28:19]opened in 1719016176 [14:28:19]opened+sec_in_day 1719102576 [14:28:19]quantity*price = 80012 [14:28:19]sum+1 = 80013 [14:28:19]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 СНО: Общий режим Чек 128 22.06.2024 14:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104395 ФПД: 157907287283580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104395&fm=157907287283580&tin=02508201610067®Number=0000000000092785&sum=80000 [14:28:20]StoreToDocumentArchive [14:28:20]shift 356 fd 104395 [14:28:20]save to /storage/0356/doc_00104395 [14:28:20]save last doc name /storage/0356/doc_00104395 to /storage/kkm_last_doc_name [14:28:20]save OK [14:28:20]Clear old archive folders... [14:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:20]tlvbuf is B6E69980 [14:28:20]SAM_PROTO_ClearQueue [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 09 00 00 [14:28:20]Write to MH i2c: E2 08 00 4E 17 80 09 00 00 00 00 00 00 D7 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [14:28:20]RAPDU: 90 00 [14:28:20]wFMCommunicate OK [14:28:20]SAM_PROTO_ClearQueue done [14:28:20]KKMCreateOFDPacket [14:28:20]OFDProtocolAddRootSTLVToBuf [14:28:20]FM_MakeSignedData [14:28:20]FM_MakeSignedData [14:28:20]SAM_PROTO_SignData [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 0D 01 02 [14:28:20]Write to MH i2c: E2 08 00 4F 17 80 0D 01 02 00 00 00 00 DF [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [14:28:20]RAPDU: 90 00 [14:28:20]wFMCommunicate OK [14:28:20]wFMCommunicate request_size=255 [14:28:20]MH_SAM_APDU [14:28: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 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 80 00 00 00 F4 03 04 00 84 DF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F [14:28:20]Write to MH i2c: E2 02 01 50 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 80 00 00 00 F4 03 04 00 84 DF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F 00 00 9E [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [14:28:20]RAPDU: 90 00 [14:28:20]wFMCommunicate OK [14:28:20]wFMCommunicate request_size=10 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 0D 02 02 05 9D A7 C4 17 7C [14:28:20]Write to MH i2c: E2 0D 00 51 17 80 0D 02 02 05 00 9D A7 C4 17 7C 00 00 87 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [14:28:20]RAPDU: 90 00 [14:28:20]wFMCommunicate OK [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 0D 03 02 [14:28:20]Write to MH i2c: E2 08 00 52 17 80 0D 03 02 00 00 00 00 E4 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 0B 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 0B 00 52 17 00 BD 7A 9C 25 27 09 6D 5F 90 00 D9 [14:28:20]RAPDU: BD 7A 9C 25 27 09 6D 5F 90 00 [14:28:20]wFMCommunicate OK [14:28:20]SAM_PROTO_SignData done [14:28:20]FM_MakeSignedData done [14:28:20]CreateOFDProtocolMessage [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 11 00 00 [14:28:20]Write to MH i2c: E2 08 00 53 17 80 11 00 00 00 00 00 00 E4 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 53 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [14:28:20]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:20]wFMCommunicate OK [14:28:20]CreateOFDProtocolMessage done [14:28:20]OFDSenderStorePacket 104395 [14:28:20]StoreOFDPacket docnum=104395 [14:28: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 B0 C2 07 01 DB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 84 DF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F 9D A7 C4 17 7C BD 7A 9C 25 27 09 6D 5F [14:28:20]CheckFolder [14:28:20]dirname=/storage/ofd_packets [14:28:20]CheckFolder done [14:28:20]ProducePacketName [14:28:20]name=ofd_packets/00104395 [14:28:20]NVStorageSaveData ofd_packets/00104395 [14:28:20]File name is /storage/ofd_packets/00104395 [14:28:20]Write 301 bytes [14:28:20]NVStorageSaveData done [14:28:20]OFDSenderStorePacket done [14:28:20]KKMCreateOFDPacket done [14:28:20]NVStorageSaveData kkm_last_timestamp [14:28:20]File name is /storage/kkm_last_timestamp [14:28:20]Write 4 bytes [14:28:20]NVStorageSaveData done [14:28:20]ExternCall_PrintAddStr [14:28:20]wPrintStart [14:28:20]Write to MH i2c: 01 00 00 54 17 6B [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 FF 0F 80 [14:28:20]RasterBufferAndPrint [14:28:20]line Счет N : (1)673946 [14:28:20]line ИНН: 02508201610067 [14:28:20]line Контрольно-Кассовый Чек [14:28:20]line ПРОДАЖА [14:28:20]line ТРК (МРК, ГНК) : 42 [14:28:20]line Товар: 2710124130 [14:28:20]line Аи-92-К-5 [14:28:20]line 12.050 * 66.40 [14:28:20]line = 800.12 [14:28:20]line НДС 12% НСП 1% [14:28:20]line > о реализуемом товаре [14:28:20]line ОКРУГЛЕНИЕ: -0.12 [14:28:20]line ИТОГО: 800.00 [14:28:20]line Внесено: 800.00 [14:28:20]line СДАЧА: 0.00 [14:28:20]line НСП 1% : 7.08 [14:28:20]line НДС 12% : 84.97 [14:28:20]line Наличными: 800.00 [14:28:20]line Безнал.: 0.00 [14:28:20]line Место: АЗС № 120 "Партнер Нефть" [14:28:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:28:20]line СНО: Общий режим [14:28:20]line Чек 128 22.06.2024 14:28 [14:28:20]line Смена: 356 ФФД: 1.0 [14:28:20]line ЗНМ: 0300000164 [14:28:20]line РНМ: 0000000000092785 [14:28:20]line Версия ККМ: 001 [14:28:20]line ФМ: 0000000000875093 [14:28:20]line ФД: 104395 [14:28:20]line ФПД: 157907287283580 [14:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104395&fm=157907287283580&tin=02508201610067®Number=0000000000092785&sum=80000 [14:28:21]OFD Sender: Processing packet 104395 [packets to send 17, broken 16] [14:28:21]ProducePacketName [14:28:21]name=ofd_packets/00104395 [14:28:21]OFD Sender: To server: pG, [14:28:21]CommunicateWithHost lk.salyk.kg:30040 [14:28:21]ConnectInit lk.salyk.kg [14:28:21]written 0, free lines is 4095 [14:28:21]Write to MH i2c: 01 00 00 7F 17 96 [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: 01 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: 01 07 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 D4 0C 7D [14:28:21]RasterBufferAndPrint [14:28:21]line [14:28:21]line [14:28:21]line [14:28:21]line [14:28:21]line [14:28:21]written 0, free lines is 3288 [14:28:21]MH_Cut [14:28:21]Write to MH i2c: D1 01 00 86 17 01 6F [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: D1 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: D1 01 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: D1 01 00 86 17 00 6E [14:28:21]Write to MH i2c: 01 00 00 87 17 9E [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:22]*** Cut start [14:28:22]*** Partial cut [14:28:22]*** CUTSNS_PIN = 1 [14:28:22]*** CUTSNS_PIN = 0 [14:28:22]*** Brake cut motor [14:28:23]Read from MH i2c: 01 [14:28:23]MH_I2C_Read... [14:28:23]*** Stop cut motor [14:28:23]Read from MH i2c: 01 07 00 [14:28:23]MH_I2C_Read... [14:28:23]*** Cut end [14:28:23]Read from MH i2c: 01 07 00 87 17 00 00 00 00 00 FF 0F B3 [14:28:23]process_action close_receipt done [14:28:23]requested_data is exist [14:28:23]produce_requested_data [14:28:23]requested_item fm.sn is exist - process it [14:28:23]wFMCommunicate request_size=4 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 11 00 00 [14:28:23]Write to MH i2c: E2 08 00 88 17 80 11 00 00 00 00 00 00 19 [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 17 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 17 00 88 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [14:28:23]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:23]wFMCommunicate OK [14:28:23]requested_item fd.num is exist - process it [14:28:23]SAM_PROTO_GetFieldsCounters [14:28:23]wFMCommunicate request_size=4 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 13 00 00 [14:28:23]Write to MH i2c: E2 08 00 89 17 80 13 00 00 00 00 00 00 1C [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 62 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 62 00 89 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 8B [14:28: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 CB 97 01 00 0E 04 04 00 64 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:28:23]wFMCommunicate OK [14:28:23]SAM_PROTO_GetFieldsCounters done [14:28:23]requested_item shift.num is exist - process it [14:28:23]requested_item shift.opened is exist - process it [14:28:23]req_shift_opened [14:28:23]FM_GetShiftState [14:28:23]SAM_PROTO_GetShiftState [14:28:23]wFMCommunicate request_size=4 [14:28:23]MH_SAM_APDU [14:28:23]CAPDU: 80 13 01 00 [14:28:23]Write to MH i2c: E2 08 00 8A 17 80 13 01 00 00 00 00 00 1E [14:28:23]Write i2c OK [14:28:23]MH_I2C_Read... [14:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:23]Read from MH i2c: E2 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 0E 00 [14:28:23]MH_I2C_Read... [14:28:23]Read from MH i2c: E2 0E 00 8A 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 10 [14:28:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:28:23]wFMCommunicate OK [14:28:23]SAM_PROTO_GetShiftState done [14:28:23]FM_GetShiftState done [14:28:23]req_shift_opened done [14:28:23]requested_item shift.open_date is exist - process it [14:28:23]req_shift_open_date [14:28:23]req_shift_open_date done [14:28:23]produce_requested_data done [14:28:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104395,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:28:23]process_action_free close_receipt [14:28:23]json_value_free [14:28:23]json_value_free done [14:28:23]process_json_proto returns [14:28:23]Send response to host [14:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104395,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:28:23]free response buf [14:28:23]execute_script done [14:28:23]execute_script returns [14:28:23]free content buf [14:28:23]Sock 9.Close socket [14:28:23]Sock 9.Thread stoped [14:30:16]accept exits with 7 [14:30:16]New connection [14:30:16]New thread 3066449252 created [14:30:16]Thread 3066592612 joined [14:30:16]Waiting for new connection... [14:30:16] Sock 7.Parse request [14:30:16]Sock 7.Check first char [14:30:16]Sock 7.First char is OK [14:30:16]request: POST /json_proto HTTP/1.0 [14:30:16]Method: POST [14:30:16]URL: /json_proto [14:30:16]Method is POST - this is cgi request [14:30:16]url: /json_proto [14:30:16]query_string will be loaded in cgi processing [14:30:16]execute_cgi json_proto POST (null) [14:30:16]execute_cgi path=json_proto method=POST [14:30:16]POST find Content-Length [14:30:16]Host: 172.17.38.133:8080 [14:30:16]Content-Length: 1169 [14:30:16]Content-Type: application/json [14:30:16] [14:30:16]POST finish read [14:30:16]Found Content-Length = 1169 [14:30:16]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673947\u000A22.06.2024 14:07\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\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:16]execute_script... [14:30:16]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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673947\u000A22.06.2024 14:07\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\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:16]POST & json_proto [14:30:16]process_json_proto [14:30:16]json parsed OK: [14:30:16]protocol is kg_v1.0 [14:30:16]action value=print_text [14:30:16]process_action print_text [14:30:16]cmd_print_text [14:30:16]ExternCall_PrintAddStr [14:30:16]wPrintStart [14:30:16]Write to MH i2c: 01 00 00 8B 17 A2 [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 07 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 07 00 8B 17 00 00 00 00 00 FF 0F B7 [14:30:16]RasterBufferAndPrint [14:30:16]line *****ТОВАРНЫЙ ЧЕК***** [14:30:16]line АЗС 120 [14:30:16]line Партнер нефть [14:30:16]line 02508201610067 [14:30:16]line Кассир : Байбугуева Г. [14:30:16]line Счет N : (1)673947 [14:30:16]line 22.06.2024 14:07 [14:30:16]line ПРОДАЖА [14:30:16]line ТРК (МРК, ГНК): 42 [14:30:16]line Вид ГСМ : 2710124130 [14:30:16]line Аи-92-К-5 [14:30:16]line 15.070 x 66.40 [14:30:16]line ИТОГ: 1000.65 [14:30:16]line Тип оплаты: Талоны: ТК ГПНА Online [14:30:16]line 30101507 [14:30:16]line ______________________ [14:30:16]line (подпись) [14:30:16]written 0, free lines is 4095 [14:30:16]Write to MH i2c: 01 00 00 9F 17 B6 [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 07 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 10 0E DB [14:30:16]RasterBufferAndPrint [14:30:16]line [14:30:16]line [14:30:16]line [14:30:16]line [14:30:16]line [14:30:16]written 0, free lines is 3601 [14:30:16]MH_Cut [14:30:16]Write to MH i2c: D1 01 00 A6 17 01 8F [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: D1 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: D1 01 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: D1 01 00 A6 17 00 8E [14:30:16]Write to MH i2c: 01 00 00 A7 17 BE [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:17]*** Cut start [14:30:17]*** Partial cut [14:30:17]*** CUTSNS_PIN = 1 [14:30:17]*** CUTSNS_PIN = 0 [14:30:17]*** Brake cut motor [14:30:17]Read from MH i2c: 01 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 07 00 [14:30:17]MH_I2C_Read... [14:30:17]*** Stop cut motor [14:30:17]*** Cut end [14:30:17]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [14:30:17]process_action print_text done [14:30:17]requested_data is exist [14:30:17]produce_requested_data [14:30:17]requested_item fm.sn is exist - process it [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 11 00 00 [14:30:17]Write to MH i2c: E2 08 00 A8 17 80 11 00 00 00 00 00 00 39 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 17 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 17 00 A8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [14:30:17]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:17]wFMCommunicate OK [14:30:17]requested_item fd.num is exist - process it [14:30:17]SAM_PROTO_GetFieldsCounters [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 13 00 00 [14:30:17]Write to MH i2c: E2 08 00 A9 17 80 13 00 00 00 00 00 00 3C [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 62 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 62 00 A9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 AB [14:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_GetFieldsCounters done [14:30:17]requested_item shift.num is exist - process it [14:30:17]requested_item shift.opened is exist - process it [14:30:17]req_shift_opened [14:30:17]FM_GetShiftState [14:30:17]SAM_PROTO_GetShiftState [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 13 01 00 [14:30:17]Write to MH i2c: E2 08 00 AA 17 80 13 01 00 00 00 00 00 3E [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 AA 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 30 [14:30:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_GetShiftState done [14:30:17]FM_GetShiftState done [14:30:17]req_shift_opened done [14:30:17]requested_item shift.open_date is exist - process it [14:30:17]req_shift_open_date [14:30:17]req_shift_open_date done [14:30:17]produce_requested_data done [14:30:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104395,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:30:17]process_action_free print_text [14:30:17]json_value_free [14:30:17]json_value_free done [14:30:17]process_json_proto returns [14:30:17]Send response to host [14:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104395,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:30:17]free response buf [14:30:17]execute_script done [14:30:17]execute_script returns [14:30:17]free content buf [14:30:17]Sock 7.Close socket [14:30:17]Sock 7.Thread stoped [14:30:23]accept exits with 9 [14:30:23]New connection [14:30:23]New thread 3066592612 created [14:30:23]Thread 3066449252 joined [14:30:23]Waiting for new connection... [14:30:23] Sock 9.Parse request [14:30:23]Sock 9.Check first char [14:30:23]Sock 9.First char is OK [14:30:23]request: POST /json_proto HTTP/1.0 [14:30:23]Method: POST [14:30:23]URL: /json_proto [14:30:23]Method is POST - this is cgi request [14:30:23]url: /json_proto [14:30:23]query_string will be loaded in cgi processing [14:30:23]execute_cgi json_proto POST (null) [14:30:23]execute_cgi path=json_proto method=POST [14:30:23]POST find Content-Length [14:30:23]Host: 172.17.38.133:8080 [14:30:23]Content-Length: 811 [14:30:23]Content-Type: application/json [14:30:23] [14:30:23]POST finish read [14:30:23]Found Content-Length = 811 [14:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673943", "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" : 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" ] } } [14:30:23]execute_script... [14:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673943", "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" : 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" ] } } [14:30:23]POST & json_proto [14:30:23]process_json_proto [14:30:23]json parsed OK: [14:30:23]protocol is kg_v1.0 [14:30:23]action value=close_receipt [14:30:23]process_action close_receipt [14:30:23]cmd_close_receipt [14:30:23]MH_GetDate [14:30:23]Write to MH i2c: F0 00 00 AB 17 B1 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: F0 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: F0 09 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: F0 09 00 AB 17 00 01 E0 76 66 BD 8F 7C 64 A3 [14:30:23]GetLastDocTimeStamp 1719066500 [14:30:23]current date 1719066625 [14:30:23]FM_GetShiftState [14:30:23]SAM_PROTO_GetShiftState [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 13 01 00 [14:30:23]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0E 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 32 [14:30:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:23]wFMCommunicate OK [14:30:23]SAM_PROTO_GetShiftState done [14:30:23]FM_GetShiftState done [14:30:23]opened in 1719016176 [14:30:23]opened+sec_in_day 1719102576 [14:30:23]quantity*price = 1000042 [14:30:23]sum+1 = 1000043 [14:30:23]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 СНО: Общий режим Чек 129 22.06.2024 14:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104396 ФПД: 242490341825936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104396&fm=242490341825936&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:30:25]StoreToDocumentArchive [14:30:25]shift 356 fd 104396 [14:30:25]save to /storage/0356/doc_00104396 [14:30:25]save last doc name /storage/0356/doc_00104396 to /storage/kkm_last_doc_name [14:30:25]save OK [14:30:25]Clear old archive folders... [14:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:30:25]tlvbuf is B6E50400 [14:30:25]SAM_PROTO_ClearQueue [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 09 00 00 [14:30:25]Write to MH i2c: E2 08 00 B9 17 80 09 00 00 00 00 00 00 42 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_ClearQueue done [14:30:25]KKMCreateOFDPacket [14:30:25]OFDProtocolAddRootSTLVToBuf [14:30:25]FM_MakeSignedData [14:30:25]FM_MakeSignedData [14:30:25]SAM_PROTO_SignData [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 01 02 [14:30:25]Write to MH i2c: E2 08 00 BA 17 80 0D 01 02 00 00 00 00 4A [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=255 [14:30:25]MH_SAM_APDU [14:30:25]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 81 00 00 00 F4 03 04 00 01 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:30:25]Write to MH i2c: E2 02 01 BB 17 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 81 00 00 00 F4 03 04 00 01 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 82 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=11 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 02 02 06 DC 8B 2E AF 9D 90 [14:30:25]Write to MH i2c: E2 0E 00 BC 17 80 0D 02 02 06 00 DC 8B 2E AF 9D 90 00 00 CA [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 03 02 [14:30:25]Write to MH i2c: E2 08 00 BD 17 80 0D 03 02 00 00 00 00 4F [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0B 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0B 00 BD 17 00 F0 35 72 C3 67 A9 8D A2 90 00 E9 [14:30:25]RAPDU: F0 35 72 C3 67 A9 8D A2 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_SignData done [14:30:25]FM_MakeSignedData done [14:30:25]CreateOFDProtocolMessage [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 11 00 00 [14:30:25]Write to MH i2c: E2 08 00 BE 17 80 11 00 00 00 00 00 00 4F [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 BE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [14: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 [14:30:25]wFMCommunicate OK [14:30:25]CreateOFDProtocolMessage done [14:30:25]OFDSenderStorePacket 104396 [14:30:25]StoreOFDPacket docnum=104396 [14: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 10 01 00 00 A1 D8 08 01 C8 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 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 81 00 00 00 F4 03 04 00 01 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DC 8B 2E AF 9D 90 F0 35 72 C3 67 A9 8D A2 [14:30:25]CheckFolder [14:30:25]dirname=/storage/ofd_packets [14:30:25]CheckFolder done [14:30:25]ProducePacketName [14:30:25]name=ofd_packets/00104396 [14:30:25]NVStorageSaveData ofd_packets/00104396 [14:30:25]File name is /storage/ofd_packets/00104396 [14:30:25]Write 302 bytes [14:30:25]NVStorageSaveData done [14:30:25]OFDSenderStorePacket done [14:30:25]KKMCreateOFDPacket done [14:30:25]NVStorageSaveData kkm_last_timestamp [14:30:25]File name is /storage/kkm_last_timestamp [14:30:25]Write 4 bytes [14:30:25]NVStorageSaveData done [14:30:25]ExternCall_PrintAddStr [14:30:25]wPrintStart [14:30:25]Write to MH i2c: 01 00 00 BF 17 D6 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 07 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [14:30:25]RasterBufferAndPrint [14:30:25]line Счет N : (1)673943 [14:30:25]line ИНН: 02508201610067 [14:30:25]line Контрольно-Кассовый Чек [14:30:25]line ПРОДАЖА [14:30:25]line ТРК (МРК, ГНК) : 21 [14:30:25]line Товар: 2710194210 [14:30:25]line ДТ(л)-К-5 [14:30:25]line 137.180 * 72.90 [14:30:25]line = 10000.42 [14:30:25]line НДС 12% НСП 1% [14:30:25]line > о реализуемом товаре [14:30:25]line ИТОГО: 10000.42 [14:30:25]line НСП 1% : 88.50 [14:30:25]line НДС 12% : 1061.99 [14:30:25]line Наличными: 0.00 [14:30:25]line Безнал.: 10000.42 [14:30:25]line Место: АЗС № 120 "Партнер Нефть" [14:30:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:30:25]line СНО: Общий режим [14:30:25]line Чек 129 22.06.2024 14:30 [14:30:25]line Смена: 356 ФФД: 1.0 [14:30:25]line ЗНМ: 0300000164 [14:30:25]line РНМ: 0000000000092785 [14:30:25]line Версия ККМ: 001 [14:30:25]line Платежная система: O! деньги [14:30:25]line ФМ: 0000000000875093 [14:30:25]line ФД: 104396 [14:30:25]line ФПД: 242490341825936 [14:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104396&fm=242490341825936&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:30:25]written 0, free lines is 4095 [14:30:26]Write to MH i2c: 01 00 00 E9 17 00 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 E9 17 00 00 00 00 00 E4 0C F7 [14:30:26]RasterBufferAndPrint [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]written 0, free lines is 3304 [14:30:26]MH_Cut [14:30:26]Write to MH i2c: D1 01 00 F0 17 01 D9 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 01 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 01 00 F0 17 00 D8 [14:30:26]Write to MH i2c: 01 00 00 F1 17 08 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:27]*** Cut start [14:30:27]*** Partial cut [14:30:27]*** CUTSNS_PIN = 1 [14:30:27]*** CUTSNS_PIN = 0 [14:30:27]*** Brake cut motor [14:30:27]Read from MH i2c: 01 [14:30:27]MH_I2C_Read... [14:30:27]*** Stop cut motor [14:30:27]*** Cut end [14:30:27]Read from MH i2c: 01 07 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [14:30:27]process_action close_receipt done [14:30:27]requested_data is exist [14:30:27]produce_requested_data [14:30:27]requested_item fm.sn is exist - process it [14:30:27]wFMCommunicate request_size=4 [14:30:27]MH_SAM_APDU [14:30:27]CAPDU: 80 11 00 00 [14:30:27]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:27]Read from MH i2c: E2 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: E2 17 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [14:30:27]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:27]wFMCommunicate OK [14:30:27]requested_item fd.num is exist - process it [14:30:27]SAM_PROTO_GetFieldsCounters [14:30:27]wFMCommunicate request_size=4 [14:30:27]MH_SAM_APDU [14:30:27]CAPDU: 80 13 00 00 [14:30:27]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 62 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 62 00 F3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F9 [14: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 CC 97 01 00 0E 04 04 00 64 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 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetFieldsCounters done [14:30:28]requested_item shift.num is exist - process it [14:30:28]requested_item shift.opened is exist - process it [14:30:28]req_shift_opened [14:30:28]FM_GetShiftState [14:30:28]SAM_PROTO_GetShiftState [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 13 01 00 [14:30:28]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7A [14:30:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetShiftState done [14:30:28]FM_GetShiftState done [14:30:28]req_shift_opened done [14:30:28]requested_item shift.open_date is exist - process it [14:30:28]req_shift_open_date [14:30:28]req_shift_open_date done [14:30:28]produce_requested_data done [14:30:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104396,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:30:28]process_action_free close_receipt [14:30:28]json_value_free [14:30:28]json_value_free done [14:30:28]process_json_proto returns [14:30:28]Send response to host [14:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104396,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:30:28]free response buf [14:30:28]execute_script done [14:30:28]execute_script returns [14:30:28]free content buf [14:30:28]Sock 9.Close socket [14:30:28]Sock 9.Thread stoped [14:30:28]accept exits with 7 [14:30:28]New connection [14:30:28]New thread 3066449252 created [14:30:28]Thread 3066592612 joined [14:30:28]Waiting for new connection... [14:30:28] Sock 7.Parse request [14:30:28]Sock 7.Check first char [14:30:28]Sock 7.First char is OK [14:30:28]request: POST /json_proto HTTP/1.0 [14:30:28]Method: POST [14:30:28]URL: /json_proto [14:30:28]Method is POST - this is cgi request [14:30:28]url: /json_proto [14:30:28]query_string will be loaded in cgi processing [14:30:28]execute_cgi json_proto POST (null) [14:30:28]execute_cgi path=json_proto method=POST [14:30:28]POST find Content-Length [14:30:28]Host: 172.17.38.133:8080 [14:30:28]Content-Length: 811 [14:30:28]Content-Type: application/json [14:30:28] [14:30:28]POST finish read [14:30:28]Found Content-Length = 811 [14:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673942", "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" ] } } [14:30:28]execute_script... [14:30: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)673942", "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" ] } } [14:30:28]POST & json_proto [14:30:28]process_json_proto [14:30:28]json parsed OK: [14:30:28]protocol is kg_v1.0 [14:30:28]action value=close_receipt [14:30:28]process_action close_receipt [14:30:28]cmd_close_receipt [14:30:28]MH_GetDate [14:30:28]Write to MH i2c: F0 00 00 F5 17 FB [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 09 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 09 00 F5 17 00 05 E0 76 66 BD 8F 7C 64 F1 [14:30:28]GetLastDocTimeStamp 1719066625 [14:30:28]current date 1719066629 [14:30:28]FM_GetShiftState [14:30:28]SAM_PROTO_GetShiftState [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 13 01 00 [14:30:28]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7C [14:30:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetShiftState done [14:30:28]FM_GetShiftState done [14:30:28]opened in 1719016176 [14:30:28]opened+sec_in_day 1719102576 [14:30:28]quantity*price = 1000042 [14:30:28]sum+1 = 1000043 [14:30:28]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 СНО: Общий режим Чек 130 22.06.2024 14:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104397 ФПД: 169943675466597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143030&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104397&fm=169943675466597&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:30:29]StoreToDocumentArchive [14:30:29]shift 356 fd 104397 [14:30:29]save to /storage/0356/doc_00104397 [14:30:29]save last doc name /storage/0356/doc_00104397 to /storage/kkm_last_doc_name [14:30:29]save OK [14:30:29]Clear old archive folders... [14:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:30:29]tlvbuf is 00FDC820 [14:30:29]SAM_PROTO_ClearQueue [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 09 00 00 [14:30:29]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [14:30:29]RAPDU: 90 00 [14:30:29]wFMCommunicate OK [14:30:29]SAM_PROTO_ClearQueue done [14:30:29]KKMCreateOFDPacket [14:30:29]OFDProtocolAddRootSTLVToBuf [14:30:29]FM_MakeSignedData [14:30:29]FM_MakeSignedData [14:30:29]SAM_PROTO_SignData [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 0D 01 02 [14:30:29]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [14:30:29]RAPDU: 90 00 [14:30:29]wFMCommunicate OK [14:30:29]wFMCommunicate request_size=255 [14:30:29]MH_SAM_APDU [14:30: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 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 82 00 00 00 F4 03 04 00 06 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:30:29]Write to MH i2c: E2 02 01 05 18 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 82 00 00 00 F4 03 04 00 06 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 D4 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [14:30:30]RAPDU: 90 00 [14:30:30]wFMCommunicate OK [14:30:30]wFMCommunicate request_size=11 [14:30:30]MH_SAM_APDU [14:30:30]CAPDU: 80 0D 02 02 06 9A 90 18 68 73 65 [14:30:30]Write to MH i2c: E2 0E 00 06 18 80 0D 02 02 06 00 9A 90 18 68 73 65 00 00 26 [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [14:30:30]RAPDU: 90 00 [14:30:30]wFMCommunicate OK [14:30:30]wFMCommunicate request_size=4 [14:30:30]MH_SAM_APDU [14:30:30]CAPDU: 80 0D 03 02 [14:30:30]Write to MH i2c: E2 08 00 07 18 80 0D 03 02 00 00 00 00 9A [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 0B 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 0B 00 07 18 00 86 5F 47 12 C7 04 6F 27 90 00 3A [14:30:30]RAPDU: 86 5F 47 12 C7 04 6F 27 90 00 [14:30:30]wFMCommunicate OK [14:30:30]SAM_PROTO_SignData done [14:30:30]FM_MakeSignedData done [14:30:30]CreateOFDProtocolMessage [14:30:30]wFMCommunicate request_size=4 [14:30:30]MH_SAM_APDU [14:30:30]CAPDU: 80 11 00 00 [14:30:30]Write to MH i2c: E2 08 00 08 18 80 11 00 00 00 00 00 00 9A [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 17 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 17 00 08 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [14:30: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:30:30]wFMCommunicate OK [14:30:30]CreateOFDProtocolMessage done [14:30:30]OFDSenderStorePacket 104397 [14:30:30]StoreOFDPacket docnum=104397 [14:30: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 81 73 08 01 69 A7 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 82 00 00 00 F4 03 04 00 06 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A 90 18 68 73 65 86 5F 47 12 C7 04 6F 27 [14:30:30]CheckFolder [14:30:30]dirname=/storage/ofd_packets [14:30:30]CheckFolder done [14:30:30]ProducePacketName [14:30:30]name=ofd_packets/00104397 [14:30:30]NVStorageSaveData ofd_packets/00104397 [14:30:30]File name is /storage/ofd_packets/00104397 [14:30:30]Write 302 bytes [14:30:30]NVStorageSaveData done [14:30:30]OFDSenderStorePacket done [14:30:30]KKMCreateOFDPacket done [14:30:30]NVStorageSaveData kkm_last_timestamp [14:30:30]File name is /storage/kkm_last_timestamp [14:30:30]Write 4 bytes [14:30:30]NVStorageSaveData done [14:30:30]ExternCall_PrintAddStr [14:30:30]wPrintStart [14:30:30]Write to MH i2c: 01 00 00 09 18 21 [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [14:30:30]RasterBufferAndPrint [14:30:30]line Счет N : (1)673942 [14:30:30]line ИНН: 02508201610067 [14:30:30]line Контрольно-Кассовый Чек [14:30:30]line ПРОДАЖА [14:30:30]line ТРК (МРК, ГНК) : 11 [14:30:30]line Товар: 2710194210 [14:30:30]line ДТ(л)-К-5 [14:30:30]line 137.180 * 72.90 [14:30:30]line = 10000.42 [14:30:30]line НДС 12% НСП 1% [14:30:30]line > о реализуемом товаре [14:30:30]line ИТОГО: 10000.42 [14:30:30]line НСП 1% : 88.50 [14:30:30]line НДС 12% : 1061.99 [14:30:30]line Наличными: 0.00 [14:30:30]line Безнал.: 10000.42 [14:30:30]line Место: АЗС № 120 "Партнер Нефть" [14:30:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:30:30]line СНО: Общий режим [14:30:30]line Чек 130 22.06.2024 14:30 [14:30:30]line Смена: 356 ФФД: 1.0 [14:30:30]line ЗНМ: 0300000164 [14:30:30]line РНМ: 0000000000092785 [14:30:30]line Версия ККМ: 001 [14:30:30]line Платежная система: O! деньги [14:30:30]line ФМ: 0000000000875093 [14:30:30]line ФД: 104397 [14:30:30]line ФПД: 169943675466597 [14:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143030&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104397&fm=169943675466597&tin=02508201610067®Number=0000000000092785&sum=1000042 [14:30:30]written 0, free lines is 4095 [14:30:31]Write to MH i2c: 01 00 00 33 18 4B [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: 01 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: 01 07 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 E7 0C 45 [14:30:31]RasterBufferAndPrint [14:30:31]line [14:30:31]line [14:30:31]line [14:30:31]line [14:30:31]line [14:30:31]written 0, free lines is 3312 [14:30:31]MH_Cut [14:30:31]Write to MH i2c: D1 01 00 3A 18 01 24 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: D1 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: D1 01 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: D1 01 00 3A 18 00 23 [14:30:31]Write to MH i2c: 01 00 00 3B 18 53 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]*** Cut start [14:30:31]*** Partial cut [14:30:31]*** CUTSNS_PIN = 1 [14:30:31]*** CUTSNS_PIN = 0 [14:30:32]*** Brake cut motor [14:30:32]Read from MH i2c: 01 [14:30:32]MH_I2C_Read... [14:30:32]*** Stop cut motor [14:30:32]*** Cut end [14:30:32]Read from MH i2c: 01 07 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [14:30:32]process_action close_receipt done [14:30:32]requested_data is exist [14:30:32]produce_requested_data [14:30:32]requested_item fm.sn is exist - process it [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 11 00 00 [14:30:32]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 17 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [14:30:32]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:32]wFMCommunicate OK [14:30:32]requested_item fd.num is exist - process it [14:30:32]SAM_PROTO_GetFieldsCounters [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 00 00 [14:30:32]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 62 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 48 [14:30: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 CD 97 01 00 0E 04 04 00 64 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 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetFieldsCounters done [14:30:32]requested_item shift.num is exist - process it [14:30:32]requested_item shift.opened is exist - process it [14:30:32]req_shift_opened [14:30:32]FM_GetShiftState [14:30:32]SAM_PROTO_GetShiftState [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 01 00 [14:30:32]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [14:30:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetShiftState done [14:30:32]FM_GetShiftState done [14:30:32]req_shift_opened done [14:30:32]requested_item shift.open_date is exist - process it [14:30:32]req_shift_open_date [14:30:32]req_shift_open_date done [14:30:32]produce_requested_data done [14:30:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104397,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:30:32]process_action_free close_receipt [14:30:32]json_value_free [14:30:32]json_value_free done [14:30:32]process_json_proto returns [14:30:32]Send response to host [14:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104397,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:30:32]free response buf [14:30:32]execute_script done [14:30:32]execute_script returns [14:30:32]free content buf [14:30:32]Sock 7.Close socket [14:30:32]Sock 7.Thread stoped [14:30:34]ConnectInit Can't connect to host [14:30:34]CommunicateWithHost connect error [14:30:34]CommunicateWithHost err = -1 [14:30:34]OFD Sender: Server communicate error [14:30:34]OFD Sender: Processing packet 104395 [packets to send 19, broken 16] [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00104395 [14:30:34]OFD Sender: To server: pG, [14:30:34]CommunicateWithHost lk.salyk.kg:30040 [14:30:34]ConnectInit lk.salyk.kg [14:30:34]Connected sock=7 [14:30: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 B0 C2 07 01 DB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 84 DF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F 9D A7 C4 17 7C BD 7A 9C 25 27 09 6D 5F [14:30: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 AD 5D 47 00 14 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 97 01 00 F4 03 04 00 88 86 76 66 B6 04 01 00 00 A1 7E 0B 39 E5 C8 4B 0F [14:30:34]CommunicateWithHost err = 0 [14:30:34]CheckOFDResponse [14:30:34]1017 (14) - 77093643461234 [14:30:34]1041 (16) - 0000000000875093 [14:30:34]1040 (4) - 104395 [14:30:34]1012 (4) - 22.06.2024 08:08 [14:30:34]1206 (1) - 0 [14:30:34]OFD Sender: Remove packet 104395 [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00104395 [14:30:34]NVStorageDeleteData [14:30:35]OFD Sender: Processing packet 104396 [packets to send 18, broken 16] [14:30:35]ProducePacketName [14:30:35]name=ofd_packets/00104396 [14:30:35]OFD Sender: To server: pG, [14:30:35]CommunicateWithHost lk.salyk.kg:30040 [14:30:35]ConnectInit lk.salyk.kg [14:30:35]Connected sock=7 [14:30: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 A1 D8 08 01 C8 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 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 81 00 00 00 F4 03 04 00 01 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 DC 8B 2E AF 9D 90 F0 35 72 C3 67 A9 8D A2 [14:30: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 ED 77 47 00 DE 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 97 01 00 F4 03 04 00 89 86 76 66 B6 04 01 00 00 E7 AB 8F D1 2B DC BF CC [14:30:35]CommunicateWithHost err = 0 [14:30:35]CheckOFDResponse [14:30:35]1017 (14) - 77093643461234 [14:30:35]1041 (16) - 0000000000875093 [14:30:35]1040 (4) - 104396 [14:30:35]1012 (4) - 22.06.2024 08:08 [14:30:35]1206 (1) - 0 [14:30:35]OFD Sender: Remove packet 104396 [14:30:35]ProducePacketName [14:30:35]name=ofd_packets/00104396 [14:30:35]NVStorageDeleteData [14:30:36]OFD Sender: Processing packet 104397 [packets to send 17, broken 16] [14:30:36]ProducePacketName [14:30:36]name=ofd_packets/00104397 [14:30:36]OFD Sender: To server: pG, [14:30:36]CommunicateWithHost lk.salyk.kg:30040 [14:30:36]ConnectInit lk.salyk.kg [14:30:36]Connected sock=7 [14:30: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 81 73 08 01 69 A7 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 82 00 00 00 F4 03 04 00 06 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A 90 18 68 73 65 86 5F 47 12 C7 04 6F 27 [14:30: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 F5 47 00 7F 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 CD 97 01 00 F4 03 04 00 8A 86 76 66 B6 04 01 00 00 74 09 A1 BB 04 E9 BB 52 [14:30:36]CommunicateWithHost err = 0 [14:30:36]CheckOFDResponse [14:30:36]1017 (14) - 77093643461234 [14:30:36]1041 (16) - 0000000000875093 [14:30:36]1040 (4) - 104397 [14:30:36]1012 (4) - 22.06.2024 08:08 [14:30:36]1206 (1) - 0 [14:30:36]OFD Sender: Remove packet 104397 [14:30:36]ProducePacketName [14:30:36]name=ofd_packets/00104397 [14:30:36]NVStorageDeleteData [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:55]accept exits with 11 [14:30:55]New connection [14:30:55]New thread 3066592612 created [14:30:55]Thread 3066449252 joined [14:30:55]Waiting for new connection... [14:30:55] Sock 11.Parse request [14:30:55]Sock 11.Check first char [14:30:55]Sock 11.First char is OK [14:30:55]request: POST /json_proto HTTP/1.0 [14:30:55]Method: POST [14:30:55]URL: /json_proto [14:30:55]Method is POST - this is cgi request [14:30:55]url: /json_proto [14:30:55]query_string will be loaded in cgi processing [14:30:55]execute_cgi json_proto POST (null) [14:30:55]execute_cgi path=json_proto method=POST [14:30:55]POST find Content-Length [14:30:55]Host: 172.17.38.133:8080 [14:30:55]Content-Length: 677 [14:30:55]Content-Type: application/json [14:30:55] [14:30:55]POST finish read [14:30:55]Found Content-Length = 677 [14:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673948", "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:30:55]execute_script... [14:30: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)673948", "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:30:55]POST & json_proto [14:30:55]process_json_proto [14:30:55]json parsed OK: [14:30:55]protocol is kg_v1.0 [14:30:55]action value=close_receipt [14:30:55]process_action close_receipt [14:30:55]cmd_close_receipt [14:30:55]MH_GetDate [14:30:55]Write to MH i2c: F0 00 00 3F 18 46 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: F0 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: F0 09 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: F0 09 00 3F 18 00 20 E0 76 66 BD 8F 7C 64 57 [14:30:55]GetLastDocTimeStamp 1719066630 [14:30:55]current date 1719066656 [14:30:55]FM_GetShiftState [14:30:55]SAM_PROTO_GetShiftState [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 13 01 00 [14:30:55]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C7 [14:30:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_GetShiftState done [14:30:55]FM_GetShiftState done [14:30:55]opened in 1719016176 [14:30:55]opened+sec_in_day 1719102576 [14:30:55]quantity*price = 50065 [14:30:55]sum+1 = 50067 [14:30:55]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 СНО: Общий режим Чек 131 22.06.2024 14:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104398 ФПД: 105410569837221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143056&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104398&fm=105410569837221&tin=02508201610067®Number=0000000000092785&sum=50000 [14:30:56]StoreToDocumentArchive [14:30:56]shift 356 fd 104398 [14:30:56]save to /storage/0356/doc_00104398 [14:30:56]save last doc name /storage/0356/doc_00104398 to /storage/kkm_last_doc_name [14:30:56]save OK [14:30:56]Clear old archive folders... [14:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:56]tlvbuf is B6E501E0 [14:30:56]SAM_PROTO_ClearQueue [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 09 00 00 [14:30:56]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_ClearQueue done [14:30:56]KKMCreateOFDPacket [14:30:56]OFDProtocolAddRootSTLVToBuf [14:30:56]FM_MakeSignedData [14:30:56]FM_MakeSignedData [14:30:56]SAM_PROTO_SignData [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 01 02 [14:30:56]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=255 [14:30:56]MH_SAM_APDU [14:30: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 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 83 00 00 00 F4 03 04 00 20 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F [14:30:56]Write to MH i2c: E2 02 01 4F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 83 00 00 00 F4 03 04 00 20 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F 00 00 22 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=10 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 02 02 05 DE CF 92 1A A5 [14:30:56]Write to MH i2c: E2 0D 00 50 18 80 0D 02 02 05 00 DE CF 92 1A A5 00 00 EA [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 03 02 [14:30:56]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 51 18 00 A6 8B 8B 82 FB 3A FA F7 90 00 49 [14:30:56]RAPDU: A6 8B 8B 82 FB 3A FA F7 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_SignData done [14:30:56]FM_MakeSignedData done [14:30:56]CreateOFDProtocolMessage [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 11 00 00 [14:30:56]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [14:30:56]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:56]wFMCommunicate OK [14:30:56]CreateOFDProtocolMessage done [14:30:56]OFDSenderStorePacket 104398 [14:30:56]StoreOFDPacket docnum=104398 [14:30: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 03 44 07 01 84 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 83 00 00 00 F4 03 04 00 20 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F DE CF 92 1A A5 A6 8B 8B 82 FB 3A FA F7 [14:30:56]CheckFolder [14:30:56]dirname=/storage/ofd_packets [14:30:56]CheckFolder done [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00104398 [14:30:56]NVStorageSaveData ofd_packets/00104398 [14:30:56]File name is /storage/ofd_packets/00104398 [14:30:56]Write 301 bytes [14:30:56]NVStorageSaveData done [14:30:56]OFDSenderStorePacket done [14:30:56]KKMCreateOFDPacket done [14:30:56]NVStorageSaveData kkm_last_timestamp [14:30:56]File name is /storage/kkm_last_timestamp [14:30:56]Write 4 bytes [14:30:56]NVStorageSaveData done [14:30:56]ExternCall_PrintAddStr [14:30:56]wPrintStart [14:30:56]Write to MH i2c: 01 00 00 53 18 6B [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [14:30:56]RasterBufferAndPrint [14:30:56]line Счет N : (1)673948 [14:30:56]line ИНН: 02508201610067 [14:30:56]line Контрольно-Кассовый Чек [14:30:56]line ПРОДАЖА [14:30:56]line ТРК (МРК, ГНК) : 32 [14:30:56]line Товар: 2710124130 [14:30:56]line Аи-92-К-5 [14:30:56]line 7.540 * 66.40 [14:30:56]line = 500.66 [14:30:56]line НДС 12% НСП 1% [14:30:56]line > о реализуемом товаре [14:30:56]line ОКРУГЛЕНИЕ: -0.66 [14:30:56]line ИТОГО: 500.00 [14:30:56]line Внесено: 500.00 [14:30:56]line СДАЧА: 0.00 [14:30:56]line НСП 1% : 4.43 [14:30:56]line НДС 12% : 53.17 [14:30:56]line Наличными: 500.00 [14:30:56]line Безнал.: 0.00 [14:30:56]line Место: АЗС № 120 "Партнер Нефть" [14:30:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:30:56]line СНО: Общий режим [14:30:56]line Чек 131 22.06.2024 14:30 [14:30:56]line Смена: 356 ФФД: 1.0 [14:30:56]line ЗНМ: 0300000164 [14:30:56]line РНМ: 0000000000092785 [14:30:56]line Версия ККМ: 001 [14:30:56]line ФМ: 0000000000875093 [14:30:56]line ФД: 104398 [14:30:56]line ФПД: 105410569837221 [14:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143056&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104398&fm=105410569837221&tin=02508201610067®Number=0000000000092785&sum=50000 [14:30:57]OFD Sender: Processing packet 104398 [packets to send 17, broken 16] [14:30:57]ProducePacketName [14:30:57]name=ofd_packets/00104398 [14:30:57]OFD Sender: To server: pG, [14:30:57]CommunicateWithHost lk.salyk.kg:30040 [14:30:57]ConnectInit lk.salyk.kg [14:30:57]written 0, free lines is 4095 [14:30:57]Connected sock=7 [14:30: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 03 44 07 01 84 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 83 00 00 00 F4 03 04 00 20 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F DE CF 92 1A A5 A6 8B 8B 82 FB 3A FA F7 [14:30: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 86 70 47 00 07 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 97 01 00 F4 03 04 00 9F 86 76 66 B6 04 01 00 00 CF E3 C4 1C 03 E8 A0 5F [14:30:57]CommunicateWithHost err = 0 [14:30:57]CheckOFDResponse [14:30:57]1017 (14) - 77093643461234 [14:30:57]1041 (16) - 0000000000875093 [14:30:57]1040 (4) - 104398 [14:30:57]1012 (4) - 22.06.2024 08:09 [14:30:57]1206 (1) - 0 [14:30:57]OFD Sender: Remove packet 104398 [14:30:57]ProducePacketName [14:30:57]name=ofd_packets/00104398 [14:30:57]NVStorageDeleteData [14:30:57]Write to MH i2c: 01 00 00 7E 18 96 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 E6 0C 8F [14:30:57]RasterBufferAndPrint [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]written 0, free lines is 3311 [14:30:57]MH_Cut [14:30:57]Write to MH i2c: D1 01 00 85 18 01 6F [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 85 18 00 6E [14:30:57]Write to MH i2c: 01 00 00 86 18 9E [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:58]OFD Sender: No OFD packet to send [14:30:58]*** Cut start [14:30:58]*** Partial cut [14:30:58]*** CUTSNS_PIN = 1 [14:30:58]*** CUTSNS_PIN = 0 [14:30:58]*** Brake cut motor [14:30:59]Read from MH i2c: 01 [14:30:59]MH_I2C_Read... [14:30:59]*** Stop cut motor [14:30:59]*** Cut end [14:30:59]Read from MH i2c: 01 07 00 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [14:30:59]process_action close_receipt done [14:30:59]requested_data is exist [14:30:59]produce_requested_data [14:30:59]requested_item fm.sn is exist - process it [14:30:59]wFMCommunicate request_size=4 [14:30:59]MH_SAM_APDU [14:30:59]CAPDU: 80 11 00 00 [14:30:59]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [14:30:59]Write i2c OK [14:30:59]MH_I2C_Read... [14:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:59]Read from MH i2c: E2 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 17 00 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [14:30:59]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:59]wFMCommunicate OK [14:30:59]requested_item fd.num is exist - process it [14:30:59]SAM_PROTO_GetFieldsCounters [14:30:59]wFMCommunicate request_size=4 [14:30:59]MH_SAM_APDU [14:30:59]CAPDU: 80 13 00 00 [14:30:59]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [14:30:59]Write i2c OK [14:30:59]MH_I2C_Read... [14:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:59]Read from MH i2c: E2 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 62 00 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 97 [14:30: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 CE 97 01 00 0E 04 04 00 64 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 [14:30:59]wFMCommunicate OK [14:30:59]SAM_PROTO_GetFieldsCounters done [14:30:59]requested_item shift.num is exist - process it [14:30:59]requested_item shift.opened is exist - process it [14:30:59]req_shift_opened [14:30:59]FM_GetShiftState [14:30:59]SAM_PROTO_GetShiftState [14:30:59]wFMCommunicate request_size=4 [14:30:59]MH_SAM_APDU [14:30:59]CAPDU: 80 13 01 00 [14:30:59]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [14:30:59]Write i2c OK [14:30:59]MH_I2C_Read... [14:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:59]Read from MH i2c: E2 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 0E 00 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 10 [14:30:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:30:59]wFMCommunicate OK [14:30:59]SAM_PROTO_GetShiftState done [14:30:59]FM_GetShiftState done [14:30:59]req_shift_opened done [14:30:59]requested_item shift.open_date is exist - process it [14:30:59]req_shift_open_date [14:30:59]req_shift_open_date done [14:30:59]produce_requested_data done [14:30:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104398,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:30:59]process_action_free close_receipt [14:30:59]json_value_free [14:30:59]json_value_free done [14:30:59]process_json_proto returns [14:30:59]Send response to host [14:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104398,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:30:59]free response buf [14:30:59]execute_script done [14:30:59]execute_script returns [14:30:59]free content buf [14:30:59]Sock 11.Close socket [14:30:59]Sock 11.Thread stoped [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:23]accept exits with 9 [14:33:23]New connection [14:33:23]New thread 3066449252 created [14:33:23]Thread 3066592612 joined [14:33:23]Waiting for new connection... [14:33:23] Sock 9.Parse request [14:33:23]Sock 9.Check first char [14:33:23]Sock 9.First char is OK [14:33:23]request: POST /json_proto HTTP/1.0 [14:33:23]Method: POST [14:33:23]URL: /json_proto [14:33:23]Method is POST - this is cgi request [14:33:23]url: /json_proto [14:33:23]query_string will be loaded in cgi processing [14:33:23]execute_cgi json_proto POST (null) [14:33:23]execute_cgi path=json_proto method=POST [14:33:23]POST find Content-Length [14:33:23]Host: 172.17.38.133:8080 [14:33:23]Content-Length: 687 [14:33:23]Content-Type: application/json [14:33:23] [14:33:23]POST finish read [14:33:23]Found Content-Length = 687 [14:33:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673949", "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" : 23.300, "sum" : 1698.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1698.00, "payments": [ { "type": 0, "sum" : 1698.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:23]execute_script... [14:33:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673949", "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" : 23.300, "sum" : 1698.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1698.00, "payments": [ { "type": 0, "sum" : 1698.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:23]POST & json_proto [14:33:23]process_json_proto [14:33:23]json parsed OK: [14:33:23]protocol is kg_v1.0 [14:33:23]action value=close_receipt [14:33:23]process_action close_receipt [14:33:23]cmd_close_receipt [14:33:23]MH_GetDate [14:33:23]Write to MH i2c: F0 00 00 8A 18 91 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 09 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 09 00 8A 18 00 B5 E0 76 66 BD 8F 7C 64 37 [14:33:23]GetLastDocTimeStamp 1719066656 [14:33:23]current date 1719066805 [14:33:23]FM_GetShiftState [14:33:23]SAM_PROTO_GetShiftState [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 13 01 00 [14:33:23]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 12 [14:33:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:33:23]wFMCommunicate OK [14:33:23]SAM_PROTO_GetShiftState done [14:33:23]FM_GetShiftState done [14:33:23]opened in 1719016176 [14:33:23]opened+sec_in_day 1719102576 [14:33:23]quantity*price = 169857 [14:33:23]sum+1 = 169858 [14:33:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1698.00 Внесено: 3000.00 СДАЧА: 1302.00 НСП 1% : 15.03 НДС 12% : 180.38 Наличными: 1698.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 132 22.06.2024 14:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104399 ФПД: 104917775044076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143325&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104399&fm=104917775044076&tin=02508201610067®Number=0000000000092785&sum=169800 [14:33:25]StoreToDocumentArchive [14:33:25]shift 356 fd 104399 [14:33:25]save to /storage/0356/doc_00104399 [14:33:25]save last doc name /storage/0356/doc_00104399 to /storage/kkm_last_doc_name [14:33:25]save OK [14:33:25]Clear old archive folders... [14:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:33:25]tlvbuf is B6D50780 [14:33:25]SAM_PROTO_ClearQueue [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 09 00 00 [14:33:25]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]SAM_PROTO_ClearQueue done [14:33:25]KKMCreateOFDPacket [14:33:25]OFDProtocolAddRootSTLVToBuf [14:33:25]FM_MakeSignedData [14:33:25]FM_MakeSignedData [14:33:25]SAM_PROTO_SignData [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 0D 01 02 [14:33:25]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]wFMCommunicate request_size=255 [14:33:25]MH_SAM_APDU [14:33:25]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 04 5B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 81 97 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 46 00 00 00 00 07 04 06 00 48 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:33:25]Write to MH i2c: E2 02 01 9A 18 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 04 5B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 81 97 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 46 00 00 00 00 07 04 06 00 48 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 A7 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]wFMCommunicate request_size=11 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 0D 02 02 06 5F 6C 12 B6 4D EC [14:33:25]Write to MH i2c: E2 0E 00 9B 18 80 0D 02 02 06 00 5F 6C 12 B6 4D EC 00 00 05 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 0D 03 02 [14:33:25]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 0B 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 0B 00 9C 18 00 CC 92 14 C0 30 16 2C BA 90 00 8E [14:33:25]RAPDU: CC 92 14 C0 30 16 2C BA 90 00 [14:33:25]wFMCommunicate OK [14:33:25]SAM_PROTO_SignData done [14:33:25]FM_MakeSignedData done [14:33:25]CreateOFDProtocolMessage [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 11 00 00 [14:33:25]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 17 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [14:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:33:25]wFMCommunicate OK [14:33:25]CreateOFDProtocolMessage done [14:33:25]OFDSenderStorePacket 104399 [14:33:25]StoreOFDPacket docnum=104399 [14:33: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 10 01 00 00 64 E4 08 01 66 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 04 5B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 81 97 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 46 00 00 00 00 07 04 06 00 48 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F 6C 12 B6 4D EC CC 92 14 C0 30 16 2C BA [14:33:25]CheckFolder [14:33:25]dirname=/storage/ofd_packets [14:33:25]CheckFolder done [14:33:25]ProducePacketName [14:33:25]name=ofd_packets/00104399 [14:33:25]NVStorageSaveData ofd_packets/00104399 [14:33:25]File name is /storage/ofd_packets/00104399 [14:33:25]Write 302 bytes [14:33:25]NVStorageSaveData done [14:33:25]OFDSenderStorePacket done [14:33:25]KKMCreateOFDPacket done [14:33:25]NVStorageSaveData kkm_last_timestamp [14:33:25]File name is /storage/kkm_last_timestamp [14:33:25]Write 4 bytes [14:33:25]NVStorageSaveData done [14:33:25]ExternCall_PrintAddStr [14:33:25]wPrintStart [14:33:25]Write to MH i2c: 01 00 00 9E 18 B6 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [14:33:25]RasterBufferAndPrint [14:33:25]line Счет N : (1)673949 [14:33:25]line ИНН: 02508201610067 [14:33:25]line Контрольно-Кассовый Чек [14:33:25]line ПРОДАЖА [14:33:25]line ТРК (МРК, ГНК) : 11 [14:33:25]line Товар: 2710194210 [14:33:25]line ДТ(л)-К-5 [14:33:25]line 23.300 * 72.90 [14:33:25]line = 1698.57 [14:33:25]line НДС 12% НСП 1% [14:33:25]line > о реализуемом товаре [14:33:25]line ОКРУГЛЕНИЕ: -0.57 [14:33:25]line ИТОГО: 1698.00 [14:33:25]line Внесено: 3000.00 [14:33:25]line СДАЧА: 1302.00 [14:33:25]line НСП 1% : 15.03 [14:33:25]line НДС 12% : 180.38 [14:33:25]line Наличными: 1698.00 [14:33:25]line Безнал.: 0.00 [14:33:25]line Место: АЗС № 120 "Партнер Нефть" [14:33:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:33:25]line СНО: Общий режим [14:33:25]line Чек 132 22.06.2024 14:33 [14:33:25]line Смена: 356 ФФД: 1.0 [14:33:25]line ЗНМ: 0300000164 [14:33:25]line РНМ: 0000000000092785 [14:33:25]line Версия ККМ: 001 [14:33:25]line ФМ: 0000000000875093 [14:33:25]line ФД: 104399 [14:33:25]line ФПД: 104917775044076 [14:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143325&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104399&fm=104917775044076&tin=02508201610067®Number=0000000000092785&sum=169800 [14:33:25]OFD Sender: Processing packet 104399 [packets to send 17, broken 16] [14:33:25]ProducePacketName [14:33:25]name=ofd_packets/00104399 [14:33:25]OFD Sender: To server: pG, [14:33:25]CommunicateWithHost lk.salyk.kg:30040 [14:33:25]ConnectInit lk.salyk.kg [14:33:25]written 0, free lines is 4095 [14:33:26]Connected sock=10 [14:33: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 10 01 00 00 64 E4 08 01 66 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 04 5B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 81 97 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 46 00 00 00 00 07 04 06 00 48 97 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 E0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F 6C 12 B6 4D EC CC 92 14 C0 30 16 2C BA [14:33: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 DD 0A 47 00 34 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 97 01 00 F4 03 04 00 34 87 76 66 B6 04 01 00 00 34 F7 A0 2A 7F F9 38 5B [14:33:26]CommunicateWithHost err = 0 [14:33:26]CheckOFDResponse [14:33:26]1017 (14) - 77093643461234 [14:33:26]1041 (16) - 0000000000875093 [14:33:26]1040 (4) - 104399 [14:33:26]1012 (4) - 22.06.2024 08:11 [14:33:26]1206 (1) - 0 [14:33:26]OFD Sender: Remove packet 104399 [14:33:26]ProducePacketName [14:33:26]name=ofd_packets/00104399 [14:33:26]NVStorageDeleteData [14:33:26]Write to MH i2c: 01 00 00 C9 18 E1 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 E7 0C DB [14:33:26]RasterBufferAndPrint [14:33:26]line [14:33:26]line [14:33:26]line [14:33:26]line [14:33:26]line [14:33:26]written 0, free lines is 3310 [14:33:26]MH_Cut [14:33:26]Write to MH i2c: D1 01 00 D0 18 01 BA [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: D1 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: D1 01 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: D1 01 00 D0 18 00 B9 [14:33:26]Write to MH i2c: 01 00 00 D1 18 E9 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]OFD Sender: No OFD packet to send [14:33:27]*** Cut start [14:33:27]*** Partial cut [14:33:27]*** CUTSNS_PIN = 1 [14:33:27]*** CUTSNS_PIN = 0 [14:33:27]*** Brake cut motor [14:33:27]Read from MH i2c: 01 [14:33:27]MH_I2C_Read... [14:33:27]*** Stop cut motor [14:33:27]*** Cut end [14:33:27]Read from MH i2c: 01 07 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [14:33:27]process_action close_receipt done [14:33:27]requested_data is exist [14:33:27]produce_requested_data [14:33:27]requested_item fm.sn is exist - process it [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 11 00 00 [14:33:27]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 17 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [14:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:33:27]wFMCommunicate OK [14:33:27]requested_item fd.num is exist - process it [14:33:27]SAM_PROTO_GetFieldsCounters [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 13 00 00 [14:33:27]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 62 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 62 00 D3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E6 [14:33:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetFieldsCounters done [14:33:27]requested_item shift.num is exist - process it [14:33:27]requested_item shift.opened is exist - process it [14:33:27]req_shift_opened [14:33:27]FM_GetShiftState [14:33:27]SAM_PROTO_GetShiftState [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 13 01 00 [14:33:27]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5B [14:33:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetShiftState done [14:33:27]FM_GetShiftState done [14:33:27]req_shift_opened done [14:33:27]requested_item shift.open_date is exist - process it [14:33:27]req_shift_open_date [14:33:27]req_shift_open_date done [14:33:27]produce_requested_data done [14:33:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104399,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:33:27]process_action_free close_receipt [14:33:27]json_value_free [14:33:27]json_value_free done [14:33:27]process_json_proto returns [14:33:27]Send response to host [14:33:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104399,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:33:27]free response buf [14:33:27]execute_script done [14:33:27]execute_script returns [14:33:27]free content buf [14:33:27]Sock 9.Close socket [14:33:27]Sock 9.Thread stoped [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:17]accept exits with 7 [14:39:17]New connection [14:39:17]New thread 3066592612 created [14:39:17]Thread 3066449252 joined [14:39:17]Waiting for new connection... [14:39:17] Sock 7.Parse request [14:39:17]Sock 7.Check first char [14:39:17]Sock 7.First char is OK [14:39:17]request: POST /json_proto HTTP/1.0 [14:39:17]Method: POST [14:39:17]URL: /json_proto [14:39:17]Method is POST - this is cgi request [14:39:17]url: /json_proto [14:39:17]query_string will be loaded in cgi processing [14:39:17]execute_cgi json_proto POST (null) [14:39:17]execute_cgi path=json_proto method=POST [14:39:17]POST find Content-Length [14:39:17]Host: 172.17.38.133:8080 [14:39:17]Content-Length: 682 [14:39:17]Content-Type: application/json [14:39:17] [14:39:17]POST finish read [14:39:17]Found Content-Length = 682 [14:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673950", "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" ] } } [14:39:17]execute_script... [14:39: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)673950", "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" ] } } [14:39:17]POST & json_proto [14:39:17]process_json_proto [14:39:17]json parsed OK: [14:39:17]protocol is kg_v1.0 [14:39:17]action value=close_receipt [14:39:17]process_action close_receipt [14:39:17]cmd_close_receipt [14:39:17]MH_GetDate [14:39:17]Write to MH i2c: F0 00 00 D5 18 DC [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: F0 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: F0 09 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: F0 09 00 D5 18 00 17 E2 76 66 BD 8F 7C 64 E6 [14:39:17]GetLastDocTimeStamp 1719066805 [14:39:17]current date 1719067159 [14:39:17]FM_GetShiftState [14:39:17]SAM_PROTO_GetShiftState [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 13 01 00 [14:39:17]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5D [14:39:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_GetShiftState done [14:39:17]FM_GetShiftState done [14:39:17]opened in 1719016176 [14:39:17]opened+sec_in_day 1719102576 [14:39:17]quantity*price = 50009 [14:39:17]sum+1 = 50010 [14:39:17]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 СНО: Общий режим Чек 133 22.06.2024 14:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104400 ФПД: 75721878565222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143919&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104400&fm=75721878565222&tin=02508201610067®Number=0000000000092785&sum=50000 [14:39:19]StoreToDocumentArchive [14:39:19]shift 356 fd 104400 [14:39:19]save to /storage/0356/doc_00104400 [14:39:19]save last doc name /storage/0356/doc_00104400 to /storage/kkm_last_doc_name [14:39:19]save OK [14:39:19]Clear old archive folders... [14:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:39:19]tlvbuf is B6E504B0 [14:39:19]SAM_PROTO_ClearQueue [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 09 00 00 [14:39:19]Write to MH i2c: E2 08 00 E3 18 80 09 00 00 00 00 00 00 6D [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:19]Read from MH i2c: E2 03 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [14:39:19]RAPDU: 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_ClearQueue done [14:39:19]KKMCreateOFDPacket [14:39:19]OFDProtocolAddRootSTLVToBuf [14:39:19]FM_MakeSignedData [14:39:19]FM_MakeSignedData [14:39:19]SAM_PROTO_SignData [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 0D 01 02 [14:39:19]Write to MH i2c: E2 08 00 E4 18 80 0D 01 02 00 00 00 00 75 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [14:39:19]RAPDU: 90 00 [14:39:19]wFMCommunicate OK [14:39:19]wFMCommunicate request_size=255 [14:39:19]MH_SAM_APDU [14:39: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 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 85 00 00 00 F4 03 04 00 17 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:39:19]Write to MH i2c: E2 02 01 E5 18 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 85 00 00 00 F4 03 04 00 17 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 34 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [14:39:19]RAPDU: 90 00 [14:39:19]wFMCommunicate OK [14:39:19]wFMCommunicate request_size=11 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 0D 02 02 06 44 DE 5F AC 71 66 [14:39:19]Write to MH i2c: E2 0E 00 E6 18 80 0D 02 02 06 00 44 DE 5F AC 71 66 00 00 88 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [14:39:19]RAPDU: 90 00 [14:39:19]wFMCommunicate OK [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 0D 03 02 [14:39:19]Write to MH i2c: E2 08 00 E7 18 80 0D 03 02 00 00 00 00 7A [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0B 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0B 00 E7 18 00 53 93 E4 44 25 94 AA 54 90 00 40 [14:39:19]RAPDU: 53 93 E4 44 25 94 AA 54 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_SignData done [14:39:19]FM_MakeSignedData done [14:39:19]CreateOFDProtocolMessage [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 11 00 00 [14:39:19]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [14:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:39:19]wFMCommunicate OK [14:39:19]CreateOFDProtocolMessage done [14:39:19]OFDSenderStorePacket 104400 [14:39:19]StoreOFDPacket docnum=104400 [14:39: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 10 01 00 00 66 BA 08 01 67 41 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 85 00 00 00 F4 03 04 00 17 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 44 DE 5F AC 71 66 53 93 E4 44 25 94 AA 54 [14:39:19]CheckFolder [14:39:19]dirname=/storage/ofd_packets [14:39:19]CheckFolder done [14:39:19]ProducePacketName [14:39:19]name=ofd_packets/00104400 [14:39:19]NVStorageSaveData ofd_packets/00104400 [14:39:19]File name is /storage/ofd_packets/00104400 [14:39:19]Write 302 bytes [14:39:19]NVStorageSaveData done [14:39:19]OFDSenderStorePacket done [14:39:19]KKMCreateOFDPacket done [14:39:19]NVStorageSaveData kkm_last_timestamp [14:39:19]File name is /storage/kkm_last_timestamp [14:39:19]Write 4 bytes [14:39:19]NVStorageSaveData done [14:39:19]ExternCall_PrintAddStr [14:39:19]wPrintStart [14:39:19]Write to MH i2c: 01 00 00 E9 18 01 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 FF 0F 16 [14:39:19]RasterBufferAndPrint [14:39:19]line Счет N : (1)673950 [14:39:19]line ИНН: 02508201610067 [14:39:19]line Контрольно-Кассовый Чек [14:39:19]line ПРОДАЖА [14:39:19]line ТРК (МРК, ГНК) : 11 [14:39:19]line Товар: 2710194210 [14:39:19]line ДТ(л)-К-5 [14:39:19]line 6.860 * 72.90 [14:39:19]line = 500.09 [14:39:19]line НДС 12% НСП 1% [14:39:19]line > о реализуемом товаре [14:39:19]line ОКРУГЛЕНИЕ: -0.09 [14:39:19]line ИТОГО: 500.00 [14:39:19]line Внесено: 500.00 [14:39:19]line СДАЧА: 0.00 [14:39:19]line НСП 1% : 4.43 [14:39:19]line НДС 12% : 53.11 [14:39:19]line Наличными: 500.00 [14:39:19]line Безнал.: 0.00 [14:39:19]line Место: АЗС № 120 "Партнер Нефть" [14:39:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:39:19]line СНО: Общий режим [14:39:19]line Чек 133 22.06.2024 14:39 [14:39:19]line Смена: 356 ФФД: 1.0 [14:39:19]line ЗНМ: 0300000164 [14:39:19]line РНМ: 0000000000092785 [14:39:19]line Версия ККМ: 001 [14:39:19]line ФМ: 0000000000875093 [14:39:19]line ФД: 104400 [14:39:19]line ФПД: 75721878565222 [14:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143919&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104400&fm=75721878565222&tin=02508201610067®Number=0000000000092785&sum=50000 [14:39:19]OFD Sender: Processing packet 104400 [packets to send 17, broken 16] [14:39:19]ProducePacketName [14:39:19]name=ofd_packets/00104400 [14:39:19]OFD Sender: To server: pG, [14:39:19]CommunicateWithHost lk.salyk.kg:30040 [14:39:19]ConnectInit lk.salyk.kg [14:39:19]written 0, free lines is 4095 [14:39:20]Connected sock=10 [14:39: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 66 BA 08 01 67 41 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 85 00 00 00 F4 03 04 00 17 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 44 DE 5F AC 71 66 53 93 E4 44 25 94 AA 54 [14:39: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 5B 19 47 00 A6 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 D0 97 01 00 F4 03 04 00 96 88 76 66 B6 04 01 00 00 15 C0 55 78 12 9D FE AA [14:39:20]CommunicateWithHost err = 0 [14:39:20]CheckOFDResponse [14:39:20]1017 (14) - 77093643461234 [14:39:20]1041 (16) - 0000000000875093 [14:39:20]1040 (4) - 104400 [14:39:20]1012 (4) - 22.06.2024 08:17 [14:39:20]1206 (1) - 0 [14:39:20]OFD Sender: Remove packet 104400 [14:39:20]ProducePacketName [14:39:20]name=ofd_packets/00104400 [14:39:20]NVStorageDeleteData [14:39:20]Write to MH i2c: 01 00 00 14 19 2D [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 F2 0C 32 [14:39:20]RasterBufferAndPrint [14:39:20]line [14:39:20]line [14:39:20]line [14:39:20]line [14:39:20]line [14:39:20]written 0, free lines is 3320 [14:39:20]MH_Cut [14:39:20]Write to MH i2c: D1 01 00 1B 19 01 06 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: D1 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: D1 01 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: D1 01 00 1B 19 00 05 [14:39:20]Write to MH i2c: 01 00 00 1C 19 35 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]OFD Sender: No OFD packet to send [14:39:21]*** Cut start [14:39:21]*** Partial cut [14:39:21]*** CUTSNS_PIN = 1 [14:39:21]*** CUTSNS_PIN = 0 [14:39:21]*** Brake cut motor [14:39:21]Read from MH i2c: 01 [14:39:21]MH_I2C_Read... [14:39:21]*** Stop cut motor [14:39:21]*** Cut end [14:39:21]Read from MH i2c: 01 07 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [14:39:21]process_action close_receipt done [14:39:21]requested_data is exist [14:39:21]produce_requested_data [14:39:21]requested_item fm.sn is exist - process it [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 11 00 00 [14:39:21]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [14:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:39:21]wFMCommunicate OK [14:39:21]requested_item fd.num is exist - process it [14:39:21]SAM_PROTO_GetFieldsCounters [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 00 00 [14:39:21]Write to MH i2c: E2 08 00 1E 19 80 13 00 00 00 00 00 00 B3 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 1E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 36 [14:39: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 D0 97 01 00 0E 04 04 00 64 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 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_GetFieldsCounters done [14:39:21]requested_item shift.num is exist - process it [14:39:21]requested_item shift.opened is exist - process it [14:39:21]req_shift_opened [14:39:21]FM_GetShiftState [14:39:21]SAM_PROTO_GetShiftState [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 01 00 [14:39:21]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:22]Read from MH i2c: E2 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 0E 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A7 [14:39:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:39:22]wFMCommunicate OK [14:39:22]SAM_PROTO_GetShiftState done [14:39:22]FM_GetShiftState done [14:39:22]req_shift_opened done [14:39:22]requested_item shift.open_date is exist - process it [14:39:22]req_shift_open_date [14:39:22]req_shift_open_date done [14:39:22]produce_requested_data done [14:39:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104400,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:39:22]process_action_free close_receipt [14:39:22]json_value_free [14:39:22]json_value_free done [14:39:22]process_json_proto returns [14:39:22]Send response to host [14:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104400,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:39:22]free response buf [14:39:22]execute_script done [14:39:22]execute_script returns [14:39:22]free content buf [14:39:22]Sock 7.Close socket [14:39:22]Sock 7.Thread stoped [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:32]accept exits with 9 [14:40:32]New connection [14:40:32]New thread 3066449252 created [14:40:32]Thread 3066592612 joined [14:40:32]Waiting for new connection... [14:40:32] Sock 9.Parse request [14:40:32]Sock 9.Check first char [14:40:32]Sock 9.First char is OK [14:40:32]request: POST /json_proto HTTP/1.0 [14:40:32]Method: POST [14:40:32]URL: /json_proto [14:40:32]Method is POST - this is cgi request [14:40:32]url: /json_proto [14:40:32]query_string will be loaded in cgi processing [14:40:32]execute_cgi json_proto POST (null) [14:40:32]execute_cgi path=json_proto method=POST [14:40:32]POST find Content-Length [14:40:32]Host: 172.17.38.133:8080 [14:40:32]Content-Length: 682 [14:40:32]Content-Type: application/json [14:40:32] [14:40:32]POST finish read [14:40:32]Found Content-Length = 682 [14:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673951", "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" ] } } [14:40:32]execute_script... [14:40: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)673951", "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" ] } } [14:40:32]POST & json_proto [14:40:32]process_json_proto [14:40:32]json parsed OK: [14:40:32]protocol is kg_v1.0 [14:40:32]action value=close_receipt [14:40:32]process_action close_receipt [14:40:32]cmd_close_receipt [14:40:32]MH_GetDate [14:40:32]Write to MH i2c: F0 00 00 20 19 28 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 09 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 09 00 20 19 00 61 E2 76 66 BD 8F 7C 64 7C [14:40:32]GetLastDocTimeStamp 1719067159 [14:40:32]current date 1719067233 [14:40:32]FM_GetShiftState [14:40:32]SAM_PROTO_GetShiftState [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 01 00 [14:40:32]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 A9 [14:40:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetShiftState done [14:40:32]FM_GetShiftState done [14:40:32]opened in 1719016176 [14:40:32]opened+sec_in_day 1719102576 [14:40:32]quantity*price = 100064 [14:40:32]sum+1 = 100066 [14:40:32]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 СНО: Общий режим Чек 134 22.06.2024 14:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104401 ФПД: 267719405450074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144033&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104401&fm=267719405450074&tin=02508201610067®Number=0000000000092785&sum=100000 [14:40:33]StoreToDocumentArchive [14:40:33]shift 356 fd 104401 [14:40:33]save to /storage/0356/doc_00104401 [14:40:33]save last doc name /storage/0356/doc_00104401 to /storage/kkm_last_doc_name [14:40:33]save OK [14:40:33]Clear old archive folders... [14:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:33]tlvbuf is 00FCDC00 [14:40:33]SAM_PROTO_ClearQueue [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 09 00 00 [14:40:33]Write to MH i2c: E2 08 00 2E 19 80 09 00 00 00 00 00 00 B9 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_ClearQueue done [14:40:33]KKMCreateOFDPacket [14:40:33]OFDProtocolAddRootSTLVToBuf [14:40:33]FM_MakeSignedData [14:40:33]FM_MakeSignedData [14:40:33]SAM_PROTO_SignData [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 01 02 [14:40:33]Write to MH i2c: E2 08 00 2F 19 80 0D 01 02 00 00 00 00 C1 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=255 [14:40:33]MH_SAM_APDU [14:40: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 86 00 00 00 F4 03 04 00 61 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F3 [14:40:33]Write to MH i2c: E2 02 01 30 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 86 00 00 00 F4 03 04 00 61 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F3 00 00 31 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=10 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 02 02 05 7D 48 0F B3 5A [14:40:33]Write to MH i2c: E2 0D 00 31 19 80 0D 02 02 05 00 7D 48 0F B3 5A 00 00 AF [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 03 02 [14:40:33]Write to MH i2c: E2 08 00 32 19 80 0D 03 02 00 00 00 00 C6 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0B 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0B 00 32 19 00 F3 5C B3 5E 09 57 69 0C 90 00 FC [14:40:33]RAPDU: F3 5C B3 5E 09 57 69 0C 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_SignData done [14:40:33]FM_MakeSignedData done [14:40:33]CreateOFDProtocolMessage [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 11 00 00 [14:40:33]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [14:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:40:33]wFMCommunicate OK [14:40:33]CreateOFDProtocolMessage done [14:40:33]OFDSenderStorePacket 104401 [14:40:33]StoreOFDPacket docnum=104401 [14:40: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 79 A7 07 01 19 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 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 86 00 00 00 F4 03 04 00 61 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F3 7D 48 0F B3 5A F3 5C B3 5E 09 57 69 0C [14:40:33]CheckFolder [14:40:33]dirname=/storage/ofd_packets [14:40:33]CheckFolder done [14:40:33]ProducePacketName [14:40:33]name=ofd_packets/00104401 [14:40:33]NVStorageSaveData ofd_packets/00104401 [14:40:33]File name is /storage/ofd_packets/00104401 [14:40:33]Write 301 bytes [14:40:33]NVStorageSaveData done [14:40:33]OFDSenderStorePacket done [14:40:33]KKMCreateOFDPacket done [14:40:33]NVStorageSaveData kkm_last_timestamp [14:40:33]File name is /storage/kkm_last_timestamp [14:40:33]Write 4 bytes [14:40:33]NVStorageSaveData done [14:40:33]OFD Sender: Processing packet 104401 [packets to send 17, broken 16] [14:40:33]ProducePacketName [14:40:33]name=ofd_packets/00104401 [14:40:33]OFD Sender: To server: pG, [14:40:33]CommunicateWithHost lk.salyk.kg:30040 [14:40:33]ConnectInit lk.salyk.kg [14:40:33]ExternCall_PrintAddStr [14:40:33]wPrintStart [14:40:33]Write to MH i2c: 01 00 00 34 19 4D [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 07 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [14:40:33]RasterBufferAndPrint [14:40:33]line Счет N : (1)673951 [14:40:33]line ИНН: 02508201610067 [14:40:33]line Контрольно-Кассовый Чек [14:40:33]line ПРОДАЖА [14:40:33]line ТРК (МРК, ГНК) : 42 [14:40:33]line Товар: 2710124130 [14:40:33]line Аи-92-К-5 [14:40:33]line 15.070 * 66.40 [14:40:33]line = 1000.65 [14:40:33]line НДС 12% НСП 1% [14:40:33]line > о реализуемом товаре [14:40:33]line ОКРУГЛЕНИЕ: -0.65 [14:40:33]line ИТОГО: 1000.00 [14:40:33]line Внесено: 1000.00 [14:40:33]line СДАЧА: 0.00 [14:40:33]line НСП 1% : 8.85 [14:40:33]line НДС 12% : 106.26 [14:40:33]line Наличными: 1000.00 [14:40:33]line Безнал.: 0.00 [14:40:33]line Место: АЗС № 120 "Партнер Нефть" [14:40:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:40:33]line СНО: Общий режим [14:40:33]line Чек 134 22.06.2024 14:40 [14:40:33]line Смена: 356 ФФД: 1.0 [14:40:33]line ЗНМ: 0300000164 [14:40:33]line РНМ: 0000000000092785 [14:40:33]line Версия ККМ: 001 [14:40:34]line ФМ: 0000000000875093 [14:40:34]line ФД: 104401 [14:40:34]line ФПД: 267719405450074 [14:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144033&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104401&fm=267719405450074&tin=02508201610067®Number=0000000000092785&sum=100000 [14:40:34]Connected sock=11 [14:40: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 79 A7 07 01 19 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 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 86 00 00 00 F4 03 04 00 61 E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F3 7D 48 0F B3 5A F3 5C B3 5E 09 57 69 0C [14:40:34]written 0, free lines is 4095 [14:40: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 E7 5C 47 00 CC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 97 01 00 F4 03 04 00 E0 88 76 66 B6 04 01 00 00 46 38 43 3D D4 4E 00 F3 [14:40:34]CommunicateWithHost err = 0 [14:40:34]CheckOFDResponse [14:40:34]1017 (14) - 77093643461234 [14:40:34]1041 (16) - 0000000000875093 [14:40:34]1040 (4) - 104401 [14:40:34]1012 (4) - 22.06.2024 08:18 [14:40:34]1206 (1) - 0 [14:40:34]OFD Sender: Remove packet 104401 [14:40:34]ProducePacketName [14:40:34]name=ofd_packets/00104401 [14:40:34]NVStorageDeleteData [14:40:34]Write to MH i2c: 01 00 00 5F 19 78 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 07 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 07 00 5F 19 00 00 00 00 00 DD 0C 68 [14:40:34]RasterBufferAndPrint [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]written 0, free lines is 3302 [14:40:34]MH_Cut [14:40:34]Write to MH i2c: D1 01 00 66 19 01 51 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 01 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 01 00 66 19 00 50 [14:40:34]Write to MH i2c: 01 00 00 67 19 80 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]OFD Sender: No OFD packet to send [14:40:35]*** Cut start [14:40:35]*** Partial cut [14:40:35]*** CUTSNS_PIN = 1 [14:40:35]*** CUTSNS_PIN = 0 [14:40:35]*** Brake cut motor [14:40:35]Read from MH i2c: 01 [14:40:35]MH_I2C_Read... [14:40:35]*** Stop cut motor [14:40:35]*** Cut end [14:40:35]Read from MH i2c: 01 07 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 67 19 00 00 00 00 00 FF 0F 95 [14:40:35]process_action close_receipt done [14:40:35]requested_data is exist [14:40:35]produce_requested_data [14:40:35]requested_item fm.sn is exist - process it [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 11 00 00 [14:40:35]Write to MH i2c: E2 08 00 68 19 80 11 00 00 00 00 00 00 FB [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 68 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [14:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:40:35]wFMCommunicate OK [14:40:35]requested_item fd.num is exist - process it [14:40:35]SAM_PROTO_GetFieldsCounters [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 13 00 00 [14:40:35]Write to MH i2c: E2 08 00 69 19 80 13 00 00 00 00 00 00 FE [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 69 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 85 [14:40: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 D1 97 01 00 0E 04 04 00 64 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 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetFieldsCounters done [14:40:36]requested_item shift.num is exist - process it [14:40:36]requested_item shift.opened is exist - process it [14:40:36]req_shift_opened [14:40:36]FM_GetShiftState [14:40:36]SAM_PROTO_GetShiftState [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 13 01 00 [14:40:36]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F2 [14:40:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetShiftState done [14:40:36]FM_GetShiftState done [14:40:36]req_shift_opened done [14:40:36]requested_item shift.open_date is exist - process it [14:40:36]req_shift_open_date [14:40:36]req_shift_open_date done [14:40:36]produce_requested_data done [14:40:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104401,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:40:36]process_action_free close_receipt [14:40:36]json_value_free [14:40:36]json_value_free done [14:40:36]process_json_proto returns [14:40:36]Send response to host [14:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104401,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:40:36]free response buf [14:40:36]execute_script done [14:40:36]execute_script returns [14:40:36]free content buf [14:40:36]Sock 9.Close socket [14:40:36]Sock 9.Thread stoped [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:05]accept exits with 7 [14:43:05]New connection [14:43:05]New thread 3066592612 created [14:43:05]Thread 3066449252 joined [14:43:05]Waiting for new connection... [14:43:05] Sock 7.Parse request [14:43:05]Sock 7.Check first char [14:43:05]Sock 7.First char is OK [14:43:05]request: POST /json_proto HTTP/1.0 [14:43:05]Method: POST [14:43:05]URL: /json_proto [14:43:05]Method is POST - this is cgi request [14:43:05]url: /json_proto [14:43:05]query_string will be loaded in cgi processing [14:43:05]execute_cgi json_proto POST (null) [14:43:05]execute_cgi path=json_proto method=POST [14:43:05]POST find Content-Length [14:43:05]Host: 172.17.38.133:8080 [14:43:05]Content-Length: 682 [14:43:05]Content-Type: application/json [14:43:05] [14:43:05]POST finish read [14:43:05]Found Content-Length = 682 [14:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673952", "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:43:05]execute_script... [14:43: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)673952", "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:43:05]POST & json_proto [14:43:05]process_json_proto [14:43:05]json parsed OK: [14:43:05]protocol is kg_v1.0 [14:43:05]action value=close_receipt [14:43:05]process_action close_receipt [14:43:05]cmd_close_receipt [14:43:05]MH_GetDate [14:43:05]Write to MH i2c: F0 00 00 6B 19 73 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: F0 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: F0 09 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: F0 09 00 6B 19 00 FB E2 76 66 BD 8F 7C 64 61 [14:43:05]GetLastDocTimeStamp 1719067233 [14:43:05]current date 1719067387 [14:43:05]FM_GetShiftState [14:43:05]SAM_PROTO_GetShiftState [14:43:05]wFMCommunicate request_size=4 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 13 01 00 [14:43:05]Write to MH i2c: E2 08 00 6C 19 80 13 01 00 00 00 00 00 02 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 0E 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 0E 00 6C 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F4 [14:43:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:43:05]wFMCommunicate OK [14:43:05]SAM_PROTO_GetShiftState done [14:43:05]FM_GetShiftState done [14:43:05]opened in 1719016176 [14:43:05]opened+sec_in_day 1719102576 [14:43:05]quantity*price = 100064 [14:43:05]sum+1 = 100066 [14:43:05]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 СНО: Общий режим Чек 135 22.06.2024 14:43 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104402 ФПД: 165695651438488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144307&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104402&fm=165695651438488&tin=02508201610067®Number=0000000000092785&sum=100000 [14:43:06]StoreToDocumentArchive [14:43:06]shift 356 fd 104402 [14:43:06]save to /storage/0356/doc_00104402 [14:43:06]save last doc name /storage/0356/doc_00104402 to /storage/kkm_last_doc_name [14:43:06]save OK [14:43:06]Clear old archive folders... [14:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:06]tlvbuf is B6E82C10 [14:43:06]SAM_PROTO_ClearQueue [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 09 00 00 [14:43:06]Write to MH i2c: E2 08 00 79 19 80 09 00 00 00 00 00 00 04 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 03 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [14:43:06]RAPDU: 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_ClearQueue done [14:43:06]KKMCreateOFDPacket [14:43:06]OFDProtocolAddRootSTLVToBuf [14:43:06]FM_MakeSignedData [14:43:06]FM_MakeSignedData [14:43:06]SAM_PROTO_SignData [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 0D 01 02 [14:43:06]Write to MH i2c: E2 08 00 7A 19 80 0D 01 02 00 00 00 00 0C [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 03 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [14:43:06]RAPDU: 90 00 [14:43:06]wFMCommunicate OK [14:43:06]wFMCommunicate request_size=255 [14:43:06]MH_SAM_APDU [14:43: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 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 87 00 00 00 F4 03 04 00 FB E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 [14:43:06]Write to MH i2c: E2 02 01 7B 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 87 00 00 00 F4 03 04 00 FB E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 00 00 BB [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [14:43:07]RAPDU: 90 00 [14:43:07]wFMCommunicate OK [14:43:07]wFMCommunicate request_size=10 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 0D 02 02 05 B3 06 71 DF 98 [14:43:07]Write to MH i2c: E2 0D 00 7C 19 80 0D 02 02 05 00 B3 06 71 DF 98 00 00 BA [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [14:43:07]RAPDU: 90 00 [14:43:07]wFMCommunicate OK [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 0D 03 02 [14:43:07]Write to MH i2c: E2 08 00 7D 19 80 0D 03 02 00 00 00 00 11 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 0B 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 0B 00 7D 19 00 5C 24 CD D0 23 8B DF 66 90 00 22 [14:43:07]RAPDU: 5C 24 CD D0 23 8B DF 66 90 00 [14:43:07]wFMCommunicate OK [14:43:07]SAM_PROTO_SignData done [14:43:07]FM_MakeSignedData done [14:43:07]CreateOFDProtocolMessage [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 11 00 00 [14:43:07]Write to MH i2c: E2 08 00 7E 19 80 11 00 00 00 00 00 00 11 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 17 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 17 00 7E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [14:43: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:43:07]wFMCommunicate OK [14:43:07]CreateOFDProtocolMessage done [14:43:07]OFDSenderStorePacket 104402 [14:43:07]StoreOFDPacket docnum=104402 [14:43: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 BB A3 07 01 A8 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 FB E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 B3 06 71 DF 98 5C 24 CD D0 23 8B DF 66 [14:43:07]CheckFolder [14:43:07]dirname=/storage/ofd_packets [14:43:07]CheckFolder done [14:43:07]ProducePacketName [14:43:07]name=ofd_packets/00104402 [14:43:07]NVStorageSaveData ofd_packets/00104402 [14:43:07]File name is /storage/ofd_packets/00104402 [14:43:07]Write 301 bytes [14:43:07]NVStorageSaveData done [14:43:07]OFDSenderStorePacket done [14:43:07]KKMCreateOFDPacket done [14:43:07]NVStorageSaveData kkm_last_timestamp [14:43:07]File name is /storage/kkm_last_timestamp [14:43:07]Write 4 bytes [14:43:07]NVStorageSaveData done [14:43:07]ExternCall_PrintAddStr [14:43:07]wPrintStart [14:43:07]Write to MH i2c: 01 00 00 7F 19 98 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: 01 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: 01 07 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: 01 07 00 7F 19 00 00 00 00 00 FF 0F AD [14:43:07]RasterBufferAndPrint [14:43:07]line Счет N : (1)673952 [14:43:07]line ИНН: 02508201610067 [14:43:07]line Контрольно-Кассовый Чек [14:43:07]line ПРОДАЖА [14:43:07]line ТРК (МРК, ГНК) : 32 [14:43:07]line Товар: 2710124130 [14:43:07]line Аи-92-К-5 [14:43:07]line 15.070 * 66.40 [14:43:07]line = 1000.65 [14:43:07]line НДС 12% НСП 1% [14:43:07]line > о реализуемом товаре [14:43:07]line ОКРУГЛЕНИЕ: -0.65 [14:43:07]line ИТОГО: 1000.00 [14:43:07]line Внесено: 1000.00 [14:43:07]line СДАЧА: 0.00 [14:43:07]line НСП 1% : 8.85 [14:43:07]line НДС 12% : 106.26 [14:43:07]line Наличными: 1000.00 [14:43:07]line Безнал.: 0.00 [14:43:07]line Место: АЗС № 120 "Партнер Нефть" [14:43:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:43:07]line СНО: Общий режим [14:43:07]line Чек 135 22.06.2024 14:43 [14:43:07]line Смена: 356 ФФД: 1.0 [14:43:07]line ЗНМ: 0300000164 [14:43:07]line РНМ: 0000000000092785 [14:43:07]line Версия ККМ: 001 [14:43:07]line ФМ: 0000000000875093 [14:43:07]line ФД: 104402 [14:43:07]line ФПД: 165695651438488 [14:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144307&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104402&fm=165695651438488&tin=02508201610067®Number=0000000000092785&sum=100000 [14:43:07]OFD Sender: Processing packet 104402 [packets to send 17, broken 16] [14:43:07]ProducePacketName [14:43:07]name=ofd_packets/00104402 [14:43:07]OFD Sender: To server: pG, [14:43:07]CommunicateWithHost lk.salyk.kg:30040 [14:43:07]ConnectInit lk.salyk.kg [14:43:07]written 0, free lines is 4095 [14:43:07]Connected sock=10 [14:43: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 BB A3 07 01 A8 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 FB E2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 96 B3 06 71 DF 98 5C 24 CD D0 23 8B DF 66 [14:43: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 37 15 47 00 B2 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 D2 97 01 00 F4 03 04 00 7A 89 76 66 B6 04 01 00 00 E7 7B 39 D7 8E 02 E3 B9 [14:43:07]CommunicateWithHost err = 0 [14:43:07]CheckOFDResponse [14:43:07]1017 (14) - 77093643461234 [14:43:07]1041 (16) - 0000000000875093 [14:43:07]1040 (4) - 104402 [14:43:07]1012 (4) - 22.06.2024 08:21 [14:43:07]1206 (1) - 0 [14:43:07]OFD Sender: Remove packet 104402 [14:43:07]ProducePacketName [14:43:07]name=ofd_packets/00104402 [14:43:07]NVStorageDeleteData [14:43:08]Write to MH i2c: 01 00 00 AA 19 C3 [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 07 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 07 00 AA 19 00 00 00 00 00 F1 0C C7 [14:43:08]RasterBufferAndPrint [14:43:08]line [14:43:08]line [14:43:08]line [14:43:08]line [14:43:08]line [14:43:08]written 0, free lines is 3319 [14:43:08]MH_Cut [14:43:08]Write to MH i2c: D1 01 00 B1 19 01 9C [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: D1 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: D1 01 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: D1 01 00 B1 19 00 9B [14:43:08]Write to MH i2c: 01 00 00 B2 19 CB [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]OFD Sender: No OFD packet to send [14:43:08]*** Cut start [14:43:08]*** Partial cut [14:43:08]*** CUTSNS_PIN = 1 [14:43:08]*** CUTSNS_PIN = 0 [14:43:09]*** Brake cut motor [14:43:09]Read from MH i2c: 01 [14:43:09]MH_I2C_Read... [14:43:09]*** Stop cut motor [14:43:09]*** Cut end [14:43:09]Read from MH i2c: 01 07 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 07 00 B2 19 00 00 00 00 00 FF 0F E0 [14:43:09]process_action close_receipt done [14:43:09]requested_data is exist [14:43:09]produce_requested_data [14:43:09]requested_item fm.sn is exist - process it [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 11 00 00 [14:43:09]Write to MH i2c: E2 08 00 B3 19 80 11 00 00 00 00 00 00 46 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 17 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 17 00 B3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [14:43: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:43:09]wFMCommunicate OK [14:43:09]requested_item fd.num is exist - process it [14:43:09]SAM_PROTO_GetFieldsCounters [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 13 00 00 [14:43:09]Write to MH i2c: E2 08 00 B4 19 80 13 00 00 00 00 00 00 49 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 62 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 62 00 B4 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D4 [14:43: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 D2 97 01 00 0E 04 04 00 64 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 [14:43:09]wFMCommunicate OK [14:43:09]SAM_PROTO_GetFieldsCounters done [14:43:09]requested_item shift.num is exist - process it [14:43:09]requested_item shift.opened is exist - process it [14:43:09]req_shift_opened [14:43:09]FM_GetShiftState [14:43:09]SAM_PROTO_GetShiftState [14:43:09]wFMCommunicate request_size=4 [14:43:09]MH_SAM_APDU [14:43:09]CAPDU: 80 13 01 00 [14:43:09]Write to MH i2c: E2 08 00 B5 19 80 13 01 00 00 00 00 00 4B [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 [14:43:09]MH_I2C_Read... [14:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:09]Read from MH i2c: E2 0E 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: E2 0E 00 B5 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3D [14:43:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:43:09]wFMCommunicate OK [14:43:09]SAM_PROTO_GetShiftState done [14:43:09]FM_GetShiftState done [14:43:09]req_shift_opened done [14:43:09]requested_item shift.open_date is exist - process it [14:43:09]req_shift_open_date [14:43:09]req_shift_open_date done [14:43:09]produce_requested_data done [14:43:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104402,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:43:09]process_action_free close_receipt [14:43:09]json_value_free [14:43:09]json_value_free done [14:43:09]process_json_proto returns [14:43:09]Send response to host [14:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104402,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:43:09]free response buf [14:43:09]execute_script done [14:43:09]execute_script returns [14:43:09]free content buf [14:43:09]Sock 7.Close socket [14:43:09]Sock 7.Thread stoped [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:17]accept exits with 9 [14:47:17]New connection [14:47:17]New thread 3066449252 created [14:47:17]Thread 3066592612 joined [14:47:17]Waiting for new connection... [14:47:17] Sock 9.Parse request [14:47:17]Sock 9.Check first char [14:47:17]Sock 9.First char is OK [14:47:17]request: POST /json_proto HTTP/1.0 [14:47:17]Method: POST [14:47:17]URL: /json_proto [14:47:17]Method is POST - this is cgi request [14:47:17]url: /json_proto [14:47:17]query_string will be loaded in cgi processing [14:47:17]execute_cgi json_proto POST (null) [14:47:17]execute_cgi path=json_proto method=POST [14:47:17]POST find Content-Length [14:47:17]Host: 172.17.38.133:8080 [14:47:17]Content-Length: 824 [14:47:17]Content-Type: application/json [14:47:17] [14:47:17]POST finish read [14:47:17]Found Content-Length = 824 [14:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673953", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:17]execute_script... [14:47: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)673953", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:17]POST & json_proto [14:47:17]process_json_proto [14:47:17]json parsed OK: [14:47:17]protocol is kg_v1.0 [14:47:17]action value=close_receipt [14:47:17]process_action close_receipt [14:47:17]cmd_close_receipt [14:47:17]MH_GetDate [14:47:17]Write to MH i2c: F0 00 00 B6 19 BE [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: F0 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: F0 09 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: F0 09 00 B6 19 00 F7 E3 76 66 BD 8F 7C 64 A9 [14:47:17]GetLastDocTimeStamp 1719067387 [14:47:17]current date 1719067639 [14:47:17]FM_GetShiftState [14:47:17]SAM_PROTO_GetShiftState [14:47:17]wFMCommunicate request_size=4 [14:47:17]MH_SAM_APDU [14:47:17]CAPDU: 80 13 01 00 [14:47:17]Write to MH i2c: E2 08 00 B7 19 80 13 01 00 00 00 00 00 4D [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:17]Read from MH i2c: E2 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: E2 0E 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: E2 0E 00 B7 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 3F [14:47:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:47:17]wFMCommunicate OK [14:47:17]SAM_PROTO_GetShiftState done [14:47:17]FM_GetShiftState done [14:47:17]opened in 1719016176 [14:47:17]opened+sec_in_day 1719102576 [14:47:17]quantity*price = 150028 [14:47:17]sum+1 = 150029 [14:47:17]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 СНО: Общий режим Чек 136 22.06.2024 14:47 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104403 ФПД: 79518310433698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104403&fm=79518310433698&tin=02508201610067®Number=0000000000092785&sum=150028 [14:47:19]StoreToDocumentArchive [14:47:19]shift 356 fd 104403 [14:47:19]save to /storage/0356/doc_00104403 [14:47:19]save last doc name /storage/0356/doc_00104403 to /storage/kkm_last_doc_name [14:47:19]save OK [14:47:19]Clear old archive folders... [14:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:47:19]tlvbuf is B6E69730 [14:47:19]SAM_PROTO_ClearQueue [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 09 00 00 [14:47:19]Write to MH i2c: E2 08 00 C4 19 80 09 00 00 00 00 00 00 4F [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:19]Read from MH i2c: E2 03 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [14:47:19]RAPDU: 90 00 [14:47:19]wFMCommunicate OK [14:47:19]SAM_PROTO_ClearQueue done [14:47:19]KKMCreateOFDPacket [14:47:19]OFDProtocolAddRootSTLVToBuf [14:47:19]FM_MakeSignedData [14:47:19]FM_MakeSignedData [14:47:19]SAM_PROTO_SignData [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 0D 01 02 [14:47:19]Write to MH i2c: E2 08 00 C5 19 80 0D 01 02 00 00 00 00 57 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [14:47:19]RAPDU: 90 00 [14:47:19]wFMCommunicate OK [14:47:19]wFMCommunicate request_size=255 [14:47:19]MH_SAM_APDU [14:47: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 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 88 00 00 00 F4 03 04 00 F7 E3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:47:19]Write to MH i2c: E2 02 01 C6 19 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 88 00 00 00 F4 03 04 00 F7 E3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 B1 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [14:47:19]RAPDU: 90 00 [14:47:19]wFMCommunicate OK [14:47:19]wFMCommunicate request_size=11 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 0D 02 02 06 48 52 4C A5 83 A2 [14:47:19]Write to MH i2c: E2 0E 00 C7 19 80 0D 02 02 06 00 48 52 4C A5 83 A2 00 00 16 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [14:47:19]RAPDU: 90 00 [14:47:19]wFMCommunicate OK [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 0D 03 02 [14:47:19]Write to MH i2c: E2 08 00 C8 19 80 0D 03 02 00 00 00 00 5C [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 0B 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 0B 00 C8 19 00 05 14 09 C1 C1 9A 1F F4 90 00 AE [14:47:19]RAPDU: 05 14 09 C1 C1 9A 1F F4 90 00 [14:47:19]wFMCommunicate OK [14:47:19]SAM_PROTO_SignData done [14:47:19]FM_MakeSignedData done [14:47:19]CreateOFDProtocolMessage [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 11 00 00 [14:47:19]Write to MH i2c: E2 08 00 C9 19 80 11 00 00 00 00 00 00 5C [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 C9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [14:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:47:19]wFMCommunicate OK [14:47:19]CreateOFDProtocolMessage done [14:47:19]OFDSenderStorePacket 104403 [14:47:19]StoreOFDPacket docnum=104403 [14:47: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 10 01 00 00 B3 4D 08 01 8B 6A 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 88 00 00 00 F4 03 04 00 F7 E3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 48 52 4C A5 83 A2 05 14 09 C1 C1 9A 1F F4 [14:47:19]CheckFolder [14:47:19]dirname=/storage/ofd_packets [14:47:19]CheckFolder done [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00104403 [14:47:19]NVStorageSaveData ofd_packets/00104403 [14:47:19]File name is /storage/ofd_packets/00104403 [14:47:19]Write 302 bytes [14:47:19]NVStorageSaveData done [14:47:19]OFDSenderStorePacket done [14:47:19]KKMCreateOFDPacket done [14:47:19]NVStorageSaveData kkm_last_timestamp [14:47:19]File name is /storage/kkm_last_timestamp [14:47:19]Write 4 bytes [14:47:19]NVStorageSaveData done [14:47:19]ExternCall_PrintAddStr [14:47:19]wPrintStart [14:47:19]Write to MH i2c: 01 00 00 CA 19 E3 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 FF 0F F8 [14:47:19]RasterBufferAndPrint [14:47:19]line Счет N : (1)673953 [14:47:19]line ИНН: 02508201610067 [14:47:19]line Контрольно-Кассовый Чек [14:47:19]line ПРОДАЖА [14:47:19]line ТРК (МРК, ГНК) : 21 [14:47:19]line Товар: 2710194210 [14:47:19]line ДТ(л)-К-5 [14:47:19]line 20.580 * 72.90 [14:47:19]line = 1500.28 [14:47:19]line НДС 12% НСП 1% [14:47:19]line > о реализуемом товаре [14:47:19]line ИТОГО: 1500.28 [14:47:19]line НСП 1% : 13.28 [14:47:19]line НДС 12% : 159.32 [14:47:19]line Наличными: 0.00 [14:47:19]line Безнал.: 1500.28 [14:47:19]line Место: АЗС № 120 "Партнер Нефть" [14:47:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:47:19]line СНО: Общий режим [14:47:19]line Чек 136 22.06.2024 14:47 [14:47:19]line Смена: 356 ФФД: 1.0 [14:47:19]line ЗНМ: 0300000164 [14:47:19]line РНМ: 0000000000092785 [14:47:19]line Версия ККМ: 001 [14:47:19]line Платежная система: Бакай Банк [14:47:19]line ФМ: 0000000000875093 [14:47:19]line ФД: 104403 [14:47:19]line ФПД: 79518310433698 [14:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104403&fm=79518310433698&tin=02508201610067®Number=0000000000092785&sum=150028 [14:47:19]OFD Sender: Processing packet 104403 [packets to send 17, broken 16] [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00104403 [14:47:19]OFD Sender: To server: pG, [14:47:19]CommunicateWithHost lk.salyk.kg:30040 [14:47:19]ConnectInit lk.salyk.kg [14:47:19]written 0, free lines is 4095 [14:47:20]Connected sock=10 [14:47: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 B3 4D 08 01 8B 6A 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 88 00 00 00 F4 03 04 00 F7 E3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 48 52 4C A5 83 A2 05 14 09 C1 C1 9A 1F F4 [14:47: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 B5 94 47 00 0C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 97 01 00 F4 03 04 00 76 8A 76 66 B6 04 01 00 00 4F DF 56 9D 6B C8 EF 3D [14:47:20]CommunicateWithHost err = 0 [14:47:20]CheckOFDResponse [14:47:20]1017 (14) - 77093643461234 [14:47:20]1041 (16) - 0000000000875093 [14:47:20]1040 (4) - 104403 [14:47:20]1012 (4) - 22.06.2024 08:25 [14:47:20]1206 (1) - 0 [14:47:20]OFD Sender: Remove packet 104403 [14:47:20]ProducePacketName [14:47:20]name=ofd_packets/00104403 [14:47:20]NVStorageDeleteData [14:47:20]Write to MH i2c: 01 00 00 F4 19 0D [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 E5 0C 05 [14:47:20]RasterBufferAndPrint [14:47:20]line [14:47:20]line [14:47:20]line [14:47:20]line [14:47:20]line [14:47:20]written 0, free lines is 3307 [14:47:20]MH_Cut [14:47:20]Write to MH i2c: D1 01 00 FB 19 01 E6 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D1 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D1 01 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D1 01 00 FB 19 00 E5 [14:47:20]Write to MH i2c: 01 00 00 FC 19 15 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]OFD Sender: No OFD packet to send [14:47:21]*** Cut start [14:47:21]*** Partial cut [14:47:21]*** CUTSNS_PIN = 1 [14:47:21]*** CUTSNS_PIN = 0 [14:47:21]*** Brake cut motor [14:47:21]Read from MH i2c: 01 [14:47:21]MH_I2C_Read... [14:47:21]*** Stop cut motor [14:47:21]*** Cut end [14:47:21]Read from MH i2c: 01 07 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [14:47:21]process_action close_receipt done [14:47:21]requested_data is exist [14:47:21]produce_requested_data [14:47:21]requested_item fm.sn is exist - process it [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 11 00 00 [14:47:21]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 17 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [14:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:47:21]wFMCommunicate OK [14:47:21]requested_item fd.num is exist - process it [14:47:21]SAM_PROTO_GetFieldsCounters [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 13 00 00 [14:47:21]Write to MH i2c: E2 08 00 FE 19 80 13 00 00 00 00 00 00 93 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 62 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 62 00 FE 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 22 [14:47: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 D3 97 01 00 0E 04 04 00 64 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 [14:47:22]wFMCommunicate OK [14:47:22]SAM_PROTO_GetFieldsCounters done [14:47:22]requested_item shift.num is exist - process it [14:47:22]requested_item shift.opened is exist - process it [14:47:22]req_shift_opened [14:47:22]FM_GetShiftState [14:47:22]SAM_PROTO_GetShiftState [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 13 01 00 [14:47:22]Write to MH i2c: E2 08 00 FF 19 80 13 01 00 00 00 00 00 95 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0E 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0E 00 FF 19 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 87 [14:47:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:47:22]wFMCommunicate OK [14:47:22]SAM_PROTO_GetShiftState done [14:47:22]FM_GetShiftState done [14:47:22]req_shift_opened done [14:47:22]requested_item shift.open_date is exist - process it [14:47:22]req_shift_open_date [14:47:22]req_shift_open_date done [14:47:22]produce_requested_data done [14:47:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104403,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:47:22]process_action_free close_receipt [14:47:22]json_value_free [14:47:22]json_value_free done [14:47:22]process_json_proto returns [14:47:22]Send response to host [14:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104403,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:47:22]free response buf [14:47:22]execute_script done [14:47:22]execute_script returns [14:47:22]free content buf [14:47:22]Sock 9.Close socket [14:47:22]Sock 9.Thread stoped [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:16]accept exits with 7 [14:48:16]New connection [14:48:16]New thread 3066592612 created [14:48:16]Thread 3066449252 joined [14:48:16]Waiting for new connection... [14:48:16] Sock 7.Parse request [14:48:16]Sock 7.Check first char [14:48:16]Sock 7.First char is OK [14:48:16]request: POST /json_proto HTTP/1.0 [14:48:16]Method: POST [14:48:16]URL: /json_proto [14:48:16]Method is POST - this is cgi request [14:48:16]url: /json_proto [14:48:16]query_string will be loaded in cgi processing [14:48:16]execute_cgi json_proto POST (null) [14:48:16]execute_cgi path=json_proto method=POST [14:48:16]POST find Content-Length [14:48:16]Host: 172.17.38.133:8080 [14:48:16]Content-Length: 677 [14:48:16]Content-Type: application/json [14:48:16] [14:48:16]POST finish read [14:48:16]Found Content-Length = 677 [14:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673954", "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" ] } } [14:48:16]execute_script... [14:48: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)673954", "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" ] } } [14:48:16]POST & json_proto [14:48:16]process_json_proto [14:48:16]json parsed OK: [14:48:16]protocol is kg_v1.0 [14:48:16]action value=close_receipt [14:48:16]process_action close_receipt [14:48:16]cmd_close_receipt [14:48:16]MH_GetDate [14:48:16]Write to MH i2c: F0 00 00 00 1A 09 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: F0 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: F0 09 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: F0 09 00 00 1A 00 32 E4 76 66 BD 8F 7C 64 30 [14:48:16]GetLastDocTimeStamp 1719067639 [14:48:16]current date 1719067698 [14:48:16]FM_GetShiftState [14:48:16]SAM_PROTO_GetShiftState [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 13 01 00 [14:48:16]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0E 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8A [14:48:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_GetShiftState done [14:48:16]FM_GetShiftState done [14:48:16]opened in 1719016176 [14:48:16]opened+sec_in_day 1719102576 [14:48:16]quantity*price = 40039 [14:48:16]sum+1 = 40040 [14:48:16]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 СНО: Общий режим Чек 137 22.06.2024 14:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104404 ФПД: 1956611876516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144818&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104404&fm=1956611876516&tin=02508201610067®Number=0000000000092785&sum=40000 [14:48:17]StoreToDocumentArchive [14:48:17]shift 356 fd 104404 [14:48:17]save to /storage/0356/doc_00104404 [14:48:17]save last doc name /storage/0356/doc_00104404 to /storage/kkm_last_doc_name [14:48:17]save OK [14:48:17]Clear old archive folders... [14:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:17]tlvbuf is B6D50A70 [14:48:17]SAM_PROTO_ClearQueue [14:48:17]wFMCommunicate request_size=4 [14:48:17]MH_SAM_APDU [14:48:17]CAPDU: 80 09 00 00 [14:48:17]Write to MH i2c: E2 08 00 0E 1A 80 09 00 00 00 00 00 00 9A [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [14:48:17]RAPDU: 90 00 [14:48:17]wFMCommunicate OK [14:48:17]SAM_PROTO_ClearQueue done [14:48:17]KKMCreateOFDPacket [14:48:17]OFDProtocolAddRootSTLVToBuf [14:48:17]FM_MakeSignedData [14:48:17]FM_MakeSignedData [14:48:17]SAM_PROTO_SignData [14:48:17]wFMCommunicate request_size=4 [14:48:17]MH_SAM_APDU [14:48:17]CAPDU: 80 0D 01 02 [14:48:17]Write to MH i2c: E2 08 00 0F 1A 80 0D 01 02 00 00 00 00 A2 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [14:48:17]RAPDU: 90 00 [14:48:17]wFMCommunicate OK [14:48:17]wFMCommunicate request_size=255 [14:48:17]MH_SAM_APDU [14:48: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 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 89 00 00 00 F4 03 04 00 32 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 01 [14:48:17]Write to MH i2c: E2 02 01 10 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 32 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 01 00 00 77 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 03 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [14:48:18]RAPDU: 90 00 [14:48:18]wFMCommunicate OK [14:48:18]wFMCommunicate request_size=10 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 0D 02 02 05 C7 8F 27 E6 A4 [14:48:18]Write to MH i2c: E2 0D 00 11 1A 80 0D 02 02 05 00 C7 8F 27 E6 A4 00 00 B6 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 03 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [14:48:18]RAPDU: 90 00 [14:48:18]wFMCommunicate OK [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 0D 03 02 [14:48:18]Write to MH i2c: E2 08 00 12 1A 80 0D 03 02 00 00 00 00 A7 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0B 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0B 00 12 1A 00 00 FA AC 93 56 18 5C AD 90 00 58 [14:48:18]RAPDU: 00 FA AC 93 56 18 5C AD 90 00 [14:48:18]wFMCommunicate OK [14:48:18]SAM_PROTO_SignData done [14:48:18]FM_MakeSignedData done [14:48:18]CreateOFDProtocolMessage [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 11 00 00 [14:48:18]Write to MH i2c: E2 08 00 13 1A 80 11 00 00 00 00 00 00 A7 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 13 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [14:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:48:18]wFMCommunicate OK [14:48:18]CreateOFDProtocolMessage done [14:48:18]OFDSenderStorePacket 104404 [14:48:18]StoreOFDPacket docnum=104404 [14:48: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 BA 7C 07 01 33 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 32 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 01 C7 8F 27 E6 A4 00 FA AC 93 56 18 5C AD [14:48:18]CheckFolder [14:48:18]dirname=/storage/ofd_packets [14:48:18]CheckFolder done [14:48:18]ProducePacketName [14:48:18]name=ofd_packets/00104404 [14:48:18]NVStorageSaveData ofd_packets/00104404 [14:48:18]File name is /storage/ofd_packets/00104404 [14:48:18]Write 301 bytes [14:48:18]NVStorageSaveData done [14:48:18]OFDSenderStorePacket done [14:48:18]KKMCreateOFDPacket done [14:48:18]NVStorageSaveData kkm_last_timestamp [14:48:18]File name is /storage/kkm_last_timestamp [14:48:18]Write 4 bytes [14:48:18]NVStorageSaveData done [14:48:18]ExternCall_PrintAddStr [14:48:18]wPrintStart [14:48:18]Write to MH i2c: 01 00 00 14 1A 2E [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: 01 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: 01 07 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 FF 0F 43 [14:48:18]RasterBufferAndPrint [14:48:18]line Счет N : (1)673954 [14:48:18]line ИНН: 02508201610067 [14:48:18]line Контрольно-Кассовый Чек [14:48:18]line ПРОДАЖА [14:48:18]line ТРК (МРК, ГНК) : 42 [14:48:18]line Товар: 2710124130 [14:48:18]line Аи-92-К-5 [14:48:18]line 6.030 * 66.40 [14:48:18]line = 400.39 [14:48:18]line НДС 12% НСП 1% [14:48:18]line > о реализуемом товаре [14:48:18]line ОКРУГЛЕНИЕ: -0.39 [14:48:18]line ИТОГО: 400.00 [14:48:18]line Внесено: 400.00 [14:48:18]line СДАЧА: 0.00 [14:48:18]line НСП 1% : 3.54 [14:48:18]line НДС 12% : 42.52 [14:48:18]line Наличными: 400.00 [14:48:18]line Безнал.: 0.00 [14:48:18]line Место: АЗС № 120 "Партнер Нефть" [14:48:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:48:18]line СНО: Общий режим [14:48:18]line Чек 137 22.06.2024 14:48 [14:48:18]line Смена: 356 ФФД: 1.0 [14:48:18]line ЗНМ: 0300000164 [14:48:18]line РНМ: 0000000000092785 [14:48:18]line Версия ККМ: 001 [14:48:18]line ФМ: 0000000000875093 [14:48:18]line ФД: 104404 [14:48:18]line ФПД: 1956611876516 [14:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144818&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104404&fm=1956611876516&tin=02508201610067®Number=0000000000092785&sum=40000 [14:48:18]OFD Sender: Processing packet 104404 [packets to send 17, broken 16] [14:48:18]ProducePacketName [14:48:18]name=ofd_packets/00104404 [14:48:18]OFD Sender: To server: pG, [14:48:18]CommunicateWithHost lk.salyk.kg:30040 [14:48:18]ConnectInit lk.salyk.kg [14:48:18]written 0, free lines is 4095 [14:48:18]Connected sock=10 [14:48: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 BA 7C 07 01 33 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 32 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 01 C7 8F 27 E6 A4 00 FA AC 93 56 18 5C AD [14:48: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 70 2C 47 00 A0 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 D4 97 01 00 F4 03 04 00 B1 8A 76 66 B6 04 01 00 00 68 80 32 87 34 94 85 AF [14:48:18]CommunicateWithHost err = 0 [14:48:18]CheckOFDResponse [14:48:18]1017 (14) - 77093643461234 [14:48:18]1041 (16) - 0000000000875093 [14:48:18]1040 (4) - 104404 [14:48:18]1012 (4) - 22.06.2024 08:26 [14:48:18]1206 (1) - 0 [14:48:18]OFD Sender: Remove packet 104404 [14:48:18]ProducePacketName [14:48:18]name=ofd_packets/00104404 [14:48:18]NVStorageDeleteData [14:48:19]Write to MH i2c: 01 00 00 3F 1A 59 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: 01 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: 01 07 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 DD 0C 49 [14:48:19]RasterBufferAndPrint [14:48:19]line [14:48:19]line [14:48:19]line [14:48:19]line [14:48:19]line [14:48:19]written 0, free lines is 3299 [14:48:19]MH_Cut [14:48:19]Write to MH i2c: D1 01 00 46 1A 01 32 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: D1 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: D1 01 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: D1 01 00 46 1A 00 31 [14:48:19]Write to MH i2c: 01 00 00 47 1A 61 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]OFD Sender: No OFD packet to send [14:48:19]*** Cut start [14:48:19]*** Partial cut [14:48:19]*** CUTSNS_PIN = 1 [14:48:19]*** CUTSNS_PIN = 0 [14:48:20]*** Brake cut motor [14:48:20]Read from MH i2c: 01 [14:48:20]MH_I2C_Read... [14:48:20]*** Stop cut motor [14:48:20]*** Cut end [14:48:20]Read from MH i2c: 01 07 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 FF 0F 76 [14:48:20]process_action close_receipt done [14:48:20]requested_data is exist [14:48:20]produce_requested_data [14:48:20]requested_item fm.sn is exist - process it [14:48:20]wFMCommunicate request_size=4 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 11 00 00 [14:48:20]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:20]Read from MH i2c: E2 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 17 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [14:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:48:20]wFMCommunicate OK [14:48:20]requested_item fd.num is exist - process it [14:48:20]SAM_PROTO_GetFieldsCounters [14:48:20]wFMCommunicate request_size=4 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 13 00 00 [14:48:20]Write to MH i2c: E2 08 00 49 1A 80 13 00 00 00 00 00 00 DF [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:20]Read from MH i2c: E2 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 62 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 62 00 49 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 72 [14:48: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 D4 97 01 00 0E 04 04 00 64 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 [14:48:20]wFMCommunicate OK [14:48:20]SAM_PROTO_GetFieldsCounters done [14:48:20]requested_item shift.num is exist - process it [14:48:20]requested_item shift.opened is exist - process it [14:48:20]req_shift_opened [14:48:20]FM_GetShiftState [14:48:20]SAM_PROTO_GetShiftState [14:48:20]wFMCommunicate request_size=4 [14:48:20]MH_SAM_APDU [14:48:20]CAPDU: 80 13 01 00 [14:48:20]Write to MH i2c: E2 08 00 4A 1A 80 13 01 00 00 00 00 00 E1 [14:48:20]Write i2c OK [14:48:20]MH_I2C_Read... [14:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:20]Read from MH i2c: E2 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 0E 00 [14:48:20]MH_I2C_Read... [14:48:20]Read from MH i2c: E2 0E 00 4A 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D3 [14:48:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:48:20]wFMCommunicate OK [14:48:20]SAM_PROTO_GetShiftState done [14:48:20]FM_GetShiftState done [14:48:20]req_shift_opened done [14:48:20]requested_item shift.open_date is exist - process it [14:48:20]req_shift_open_date [14:48:20]req_shift_open_date done [14:48:20]produce_requested_data done [14:48:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104404,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:48:20]process_action_free close_receipt [14:48:20]json_value_free [14:48:20]json_value_free done [14:48:20]process_json_proto returns [14:48:20]Send response to host [14:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104404,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:48:20]free response buf [14:48:20]execute_script done [14:48:20]execute_script returns [14:48:20]free content buf [14:48:20]Sock 7.Close socket [14:48:20]Sock 7.Thread stoped [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:43]accept exits with 9 [14:49:43]New connection [14:49:43]New thread 3066449252 created [14:49:43]Thread 3066592612 joined [14:49:43]Waiting for new connection... [14:49:43] Sock 9.Parse request [14:49:43]Sock 9.Check first char [14:49:43]Sock 9.First char is OK [14:49:43]request: POST /json_proto HTTP/1.0 [14:49:43]Method: POST [14:49:43]URL: /json_proto [14:49:43]Method is POST - this is cgi request [14:49:43]url: /json_proto [14:49:43]query_string will be loaded in cgi processing [14:49:43]execute_cgi json_proto POST (null) [14:49:43]execute_cgi path=json_proto method=POST [14:49:43]POST find Content-Length [14:49:43]Host: 172.17.38.133:8080 [14:49:43]Content-Length: 687 [14:49:43]Content-Type: application/json [14:49:43] [14:49:43]POST finish read [14:49:43]Found Content-Length = 687 [14:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673957", "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:49:43]execute_script... [14:49: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)673957", "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:49:43]POST & json_proto [14:49:43]process_json_proto [14:49:43]json parsed OK: [14:49:43]protocol is kg_v1.0 [14:49:43]action value=close_receipt [14:49:43]process_action close_receipt [14:49:43]cmd_close_receipt [14:49:43]MH_GetDate [14:49:43]Write to MH i2c: F0 00 00 4B 1A 54 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: F0 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: F0 09 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: F0 09 00 4B 1A 00 89 E4 76 66 BD 8F 7C 64 D2 [14:49:43]GetLastDocTimeStamp 1719067698 [14:49:43]current date 1719067785 [14:49:43]FM_GetShiftState [14:49:43]SAM_PROTO_GetShiftState [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 13 01 00 [14:49:43]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 0E 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D5 [14:49:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:49:43]wFMCommunicate OK [14:49:43]SAM_PROTO_GetShiftState done [14:49:43]FM_GetShiftState done [14:49:43]opened in 1719016176 [14:49:43]opened+sec_in_day 1719102576 [14:49:43]quantity*price = 200037 [14:49:43]sum+1 = 200039 [14:49:43]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 СНО: Общий режим Чек 138 22.06.2024 14:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104405 ФПД: 94408975341418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104405&fm=94408975341418&tin=02508201610067®Number=0000000000092785&sum=200000 [14:49:45]StoreToDocumentArchive [14:49:45]shift 356 fd 104405 [14:49:45]save to /storage/0356/doc_00104405 [14:49:45]save last doc name /storage/0356/doc_00104405 to /storage/kkm_last_doc_name [14:49:45]save OK [14:49:45]Clear old archive folders... [14:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:49:45]tlvbuf is 01036CB0 [14:49:45]SAM_PROTO_ClearQueue [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 09 00 00 [14:49:45]Write to MH i2c: E2 08 00 59 1A 80 09 00 00 00 00 00 00 E5 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]SAM_PROTO_ClearQueue done [14:49:45]KKMCreateOFDPacket [14:49:45]OFDProtocolAddRootSTLVToBuf [14:49:45]FM_MakeSignedData [14:49:45]FM_MakeSignedData [14:49:45]SAM_PROTO_SignData [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 01 02 [14:49:45]Write to MH i2c: E2 08 00 5A 1A 80 0D 01 02 00 00 00 00 ED [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=255 [14:49:45]MH_SAM_APDU [14:49: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 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 8A 00 00 00 F4 03 04 00 89 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [14:49:45]Write to MH i2c: E2 02 01 5B 1A 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 8A 00 00 00 F4 03 04 00 89 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 61 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=11 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 02 02 06 55 DD 4D 70 57 6A [14:49:45]Write to MH i2c: E2 0E 00 5C 1A 80 0D 02 02 06 00 55 DD 4D 70 57 6A 00 00 AC [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 03 02 [14:49:45]Write to MH i2c: E2 08 00 5D 1A 80 0D 03 02 00 00 00 00 F2 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0B 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0B 00 5D 1A 00 65 B6 08 F3 BC F3 46 F3 90 00 F1 [14:49:45]RAPDU: 65 B6 08 F3 BC F3 46 F3 90 00 [14:49:45]wFMCommunicate OK [14:49:45]SAM_PROTO_SignData done [14:49:45]FM_MakeSignedData done [14:49:45]CreateOFDProtocolMessage [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 11 00 00 [14:49:45]Write to MH i2c: E2 08 00 5E 1A 80 11 00 00 00 00 00 00 F2 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 17 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 17 00 5E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [14:49: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:49:45]wFMCommunicate OK [14:49:45]CreateOFDProtocolMessage done [14:49:45]OFDSenderStorePacket 104405 [14:49:45]StoreOFDPacket docnum=104405 [14:49: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 50 51 08 01 30 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 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 8A 00 00 00 F4 03 04 00 89 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 DD 4D 70 57 6A 65 B6 08 F3 BC F3 46 F3 [14:49:45]CheckFolder [14:49:45]dirname=/storage/ofd_packets [14:49:45]CheckFolder done [14:49:45]ProducePacketName [14:49:45]name=ofd_packets/00104405 [14:49:45]NVStorageSaveData ofd_packets/00104405 [14:49:45]File name is /storage/ofd_packets/00104405 [14:49:45]Write 302 bytes [14:49:45]NVStorageSaveData done [14:49:45]OFDSenderStorePacket done [14:49:45]KKMCreateOFDPacket done [14:49:45]NVStorageSaveData kkm_last_timestamp [14:49:45]File name is /storage/kkm_last_timestamp [14:49:45]Write 4 bytes [14:49:45]NVStorageSaveData done [14:49:45]OFD Sender: Processing packet 104405 [packets to send 17, broken 16] [14:49:45]ProducePacketName [14:49:45]name=ofd_packets/00104405 [14:49:45]OFD Sender: To server: pG, [14:49:45]CommunicateWithHost lk.salyk.kg:30040 [14:49:45]ConnectInit lk.salyk.kg [14:49:45]ExternCall_PrintAddStr [14:49:45]wPrintStart [14:49:45]Write to MH i2c: 01 00 00 5F 1A 79 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [14:49:45]RasterBufferAndPrint [14:49:45]line Счет N : (1)673957 [14:49:45]line ИНН: 02508201610067 [14:49:45]line Контрольно-Кассовый Чек [14:49:45]line ПРОДАЖА [14:49:45]line ТРК (МРК, ГНК) : 21 [14:49:45]line Товар: 2710194210 [14:49:45]line ДТ(л)-К-5 [14:49:45]line 27.440 * 72.90 [14:49:45]line = 2000.38 [14:49:45]line НДС 12% НСП 1% [14:49:45]line > о реализуемом товаре [14:49:45]line ОКРУГЛЕНИЕ: -0.38 [14:49:45]line ИТОГО: 2000.00 [14:49:45]line Внесено: 2000.00 [14:49:45]line СДАЧА: 0.00 [14:49:45]line НСП 1% : 17.70 [14:49:45]line НДС 12% : 212.43 [14:49:45]line Наличными: 2000.00 [14:49:45]line Безнал.: 0.00 [14:49:45]line Место: АЗС № 120 "Партнер Нефть" [14:49:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:49:45]line СНО: Общий режим [14:49:45]line Чек 138 22.06.2024 14:49 [14:49:45]line Смена: 356 ФФД: 1.0 [14:49:45]line ЗНМ: 0300000164 [14:49:45]line РНМ: 0000000000092785 [14:49:45]line Версия ККМ: 001 [14:49:45]line ФМ: 0000000000875093 [14:49:45]line ФД: 104405 [14:49:45]line ФПД: 94408975341418 [14:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104405&fm=94408975341418&tin=02508201610067®Number=0000000000092785&sum=200000 [14:49:45]Connected sock=10 [14:49: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 50 51 08 01 30 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 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 8A 00 00 00 F4 03 04 00 89 E4 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 55 DD 4D 70 57 6A 65 B6 08 F3 BC F3 46 F3 [14:49:45]written 0, free lines is 4095 [14:49: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 27 47 47 00 75 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 D5 97 01 00 F4 03 04 00 08 8B 76 66 B6 04 01 00 00 AE 97 62 0F 28 E2 32 9B [14:49:46]CommunicateWithHost err = 0 [14:49:46]CheckOFDResponse [14:49:46]1017 (14) - 77093643461234 [14:49:46]1041 (16) - 0000000000875093 [14:49:46]1040 (4) - 104405 [14:49:46]1012 (4) - 22.06.2024 08:27 [14:49:46]1206 (1) - 0 [14:49:46]OFD Sender: Remove packet 104405 [14:49:46]ProducePacketName [14:49:46]name=ofd_packets/00104405 [14:49:46]NVStorageDeleteData [14:49:46]Write to MH i2c: 01 00 00 8A 1A A4 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 8A 1A 00 00 00 00 00 DD 0C 94 [14:49:46]RasterBufferAndPrint [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]written 0, free lines is 3300 [14:49:46]MH_Cut [14:49:46]Write to MH i2c: D1 01 00 91 1A 01 7D [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 91 1A 00 7C [14:49:46]Write to MH i2c: 01 00 00 92 1A AC [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]OFD Sender: No OFD packet to send [14:49:47]*** Cut start [14:49:47]*** Partial cut [14:49:47]*** CUTSNS_PIN = 1 [14:49:47]*** CUTSNS_PIN = 0 [14:49:47]*** Brake cut motor [14:49:47]Read from MH i2c: 01 [14:49:47]MH_I2C_Read... [14:49:47]*** Stop cut motor [14:49:47]*** Cut end [14:49:47]Read from MH i2c: 01 07 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [14:49:47]process_action close_receipt done [14:49:47]requested_data is exist [14:49:47]produce_requested_data [14:49:47]requested_item fm.sn is exist - process it [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 11 00 00 [14:49:47]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [14:49: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:49:47]wFMCommunicate OK [14:49:47]requested_item fd.num is exist - process it [14:49:47]SAM_PROTO_GetFieldsCounters [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 00 00 [14:49:47]Write to MH i2c: E2 08 00 94 1A 80 13 00 00 00 00 00 00 2A [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 62 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 62 00 94 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C1 [14:49: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 D5 97 01 00 0E 04 04 00 64 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 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetFieldsCounters done [14:49:47]requested_item shift.num is exist - process it [14:49:47]requested_item shift.opened is exist - process it [14:49:47]req_shift_opened [14:49:47]FM_GetShiftState [14:49:47]SAM_PROTO_GetShiftState [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 01 00 [14:49:47]Write to MH i2c: E2 08 00 95 1A 80 13 01 00 00 00 00 00 2C [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 95 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 1E [14:49:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetShiftState done [14:49:47]FM_GetShiftState done [14:49:47]req_shift_opened done [14:49:47]requested_item shift.open_date is exist - process it [14:49:47]req_shift_open_date [14:49:47]req_shift_open_date done [14:49:47]produce_requested_data done [14:49:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104405,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:49:47]process_action_free close_receipt [14:49:47]json_value_free [14:49:47]json_value_free done [14:49:47]process_json_proto returns [14:49:47]Send response to host [14:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104405,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:49:47]free response buf [14:49:47]execute_script done [14:49:47]execute_script returns [14:49:47]free content buf [14:49:47]Sock 9.Close socket [14:49:47]Sock 9.Thread stoped [14:49:51]OFD Sender: No OFD packet to send [14:49:52]accept exits with 7 [14:49:52]New connection [14:49:52]New thread 3066592612 created [14:49:52]Thread 3066449252 joined [14:49:52]Waiting for new connection... [14:49:52] Sock 7.Parse request [14:49:52]Sock 7.Check first char [14:49:52]Sock 7.First char is OK [14:49:52]request: POST /json_proto HTTP/1.0 [14:49:52]Method: POST [14:49:52]URL: /json_proto [14:49:52]Method is POST - this is cgi request [14:49:52]url: /json_proto [14:49:52]query_string will be loaded in cgi processing [14:49:52]execute_cgi json_proto POST (null) [14:49:52]execute_cgi path=json_proto method=POST [14:49:52]POST find Content-Length [14:49:52]Host: 172.17.38.133:8080 [14:49:52]Content-Length: 744 [14:49:52]Content-Type: application/json [14:49:52] [14:49:52]POST finish read [14:49:52]Found Content-Length = 744 [14:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104405, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673957", "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:49:52]execute_script... [14:49:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104405, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673957", "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:49:52]POST & json_proto [14:49:52]process_json_proto [14:49:52]json parsed OK: [14:49:52]protocol is kg_v1.0 [14:49:52]action value=close_receipt [14:49:52]process_action close_receipt [14:49:52]cmd_close_receipt [14:49:52]MH_GetDate [14:49:52]Write to MH i2c: F0 00 00 96 1A 9F [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 96 1A 00 92 E4 76 66 BD 8F 7C 64 26 [14:49:52]GetLastDocTimeStamp 1719067785 [14:49:52]current date 1719067794 [14:49:52]FM_GetShiftState [14:49:52]SAM_PROTO_GetShiftState [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 13 01 00 [14:49:52]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 20 [14:49:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_GetShiftState done [14:49:52]FM_GetShiftState done [14:49:52]opened in 1719016176 [14:49:52]opened+sec_in_day 1719102576 [14:49:52]quantity*price = 200037 [14:49:52]sum+1 = 200039 [14:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 139 22.06.2024 14:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104405 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104406 ФПД: 156402173329660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144954&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104406&fm=156402173329660&tin=02508201610067®Number=0000000000092785&sum=200000 [14:49:53]StoreToDocumentArchive [14:49:53]shift 356 fd 104406 [14:49:53]save to /storage/0356/doc_00104406 [14:49:53]save last doc name /storage/0356/doc_00104406 to /storage/kkm_last_doc_name [14:49:53]save OK [14:49:53]Clear old archive folders... [14:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:49:53]tlvbuf is 00F93420 [14:49:53]SAM_PROTO_ClearQueue [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 09 00 00 [14:49:53]Write to MH i2c: E2 08 00 A6 1A 80 09 00 00 00 00 00 00 32 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_ClearQueue done [14:49:53]KKMCreateOFDPacket [14:49:53]OFDProtocolAddRootSTLVToBuf [14:49:53]FM_MakeSignedData [14:49:53]FM_MakeSignedData [14:49:53]SAM_PROTO_SignData [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 01 02 [14:49:53]Write to MH i2c: E2 08 00 A7 1A 80 0D 01 02 00 00 00 00 3A [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=255 [14:49:53]MH_SAM_APDU [14:49:53]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 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 8B 00 00 00 F4 03 04 00 92 E4 76 66 0E 04 04 00 64 01 00 00 B9 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 D5 97 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 [14:49:53]Write to MH i2c: E2 02 01 A8 1A 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 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 8B 00 00 00 F4 03 04 00 92 E4 76 66 0E 04 04 00 64 01 00 00 B9 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 D5 97 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 EA [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [14:49:54]RAPDU: 90 00 [14:49:54]wFMCommunicate OK [14:49:54]wFMCommunicate request_size=39 [14:49:54]MH_SAM_APDU [14:49:54]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 D6 97 01 00 35 04 06 00 8E 3F 37 FB C0 FC [14:49:54]Write to MH i2c: E2 2A 00 A9 1A 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 D6 97 01 00 35 04 06 00 8E 3F 37 FB C0 FC 00 00 21 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 A9 1A 00 90 00 37 [14:49:54]RAPDU: 90 00 [14:49:54]wFMCommunicate OK [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 0D 03 02 [14:49:54]Write to MH i2c: E2 08 00 AA 1A 80 0D 03 02 00 00 00 00 3F [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 0B 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 0B 00 AA 1A 00 1E EB AD CB 44 14 49 F1 90 00 53 [14:49:54]RAPDU: 1E EB AD CB 44 14 49 F1 90 00 [14:49:54]wFMCommunicate OK [14:49:54]SAM_PROTO_SignData done [14:49:54]FM_MakeSignedData done [14:49:54]CreateOFDProtocolMessage [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 11 00 00 [14:49:54]Write to MH i2c: E2 08 00 AB 1A 80 11 00 00 00 00 00 00 3F [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 17 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 17 00 AB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [14:49:54]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:54]wFMCommunicate OK [14:49:54]CreateOFDProtocolMessage done [14:49:54]OFDSenderStorePacket 104406 [14:49:54]StoreOFDPacket docnum=104406 [14:49: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 2C 01 00 00 34 60 24 01 D3 B7 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 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 8B 00 00 00 F4 03 04 00 92 E4 76 66 0E 04 04 00 64 01 00 00 B9 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 D5 97 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 D6 97 01 00 35 04 06 00 8E 3F 37 FB C0 FC 1E EB AD CB 44 14 49 F1 [14:49:54]CheckFolder [14:49:54]dirname=/storage/ofd_packets [14:49:54]CheckFolder done [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00104406 [14:49:54]NVStorageSaveData ofd_packets/00104406 [14:49:54]File name is /storage/ofd_packets/00104406 [14:49:54]Write 330 bytes [14:49:54]NVStorageSaveData done [14:49:54]OFDSenderStorePacket done [14:49:54]KKMCreateOFDPacket done [14:49:54]NVStorageSaveData kkm_last_timestamp [14:49:54]File name is /storage/kkm_last_timestamp [14:49:54]Write 4 bytes [14:49:54]NVStorageSaveData done [14:49:54]ExternCall_PrintAddStr [14:49:54]wPrintStart [14:49:54]Write to MH i2c: 01 00 00 AC 1A C6 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [14:49:54]RasterBufferAndPrint [14:49:54]line Счет N : (1)673957 [14:49:54]line ИНН: 02508201610067 [14:49:54]line Контрольно-Кассовый Чек [14:49:54]line ВОЗВРАТ ПРОДАЖИ [14:49:54]line ТРК (МРК, ГНК) : 21 [14:49:54]line Товар: 2710194210 [14:49:54]line ДТ(л)-К-5 [14:49:54]line 27.440 * 72.90 [14:49:54]line = 2000.38 [14:49:54]line НДС 12% НСП 1% [14:49:54]line > о реализуемом товаре [14:49:54]line ОКРУГЛЕНИЕ: -0.38 [14:49:54]line ИТОГО: 2000.00 [14:49:54]line НСП 1% : 17.70 [14:49:54]line НДС 12% : 212.43 [14:49:54]line Наличными: 2000.00 [14:49:54]line Безнал.: 0.00 [14:49:54]line Место: АЗС № 120 "Партнер Нефть" [14:49:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:49:54]line СНО: Общий режим [14:49:54]line Чек 139 22.06.2024 14:49 [14:49:54]line Смена: 356 ФФД: 1.0 [14:49:54]line ЗНМ: 0300000164 [14:49:54]line РНМ: 0000000000092785 [14:49:54]line Версия ККМ: 001 [14:49:54]line ФД осн.: 104405 [14:49:54]line ФМ осн.: 0000000000875093 [14:49:54]line ФМ: 0000000000875093 [14:49:54]line ФД: 104406 [14:49:54]line ФПД: 156402173329660 [14:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144954&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104406&fm=156402173329660&tin=02508201610067®Number=0000000000092785&sum=200000 [14:49:54]written 0, free lines is 4095 [14:49:54]OFD Sender: Processing packet 104406 [packets to send 17, broken 16] [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00104406 [14:49:54]OFD Sender: To server: pG, [14:49:54]CommunicateWithHost lk.salyk.kg:30040 [14:49:54]ConnectInit lk.salyk.kg [14:49:54]Connected sock=10 [14:49: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 2C 01 00 00 34 60 24 01 D3 B7 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 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 8B 00 00 00 F4 03 04 00 92 E4 76 66 0E 04 04 00 64 01 00 00 B9 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 D5 97 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 D6 97 01 00 35 04 06 00 8E 3F 37 FB C0 FC 1E EB AD CB 44 14 49 F1 [14:49:54]Write to MH i2c: 01 00 00 D7 1A F1 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 06 0D 0B [14:49:54]RasterBufferAndPrint [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]written 0, free lines is 3346 [14:49:54]MH_Cut [14:49:54]Write to MH i2c: D1 01 00 DE 1A 01 CA [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 DE 1A 00 C9 [14:49:54]Write to MH i2c: 01 00 00 DF 1A F9 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49: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 AD AB 47 00 03 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 D6 97 01 00 F4 03 04 00 11 8B 76 66 B6 04 01 00 00 CC 84 81 26 E5 20 C6 48 [14:49:55]CommunicateWithHost err = 0 [14:49:55]CheckOFDResponse [14:49:55]1017 (14) - 77093643461234 [14:49:55]1041 (16) - 0000000000875093 [14:49:55]1040 (4) - 104406 [14:49:55]1012 (4) - 22.06.2024 08:28 [14:49:55]1206 (1) - 0 [14:49:55]OFD Sender: Remove packet 104406 [14:49:55]ProducePacketName [14:49:55]name=ofd_packets/00104406 [14:49:55]NVStorageDeleteData [14:49:55]*** Cut start [14:49:55]*** Partial cut [14:49:55]*** CUTSNS_PIN = 1 [14:49:55]OFD Sender: No OFD packet to send [14:49:55]*** CUTSNS_PIN = 0 [14:49:55]*** Brake cut motor [14:49:56]Read from MH i2c: 01 [14:49:56]MH_I2C_Read... [14:49:56]*** Stop cut motor [14:49:56]*** Cut end [14:49:56]Read from MH i2c: 01 07 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [14:49:56]process_action close_receipt done [14:49:56]requested_data is exist [14:49:56]produce_requested_data [14:49:56]requested_item fm.sn is exist - process it [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 11 00 00 [14:49:56]Write to MH i2c: E2 08 00 E0 1A 80 11 00 00 00 00 00 00 74 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 E0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [14:49:56]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:56]wFMCommunicate OK [14:49:56]requested_item fd.num is exist - process it [14:49:56]SAM_PROTO_GetFieldsCounters [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 00 00 [14:49:56]Write to MH i2c: E2 08 00 E1 1A 80 13 00 00 00 00 00 00 77 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 E1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 12 [14:49: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 D6 97 01 00 0E 04 04 00 64 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 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetFieldsCounters done [14:49:56]requested_item shift.num is exist - process it [14:49:56]requested_item shift.opened is exist - process it [14:49:56]req_shift_opened [14:49:56]FM_GetShiftState [14:49:56]SAM_PROTO_GetShiftState [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 01 00 [14:49:56]Write to MH i2c: E2 08 00 E2 1A 80 13 01 00 00 00 00 00 79 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 E2 1A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6B [14:49:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetShiftState done [14:49:56]FM_GetShiftState done [14:49:56]req_shift_opened done [14:49:56]requested_item shift.open_date is exist - process it [14:49:56]req_shift_open_date [14:49:56]req_shift_open_date done [14:49:56]produce_requested_data done [14:49:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:49:56]process_action_free close_receipt [14:49:56]json_value_free [14:49:56]json_value_free done [14:49:56]process_json_proto returns [14:49:56]Send response to host [14:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:49:56]free response buf [14:49:56]execute_script done [14:49:56]execute_script returns [14:49:56]free content buf [14:49:56]Sock 7.Close socket [14:49:56]Sock 7.Thread stoped [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:07]accept exits with 9 [14:51:07]New connection [14:51:07]New thread 3066449252 created [14:51:07]Thread 3066592612 joined [14:51:07]Waiting for new connection... [14:51:07] Sock 9.Parse request [14:51:07]Sock 9.Check first char [14:51:07]Sock 9.First char is OK [14:51:07]request: POST /json_proto HTTP/1.0 [14:51:07]Method: POST [14:51:07]URL: /json_proto [14:51:07]Method is POST - this is cgi request [14:51:07]url: /json_proto [14:51:07]query_string will be loaded in cgi processing [14:51:07]execute_cgi json_proto POST (null) [14:51:07]execute_cgi path=json_proto method=POST [14:51:07]POST find Content-Length [14:51:07]Host: 172.17.38.133:8080 [14:51:07]Content-Length: 1213 [14:51:07]Content-Type: application/json [14:51:07] [14:51:07]POST finish read [14:51:07]Found Content-Length = 1213 [14:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673955\u000A22.06.2024 14:28\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 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.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\u000A103796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:07]execute_script... [14:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673955\u000A22.06.2024 14:28\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 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.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\u000A103796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:07]POST & json_proto [14:51:07]process_json_proto [14:51:07]json parsed OK: [14:51:07]protocol is kg_v1.0 [14:51:07]action value=print_text [14:51:07]process_action print_text [14:51:07]cmd_print_text [14:51:07]ExternCall_PrintAddStr [14:51:07]wPrintStart [14:51:07]Write to MH i2c: 01 00 00 E3 1A FD [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 E3 1A 00 00 00 00 00 FF 0F 12 [14:51:07]RasterBufferAndPrint [14:51:07]line *****ТОВАРНЫЙ ЧЕК***** [14:51:07]line АЗС 120 [14:51:07]line Партнер нефть [14:51:07]line 02508201610067 [14:51:07]line Кассир : Байбугуева Г. [14:51:07]line Счет N : (1)673955 [14:51:07]line 22.06.2024 14:28 [14:51:07]line ПРОДАЖА [14:51:07]line ТРК (МРК, ГНК): 11 [14:51:07]line Вид ГСМ : 2710194210 [14:51:07]line ДТ(л)-К-5 [14:51:07]line 27.430 x 72.90 [14:51:07]line ИТОГ: 1999.65 [14:51:07]line Тип оплаты: Талоны: Топливная Карта [14:51:07]line 103796 [14:51:07]line ______________________ [14:51:07]line (подпись) [14:51:07]written 0, free lines is 4095 [14:51:07]Write to MH i2c: 01 00 00 F7 1A 11 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 13 0E 39 [14:51:07]RasterBufferAndPrint [14:51:07]line [14:51:07]line [14:51:07]line [14:51:07]line [14:51:07]line [14:51:07]written 0, free lines is 3605 [14:51:07]MH_Cut [14:51:07]Write to MH i2c: D1 01 00 FE 1A 01 EA [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: D1 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: D1 01 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: D1 01 00 FE 1A 00 E9 [14:51:07]Write to MH i2c: 01 00 00 FF 1A 19 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:08]*** Cut start [14:51:08]*** Partial cut [14:51:08]*** CUTSNS_PIN = 1 [14:51:08]*** CUTSNS_PIN = 0 [14:51:08]*** Brake cut motor [14:51:08]Read from MH i2c: 01 [14:51:08]MH_I2C_Read... [14:51:08]*** Stop cut motor [14:51:08]*** Cut end [14:51:08]Read from MH i2c: 01 07 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 FF 1A 00 00 00 00 00 FF 0F 2E [14:51:08]process_action print_text done [14:51:08]requested_data is exist [14:51:08]produce_requested_data [14:51:08]requested_item fm.sn is exist - process it [14:51:08]wFMCommunicate request_size=4 [14:51:08]MH_SAM_APDU [14:51:08]CAPDU: 80 11 00 00 [14:51:08]Write to MH i2c: E2 08 00 00 1B 80 11 00 00 00 00 00 00 95 [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:09]Read from MH i2c: E2 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 17 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 17 00 00 1B 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:51: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:51:09]wFMCommunicate OK [14:51:09]requested_item fd.num is exist - process it [14:51:09]SAM_PROTO_GetFieldsCounters [14:51:09]wFMCommunicate request_size=4 [14:51:09]MH_SAM_APDU [14:51:09]CAPDU: 80 13 00 00 [14:51:09]Write to MH i2c: E2 08 00 01 1B 80 13 00 00 00 00 00 00 98 [14:51:09]Write i2c OK [14:51:09]MH_I2C_Read... [14:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:09]Read from MH i2c: E2 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 62 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 62 00 01 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 33 [14:51: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 D6 97 01 00 0E 04 04 00 64 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 [14:51:09]wFMCommunicate OK [14:51:09]SAM_PROTO_GetFieldsCounters done [14:51:09]requested_item shift.num is exist - process it [14:51:09]requested_item shift.opened is exist - process it [14:51:09]req_shift_opened [14:51:09]FM_GetShiftState [14:51:09]SAM_PROTO_GetShiftState [14:51:09]wFMCommunicate request_size=4 [14:51:09]MH_SAM_APDU [14:51:09]CAPDU: 80 13 01 00 [14:51:09]Write to MH i2c: E2 08 00 02 1B 80 13 01 00 00 00 00 00 9A [14:51:09]Write i2c OK [14:51:09]MH_I2C_Read... [14:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:09]Read from MH i2c: E2 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 0E 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 0E 00 02 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [14:51:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:51:09]wFMCommunicate OK [14:51:09]SAM_PROTO_GetShiftState done [14:51:09]FM_GetShiftState done [14:51:09]req_shift_opened done [14:51:09]requested_item shift.open_date is exist - process it [14:51:09]req_shift_open_date [14:51:09]req_shift_open_date done [14:51:09]produce_requested_data done [14:51:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:51:09]process_action_free print_text [14:51:09]json_value_free [14:51:09]json_value_free done [14:51:09]process_json_proto returns [14:51:09]Send response to host [14:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:51:09]free response buf [14:51:09]execute_script done [14:51:09]execute_script returns [14:51:09]free content buf [14:51:09]Sock 9.Close socket [14:51:09]Sock 9.Thread stoped [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:19]accept exits with 7 [14:51:19]New connection [14:51:19]New thread 3066592612 created [14:51:19]Thread 3066449252 joined [14:51:19]Waiting for new connection... [14:51:19] Sock 7.Parse request [14:51:19]Sock 7.Check first char [14:51:19]Sock 7.First char is OK [14:51:19]request: POST /json_proto HTTP/1.0 [14:51:19]Method: POST [14:51:19]URL: /json_proto [14:51:19]Method is POST - this is cgi request [14:51:19]url: /json_proto [14:51:19]query_string will be loaded in cgi processing [14:51:19]execute_cgi json_proto POST (null) [14:51:19]execute_cgi path=json_proto method=POST [14:51:19]POST find Content-Length [14:51:19]Host: 172.17.38.133:8080 [14:51:19]Content-Length: 1170 [14:51:19]Content-Type: application/json [14:51:19] [14:51:19]POST finish read [14:51:19]Found Content-Length = 1170 [14:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673958\u000A22.06.2024 14:28\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 22.600 x 66.40\u000A\u0418\u0422\u041E\u0413: 1500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507.\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:19]execute_script... [14:51: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673958\u000A22.06.2024 14:28\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 22.600 x 66.40\u000A\u0418\u0422\u041E\u0413: 1500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507.\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:19]POST & json_proto [14:51:19]process_json_proto [14:51:19]json parsed OK: [14:51:19]protocol is kg_v1.0 [14:51:19]action value=print_text [14:51:19]process_action print_text [14:51:19]cmd_print_text [14:51:19]ExternCall_PrintAddStr [14:51:19]wPrintStart [14:51:19]Write to MH i2c: 01 00 00 03 1B 1E [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 07 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 07 00 03 1B 00 00 00 00 00 FF 0F 33 [14:51:19]RasterBufferAndPrint [14:51:19]line *****ТОВАРНЫЙ ЧЕК***** [14:51:19]line АЗС 120 [14:51:19]line Партнер нефть [14:51:19]line 02508201610067 [14:51:19]line Кассир : Байбугуева Г. [14:51:19]line Счет N : (1)673958 [14:51:19]line 22.06.2024 14:28 [14:51:19]line ПРОДАЖА [14:51:19]line ТРК (МРК, ГНК): 42 [14:51:19]line Вид ГСМ : 2710124130 [14:51:19]line Аи-92-К-5 [14:51:19]line 22.600 x 66.40 [14:51:19]line ИТОГ: 1500.64 [14:51:19]line Тип оплаты: Талоны: ТК ГПНА Online [14:51:19]line 30101507. [14:51:19]line ______________________ [14:51:19]line (подпись) [14:51:19]written 0, free lines is 4095 [14:51:20]Write to MH i2c: 01 00 00 17 1B 32 [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 07 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 07 00 17 1B 00 00 00 00 00 13 0E 5A [14:51:20]RasterBufferAndPrint [14:51:20]line [14:51:20]line [14:51:20]line [14:51:20]line [14:51:20]line [14:51:20]written 0, free lines is 3605 [14:51:20]MH_Cut [14:51:20]Write to MH i2c: D1 01 00 1E 1B 01 0B [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: D1 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: D1 01 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: D1 01 00 1E 1B 00 0A [14:51:20]Write to MH i2c: 01 00 00 1F 1B 3A [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]*** Cut start [14:51:20]*** Partial cut [14:51:20]*** CUTSNS_PIN = 1 [14:51:20]*** CUTSNS_PIN = 0 [14:51:20]OFD Sender: No OFD packet to send [14:51:20]*** Brake cut motor [14:51:21]Read from MH i2c: 01 [14:51:21]MH_I2C_Read... [14:51:21]*** Stop cut motor [14:51:21]*** Cut end [14:51:21]Read from MH i2c: 01 07 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 FF 0F 4F [14:51:21]process_action print_text done [14:51:21]requested_data is exist [14:51:21]produce_requested_data [14:51:21]requested_item fm.sn is exist - process it [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 11 00 00 [14:51:21]Write to MH i2c: E2 08 00 20 1B 80 11 00 00 00 00 00 00 B5 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 20 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [14:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:51:21]wFMCommunicate OK [14:51:21]requested_item fd.num is exist - process it [14:51:21]SAM_PROTO_GetFieldsCounters [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 00 00 [14:51:21]Write to MH i2c: E2 08 00 21 1B 80 13 00 00 00 00 00 00 B8 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 21 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 53 [14:51: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 D6 97 01 00 0E 04 04 00 64 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 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetFieldsCounters done [14:51:21]requested_item shift.num is exist - process it [14:51:21]requested_item shift.opened is exist - process it [14:51:21]req_shift_opened [14:51:21]FM_GetShiftState [14:51:21]SAM_PROTO_GetShiftState [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 01 00 [14:51:21]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AC [14:51:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetShiftState done [14:51:21]FM_GetShiftState done [14:51:21]req_shift_opened done [14:51:21]requested_item shift.open_date is exist - process it [14:51:21]req_shift_open_date [14:51:21]req_shift_open_date done [14:51:21]produce_requested_data done [14:51:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:51:21]process_action_free print_text [14:51:21]json_value_free [14:51:21]json_value_free done [14:51:21]process_json_proto returns [14:51:21]Send response to host [14:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104406,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:51:21]free response buf [14:51:21]execute_script done [14:51:21]execute_script returns [14:51:21]free content buf [14:51:21]Sock 7.Close socket [14:51:21]Sock 7.Thread stoped [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:36]accept exits with 9 [14:55:36]New connection [14:55:36]New thread 3066449252 created [14:55:36]Thread 3066592612 joined [14:55:36]Waiting for new connection... [14:55:36] Sock 9.Parse request [14:55:36]Sock 9.Check first char [14:55:36]Sock 9.First char is OK [14:55:36]request: POST /json_proto HTTP/1.0 [14:55:36]Method: POST [14:55:36]URL: /json_proto [14:55:36]Method is POST - this is cgi request [14:55:36]url: /json_proto [14:55:36]query_string will be loaded in cgi processing [14:55:36]execute_cgi json_proto POST (null) [14:55:36]execute_cgi path=json_proto method=POST [14:55:36]POST find Content-Length [14:55:36]Host: 172.17.38.133:8080 [14:55:36]Content-Length: 677 [14:55:36]Content-Type: application/json [14:55:36] [14:55:36]POST finish read [14:55:36]Found Content-Length = 677 [14:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673959", "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" ] } } [14:55:36]execute_script... [14:55: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)673959", "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" ] } } [14:55:36]POST & json_proto [14:55:36]process_json_proto [14:55:36]json parsed OK: [14:55:36]protocol is kg_v1.0 [14:55:36]action value=close_receipt [14:55:36]process_action close_receipt [14:55:36]cmd_close_receipt [14:55:36]MH_GetDate [14:55:36]Write to MH i2c: F0 00 00 23 1B 2D [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 09 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 09 00 23 1B 00 EA E5 76 66 BD 8F 7C 64 0D [14:55:36]GetLastDocTimeStamp 1719067794 [14:55:36]current date 1719068138 [14:55:36]FM_GetShiftState [14:55:36]SAM_PROTO_GetShiftState [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 13 01 00 [14:55:36]Write to MH i2c: E2 08 00 24 1B 80 13 01 00 00 00 00 00 BC [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0E 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0E 00 24 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AE [14:55:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_GetShiftState done [14:55:36]FM_GetShiftState done [14:55:36]opened in 1719016176 [14:55:36]opened+sec_in_day 1719102576 [14:55:36]quantity*price = 50065 [14:55:36]sum+1 = 50067 [14:55:36]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 СНО: Общий режим Чек 140 22.06.2024 14:55 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104407 ФПД: 15695568415590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104407&fm=15695568415590&tin=02508201610067®Number=0000000000092785&sum=50000 [14:55:37]StoreToDocumentArchive [14:55:37]shift 356 fd 104407 [14:55:37]save to /storage/0356/doc_00104407 [14:55:37]save last doc name /storage/0356/doc_00104407 to /storage/kkm_last_doc_name [14:55:37]save OK [14:55:37]Clear old archive folders... [14:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:37]tlvbuf is 010025E0 [14:55:37]SAM_PROTO_ClearQueue [14:55:37]wFMCommunicate request_size=4 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 09 00 00 [14:55:37]Write to MH i2c: E2 08 00 31 1B 80 09 00 00 00 00 00 00 BE [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:37]Read from MH i2c: E2 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [14:55:37]RAPDU: 90 00 [14:55:37]wFMCommunicate OK [14:55:37]SAM_PROTO_ClearQueue done [14:55:37]KKMCreateOFDPacket [14:55:37]OFDProtocolAddRootSTLVToBuf [14:55:37]FM_MakeSignedData [14:55:37]FM_MakeSignedData [14:55:37]SAM_PROTO_SignData [14:55:37]wFMCommunicate request_size=4 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 0D 01 02 [14:55:37]Write to MH i2c: E2 08 00 32 1B 80 0D 01 02 00 00 00 00 C6 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:37]Read from MH i2c: E2 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [14:55:37]RAPDU: 90 00 [14:55:37]wFMCommunicate OK [14:55:37]wFMCommunicate request_size=255 [14:55:37]MH_SAM_APDU [14:55: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 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 8C 00 00 00 F4 03 04 00 EA E5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E [14:55:37]Write to MH i2c: E2 02 01 33 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 00 00 00 F4 03 04 00 EA E5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 00 00 99 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=10 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 02 02 05 46 68 C7 AB 66 [14:55:38]Write to MH i2c: E2 0D 00 34 1B 80 0D 02 02 05 00 46 68 C7 AB 66 00 00 59 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 03 02 [14:55:38]Write to MH i2c: E2 08 00 35 1B 80 0D 03 02 00 00 00 00 CB [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 35 1B 00 BF 58 5F 1B 4E 84 FC 32 90 00 5D [14:55:38]RAPDU: BF 58 5F 1B 4E 84 FC 32 90 00 [14:55:38]wFMCommunicate OK [14:55:38]SAM_PROTO_SignData done [14:55:38]FM_MakeSignedData done [14:55:38]CreateOFDProtocolMessage [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 11 00 00 [14:55:38]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [14: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 [14:55:38]wFMCommunicate OK [14:55:38]CreateOFDProtocolMessage done [14:55:38]OFDSenderStorePacket 104407 [14:55:38]StoreOFDPacket docnum=104407 [14:55: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 32 B9 07 01 6B 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 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 8C 00 00 00 F4 03 04 00 EA E5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 46 68 C7 AB 66 BF 58 5F 1B 4E 84 FC 32 [14:55:38]CheckFolder [14:55:38]dirname=/storage/ofd_packets [14:55:38]CheckFolder done [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00104407 [14:55:38]NVStorageSaveData ofd_packets/00104407 [14:55:38]File name is /storage/ofd_packets/00104407 [14:55:38]Write 301 bytes [14:55:38]NVStorageSaveData done [14:55:38]OFDSenderStorePacket done [14:55:38]KKMCreateOFDPacket done [14:55:38]NVStorageSaveData kkm_last_timestamp [14:55:38]File name is /storage/kkm_last_timestamp [14:55:38]Write 4 bytes [14:55:38]NVStorageSaveData done [14:55:38]ExternCall_PrintAddStr [14:55:38]wPrintStart [14:55:38]Write to MH i2c: 01 00 00 37 1B 52 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [14:55:38]RasterBufferAndPrint [14:55:38]line Счет N : (1)673959 [14:55:38]line ИНН: 02508201610067 [14:55:38]line Контрольно-Кассовый Чек [14:55:38]line ПРОДАЖА [14:55:38]line ТРК (МРК, ГНК) : 42 [14:55:38]line Товар: 2710124130 [14:55:38]line Аи-92-К-5 [14:55:38]line 7.540 * 66.40 [14:55:38]line = 500.66 [14:55:38]line НДС 12% НСП 1% [14:55:38]line > о реализуемом товаре [14:55:38]line ОКРУГЛЕНИЕ: -0.66 [14:55:38]line ИТОГО: 500.00 [14:55:38]line Внесено: 500.00 [14:55:38]line СДАЧА: 0.00 [14:55:38]line НСП 1% : 4.43 [14:55:38]line НДС 12% : 53.17 [14:55:38]line Наличными: 500.00 [14:55:38]line Безнал.: 0.00 [14:55:38]line Место: АЗС № 120 "Партнер Нефть" [14:55:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:55:38]line СНО: Общий режим [14:55:38]line Чек 140 22.06.2024 14:55 [14:55:38]line Смена: 356 ФФД: 1.0 [14:55:38]line ЗНМ: 0300000164 [14:55:38]line РНМ: 0000000000092785 [14:55:38]line Версия ККМ: 001 [14:55:38]line ФМ: 0000000000875093 [14:55:38]line ФД: 104407 [14:55:38]line ФПД: 15695568415590 [14:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104407&fm=15695568415590&tin=02508201610067®Number=0000000000092785&sum=50000 [14:55:38]OFD Sender: Processing packet 104407 [packets to send 17, broken 16] [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00104407 [14:55:38]OFD Sender: To server: pG, [14:55:38]CommunicateWithHost lk.salyk.kg:30040 [14:55:38]ConnectInit lk.salyk.kg [14:55:38]written 0, free lines is 4095 [14:55:38]Connected sock=11 [14:55: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 32 B9 07 01 6B 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 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 8C 00 00 00 F4 03 04 00 EA E5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 46 68 C7 AB 66 BF 58 5F 1B 4E 84 FC 32 [14:55: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 16 4C 47 00 8D 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 D7 97 01 00 F4 03 04 00 69 8C 76 66 B6 04 01 00 00 7C F5 72 47 54 91 BD 92 [14:55:38]CommunicateWithHost err = 0 [14:55:38]CheckOFDResponse [14:55:38]1017 (14) - 77093643461234 [14:55:38]1041 (16) - 0000000000875093 [14:55:38]1040 (4) - 104407 [14:55:38]1012 (4) - 22.06.2024 08:33 [14:55:38]1206 (1) - 0 [14:55:38]OFD Sender: Remove packet 104407 [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00104407 [14:55:38]NVStorageDeleteData [14:55:39]Write to MH i2c: 01 00 00 62 1B 7D [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 62 1B 00 00 00 00 00 E8 0C 78 [14:55:39]RasterBufferAndPrint [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]written 0, free lines is 3310 [14:55:39]MH_Cut [14:55:39]Write to MH i2c: D1 01 00 69 1B 01 56 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 69 1B 00 55 [14:55:39]Write to MH i2c: 01 00 00 6A 1B 85 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]OFD Sender: No OFD packet to send [14:55:39]*** Cut start [14:55:39]*** Partial cut [14:55:39]*** CUTSNS_PIN = 1 [14:55:39]*** CUTSNS_PIN = 0 [14:55:40]*** Brake cut motor [14:55:40]Read from MH i2c: 01 [14:55:40]MH_I2C_Read... [14:55:40]*** Stop cut motor [14:55:40]*** Cut end [14:55:40]Read from MH i2c: 01 07 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 FF 0F 9A [14:55:40]process_action close_receipt done [14:55:40]requested_data is exist [14:55:40]produce_requested_data [14:55:40]requested_item fm.sn is exist - process it [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 11 00 00 [14:55:40]Write to MH i2c: E2 08 00 6B 1B 80 11 00 00 00 00 00 00 00 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 6B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [14:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:55:40]wFMCommunicate OK [14:55:40]requested_item fd.num is exist - process it [14:55:40]SAM_PROTO_GetFieldsCounters [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 00 00 [14:55:40]Write to MH i2c: E2 08 00 6C 1B 80 13 00 00 00 00 00 00 03 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 6C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 A2 [14:55: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 D7 97 01 00 0E 04 04 00 64 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 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetFieldsCounters done [14:55:40]requested_item shift.num is exist - process it [14:55:40]requested_item shift.opened is exist - process it [14:55:40]req_shift_opened [14:55:40]FM_GetShiftState [14:55:40]SAM_PROTO_GetShiftState [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 01 00 [14:55:40]Write to MH i2c: E2 08 00 6D 1B 80 13 01 00 00 00 00 00 05 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 6D 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F7 [14:55:40]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetShiftState done [14:55:40]FM_GetShiftState done [14:55:40]req_shift_opened done [14:55:40]requested_item shift.open_date is exist - process it [14:55:40]req_shift_open_date [14:55:40]req_shift_open_date done [14:55:40]produce_requested_data done [14:55:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104407,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:55:40]process_action_free close_receipt [14:55:40]json_value_free [14:55:40]json_value_free done [14:55:40]process_json_proto returns [14:55:40]Send response to host [14:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104407,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:55:40]free response buf [14:55:40]execute_script done [14:55:40]execute_script returns [14:55:40]free content buf [14:55:40]Sock 9.Close socket [14:55:40]Sock 9.Thread stoped [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:23]accept exits with 7 [14:57:23]New connection [14:57:23]New thread 3066592612 created [14:57:23]Thread 3066449252 joined [14:57:23]Waiting for new connection... [14:57:23] Sock 7.Parse request [14:57:23]Sock 7.Check first char [14:57:23]Sock 7.First char is OK [14:57:23]request: POST /json_proto HTTP/1.0 [14:57:23]Method: POST [14:57:23]URL: /json_proto [14:57:23]Method is POST - this is cgi request [14:57:23]url: /json_proto [14:57:23]query_string will be loaded in cgi processing [14:57:23]execute_cgi json_proto POST (null) [14:57:23]execute_cgi path=json_proto method=POST [14:57:23]POST find Content-Length [14:57:23]Host: 172.17.38.133:8080 [14:57:23]Content-Length: 677 [14:57:23]Content-Type: application/json [14:57:23] [14:57:23]POST finish read [14:57:23]Found Content-Length = 677 [14:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673960", "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" : 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:57:23]execute_script... [14:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673960", "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" : 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:57:23]POST & json_proto [14:57:23]process_json_proto [14:57:23]json parsed OK: [14:57:23]protocol is kg_v1.0 [14:57:23]action value=close_receipt [14:57:23]process_action close_receipt [14:57:23]cmd_close_receipt [14:57:23]MH_GetDate [14:57:23]Write to MH i2c: F0 00 00 6E 1B 78 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: F0 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: F0 09 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: F0 09 00 6E 1B 00 55 E6 76 66 BD 8F 7C 64 C4 [14:57:23]GetLastDocTimeStamp 1719068138 [14:57:23]current date 1719068245 [14:57:23]FM_GetShiftState [14:57:23]SAM_PROTO_GetShiftState [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 13 01 00 [14:57:23]Write to MH i2c: E2 08 00 6F 1B 80 13 01 00 00 00 00 00 07 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 0E 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 0E 00 6F 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F9 [14:57:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:57:23]wFMCommunicate OK [14:57:23]SAM_PROTO_GetShiftState done [14:57:23]FM_GetShiftState done [14:57:23]opened in 1719016176 [14:57:23]opened+sec_in_day 1719102576 [14:57:23]quantity*price = 35059 [14:57:23]sum+1 = 35060 [14:57:23]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 СНО: Общий режим Чек 141 22.06.2024 14:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104408 ФПД: 274949759994466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145725&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104408&fm=274949759994466&tin=02508201610067®Number=0000000000092785&sum=35000 [14:57:24]StoreToDocumentArchive [14:57:24]shift 356 fd 104408 [14:57:24]save to /storage/0356/doc_00104408 [14:57:24]save last doc name /storage/0356/doc_00104408 to /storage/kkm_last_doc_name [14:57:24]save OK [14:57:24]Clear old archive folders... [14:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:24]tlvbuf is 00FCB040 [14:57:24]SAM_PROTO_ClearQueue [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 09 00 00 [14:57:24]Write to MH i2c: E2 08 00 7C 1B 80 09 00 00 00 00 00 00 09 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [14:57:24]RAPDU: 90 00 [14:57:24]wFMCommunicate OK [14:57:24]SAM_PROTO_ClearQueue done [14:57:24]KKMCreateOFDPacket [14:57:24]OFDProtocolAddRootSTLVToBuf [14:57:24]FM_MakeSignedData [14:57:24]FM_MakeSignedData [14:57:24]SAM_PROTO_SignData [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 0D 01 02 [14:57:24]Write to MH i2c: E2 08 00 7D 1B 80 0D 01 02 00 00 00 00 11 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [14:57:24]RAPDU: 90 00 [14:57:24]wFMCommunicate OK [14:57:24]wFMCommunicate request_size=255 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 55 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA [14:57:24]Write to MH i2c: E2 02 01 7E 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8D 00 00 00 F4 03 04 00 55 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 00 00 1C [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 03 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [14:57:25]RAPDU: 90 00 [14:57:25]wFMCommunicate OK [14:57:25]wFMCommunicate request_size=10 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 0D 02 02 05 10 BA C6 8A 62 [14:57:25]Write to MH i2c: E2 0D 00 7F 1B 80 0D 02 02 05 00 10 BA C6 8A 62 00 00 9A [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 03 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 03 00 7F 1B 00 90 00 0E [14:57:25]RAPDU: 90 00 [14:57:25]wFMCommunicate OK [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 0D 03 02 [14:57:25]Write to MH i2c: E2 08 00 80 1B 80 0D 03 02 00 00 00 00 16 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0B 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0B 00 80 1B 00 EF F6 36 C1 A1 25 30 53 90 00 3C [14:57:25]RAPDU: EF F6 36 C1 A1 25 30 53 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_SignData done [14:57:25]FM_MakeSignedData done [14:57:25]CreateOFDProtocolMessage [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 11 00 00 [14:57:25]Write to MH i2c: E2 08 00 81 1B 80 11 00 00 00 00 00 00 16 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 81 1B 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:57:25]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:25]wFMCommunicate OK [14:57:25]CreateOFDProtocolMessage done [14:57:25]OFDSenderStorePacket 104408 [14:57:25]StoreOFDPacket docnum=104408 [14:57: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 A1 76 07 01 52 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 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 8D 00 00 00 F4 03 04 00 55 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 10 BA C6 8A 62 EF F6 36 C1 A1 25 30 53 [14:57:25]CheckFolder [14:57:25]dirname=/storage/ofd_packets [14:57:25]CheckFolder done [14:57:25]ProducePacketName [14:57:25]name=ofd_packets/00104408 [14:57:25]NVStorageSaveData ofd_packets/00104408 [14:57:25]File name is /storage/ofd_packets/00104408 [14:57:25]Write 301 bytes [14:57:25]NVStorageSaveData done [14:57:25]OFDSenderStorePacket done [14:57:25]KKMCreateOFDPacket done [14:57:25]NVStorageSaveData kkm_last_timestamp [14:57:25]File name is /storage/kkm_last_timestamp [14:57:25]Write 4 bytes [14:57:25]NVStorageSaveData done [14:57:25]ExternCall_PrintAddStr [14:57:25]wPrintStart [14:57:25]Write to MH i2c: 01 00 00 82 1B 9D [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 FF 0F B2 [14:57:25]RasterBufferAndPrint [14:57:25]line Счет N : (1)673960 [14:57:25]line ИНН: 02508201610067 [14:57:25]line Контрольно-Кассовый Чек [14:57:25]line ПРОДАЖА [14:57:25]line ТРК (МРК, ГНК) : 42 [14:57:25]line Товар: 2710124130 [14:57:25]line Аи-92-К-5 [14:57:25]line 5.280 * 66.40 [14:57:25]line = 350.59 [14:57:25]line НДС 12% НСП 1% [14:57:25]line > о реализуемом товаре [14:57:25]line ОКРУГЛЕНИЕ: -0.59 [14:57:25]line ИТОГО: 350.00 [14:57:25]line Внесено: 350.00 [14:57:25]line СДАЧА: 0.00 [14:57:25]line НСП 1% : 3.10 [14:57:25]line НДС 12% : 37.23 [14:57:25]line Наличными: 350.00 [14:57:25]line Безнал.: 0.00 [14:57:25]line Место: АЗС № 120 "Партнер Нефть" [14:57:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:57:25]line СНО: Общий режим [14:57:25]line Чек 141 22.06.2024 14:57 [14:57:25]line Смена: 356 ФФД: 1.0 [14:57:25]line ЗНМ: 0300000164 [14:57:25]line РНМ: 0000000000092785 [14:57:25]line Версия ККМ: 001 [14:57:25]line ФМ: 0000000000875093 [14:57:25]line ФД: 104408 [14:57:25]line ФПД: 274949759994466 [14:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145725&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104408&fm=274949759994466&tin=02508201610067®Number=0000000000092785&sum=35000 [14:57:25]OFD Sender: Processing packet 104408 [packets to send 17, broken 16] [14:57:25]ProducePacketName [14:57:25]name=ofd_packets/00104408 [14:57:25]OFD Sender: To server: pG, [14:57:25]CommunicateWithHost lk.salyk.kg:30040 [14:57:25]ConnectInit lk.salyk.kg [14:57:25]written 0, free lines is 4095 [14:57:25]Connected sock=10 [14:57: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 0F 01 00 00 A1 76 07 01 52 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 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 8D 00 00 00 F4 03 04 00 55 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FA 10 BA C6 8A 62 EF F6 36 C1 A1 25 30 53 [14:57: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 DE 41 47 00 83 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 97 01 00 F4 03 04 00 D4 8C 76 66 B6 04 01 00 00 B1 29 D3 19 3E 4F BF 07 [14:57:26]CommunicateWithHost err = 0 [14:57:26]CheckOFDResponse [14:57:26]1017 (14) - 77093643461234 [14:57:26]1041 (16) - 0000000000875093 [14:57:26]1040 (4) - 104408 [14:57:26]1012 (4) - 22.06.2024 08:35 [14:57:26]1206 (1) - 0 [14:57:26]OFD Sender: Remove packet 104408 [14:57:26]ProducePacketName [14:57:26]name=ofd_packets/00104408 [14:57:26]NVStorageDeleteData [14:57:26]Write to MH i2c: 01 00 00 AD 1B C8 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 DE 0C B9 [14:57:26]RasterBufferAndPrint [14:57:26]line [14:57:26]line [14:57:26]line [14:57:26]line [14:57:26]line [14:57:26]written 0, free lines is 3300 [14:57:26]MH_Cut [14:57:26]Write to MH i2c: D1 01 00 B4 1B 01 A1 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: D1 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: D1 01 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: D1 01 00 B4 1B 00 A0 [14:57:26]Write to MH i2c: 01 00 00 B5 1B D0 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]OFD Sender: No OFD packet to send [14:57:26]*** Cut start [14:57:26]*** Partial cut [14:57:26]*** CUTSNS_PIN = 1 [14:57:27]*** CUTSNS_PIN = 0 [14:57:27]*** Brake cut motor [14:57:27]Read from MH i2c: 01 [14:57:27]MH_I2C_Read... [14:57:27]*** Stop cut motor [14:57:27]*** Cut end [14:57:27]Read from MH i2c: 01 07 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 FF 0F E5 [14:57:27]process_action close_receipt done [14:57:27]requested_data is exist [14:57:27]produce_requested_data [14:57:27]requested_item fm.sn is exist - process it [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 11 00 00 [14:57:27]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 17 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [14:57:27]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:27]wFMCommunicate OK [14:57:27]requested_item fd.num is exist - process it [14:57:27]SAM_PROTO_GetFieldsCounters [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 13 00 00 [14:57:27]Write to MH i2c: E2 08 00 B7 1B 80 13 00 00 00 00 00 00 4E [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 62 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 62 00 B7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F1 [14:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [14:57:27]wFMCommunicate OK [14:57:27]SAM_PROTO_GetFieldsCounters done [14:57:27]requested_item shift.num is exist - process it [14:57:27]requested_item shift.opened is exist - process it [14:57:27]req_shift_opened [14:57:27]FM_GetShiftState [14:57:27]SAM_PROTO_GetShiftState [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 13 01 00 [14:57:27]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 0E 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 42 [14:57:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:57:27]wFMCommunicate OK [14:57:27]SAM_PROTO_GetShiftState done [14:57:27]FM_GetShiftState done [14:57:27]req_shift_opened done [14:57:27]requested_item shift.open_date is exist - process it [14:57:27]req_shift_open_date [14:57:27]req_shift_open_date done [14:57:27]produce_requested_data done [14:57:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104408,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:57:27]process_action_free close_receipt [14:57:27]json_value_free [14:57:27]json_value_free done [14:57:27]process_json_proto returns [14:57:27]Send response to host [14:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104408,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:57:27]free response buf [14:57:27]execute_script done [14:57:27]execute_script returns [14:57:27]free content buf [14:57:27]Sock 7.Close socket [14:57:27]Sock 7.Thread stoped [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:33]accept exits with 9 [14:59:33]New connection [14:59:33]New thread 3066449252 created [14:59:33]Thread 3066592612 joined [14:59:33]Waiting for new connection... [14:59:33] Sock 9.Parse request [14:59:33]Sock 9.Check first char [14:59:33]Sock 9.First char is OK [14:59:33]request: POST /json_proto HTTP/1.0 [14:59:33]Method: POST [14:59:33]URL: /json_proto [14:59:33]Method is POST - this is cgi request [14:59:33]url: /json_proto [14:59:33]query_string will be loaded in cgi processing [14:59:33]execute_cgi json_proto POST (null) [14:59:33]execute_cgi path=json_proto method=POST [14:59:33]POST find Content-Length [14:59:33]Host: 172.17.38.133:8080 [14:59:33]Content-Length: 677 [14:59:33]Content-Type: application/json [14:59:33] [14:59:33]POST finish read [14:59:33]Found Content-Length = 677 [14:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673961", "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" ] } } [14:59:33]execute_script... [14:59: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)673961", "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" ] } } [14:59:33]POST & json_proto [14:59:33]process_json_proto [14:59:33]json parsed OK: [14:59:33]protocol is kg_v1.0 [14:59:33]action value=close_receipt [14:59:33]process_action close_receipt [14:59:33]cmd_close_receipt [14:59:33]MH_GetDate [14:59:33]Write to MH i2c: F0 00 00 B9 1B C3 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 09 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 09 00 B9 1B 00 D7 E6 76 66 BD 8F 7C 64 91 [14:59:33]GetLastDocTimeStamp 1719068245 [14:59:33]current date 1719068375 [14:59:33]FM_GetShiftState [14:59:33]SAM_PROTO_GetShiftState [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 13 01 00 [14:59:33]Write to MH i2c: E2 08 00 BA 1B 80 13 01 00 00 00 00 00 52 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0E 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0E 00 BA 1B 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 44 [14:59:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:59:33]wFMCommunicate OK [14:59:33]SAM_PROTO_GetShiftState done [14:59:33]FM_GetShiftState done [14:59:33]opened in 1719016176 [14:59:33]opened+sec_in_day 1719102576 [14:59:33]quantity*price = 32004 [14:59:33]sum+1 = 32006 [14:59:33]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 СНО: Общий режим Чек 142 22.06.2024 14:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104409 ФПД: 35903267767861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104409&fm=35903267767861&tin=02508201610067®Number=0000000000092785&sum=32000 [14:59:35]StoreToDocumentArchive [14:59:35]shift 356 fd 104409 [14:59:35]save to /storage/0356/doc_00104409 [14:59:35]save last doc name /storage/0356/doc_00104409 to /storage/kkm_last_doc_name [14:59:35]save OK [14:59:35]Clear old archive folders... [14:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:35]tlvbuf is B6F00590 [14:59:35]SAM_PROTO_ClearQueue [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 09 00 00 [14:59:35]Write to MH i2c: E2 08 00 C7 1B 80 09 00 00 00 00 00 00 54 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_ClearQueue done [14:59:35]KKMCreateOFDPacket [14:59:35]OFDProtocolAddRootSTLVToBuf [14:59:35]FM_MakeSignedData [14:59:35]FM_MakeSignedData [14:59:35]SAM_PROTO_SignData [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 01 02 [14:59:35]Write to MH i2c: E2 08 00 C8 1B 80 0D 01 02 00 00 00 00 5C [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=255 [14:59:35]MH_SAM_APDU [14:59: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 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 8E 00 00 00 F4 03 04 00 D7 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 [14:59:35]Write to MH i2c: E2 02 01 C9 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8E 00 00 00 F4 03 04 00 D7 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 00 00 64 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 C9 1B 00 90 00 58 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=10 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 02 02 05 A7 61 85 86 35 [14:59:35]Write to MH i2c: E2 0D 00 CA 1B 80 0D 02 02 05 00 A7 61 85 86 35 00 00 B1 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 CA 1B 00 90 00 59 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 03 02 [14:59:35]Write to MH i2c: E2 08 00 CB 1B 80 0D 03 02 00 00 00 00 61 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0B 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0B 00 CB 1B 00 C5 82 54 AD 7C 23 94 E6 90 00 C3 [14:59:35]RAPDU: C5 82 54 AD 7C 23 94 E6 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_SignData done [14:59:35]FM_MakeSignedData done [14:59:35]CreateOFDProtocolMessage [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 11 00 00 [14:59:35]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 CC 1B 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:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:59:35]wFMCommunicate OK [14:59:35]CreateOFDProtocolMessage done [14:59:35]OFDSenderStorePacket 104409 [14:59:35]StoreOFDPacket docnum=104409 [14:59: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 1D 95 07 01 E2 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 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 8E 00 00 00 F4 03 04 00 D7 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 A7 61 85 86 35 C5 82 54 AD 7C 23 94 E6 [14:59:35]CheckFolder [14:59:35]dirname=/storage/ofd_packets [14:59:35]CheckFolder done [14:59:35]ProducePacketName [14:59:35]name=ofd_packets/00104409 [14:59:35]NVStorageSaveData ofd_packets/00104409 [14:59:35]File name is /storage/ofd_packets/00104409 [14:59:35]Write 301 bytes [14:59:35]NVStorageSaveData done [14:59:35]OFDSenderStorePacket done [14:59:35]KKMCreateOFDPacket done [14:59:35]NVStorageSaveData kkm_last_timestamp [14:59:35]File name is /storage/kkm_last_timestamp [14:59:35]Write 4 bytes [14:59:35]NVStorageSaveData done [14:59:35]ExternCall_PrintAddStr [14:59:35]OFD Sender: Processing packet 104409 [packets to send 17, broken 16] [14:59:35]ProducePacketName [14:59:35]name=ofd_packets/00104409 [14:59:35]OFD Sender: To server: pG, [14:59:35]CommunicateWithHost lk.salyk.kg:30040 [14:59:35]ConnectInit lk.salyk.kg [14:59:35]wPrintStart [14:59:35]Write to MH i2c: 01 00 00 CD 1B E8 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [14:59:35]RasterBufferAndPrint [14:59:35]line Счет N : (1)673961 [14:59:35]line ИНН: 02508201610067 [14:59:35]line Контрольно-Кассовый Чек [14:59:35]line ПРОДАЖА [14:59:35]line ТРК (МРК, ГНК) : 32 [14:59:35]line Товар: 2710124130 [14:59:35]line Аи-92-К-5 [14:59:35]line 4.820 * 66.40 [14:59:35]line = 320.05 [14:59:35]line НДС 12% НСП 1% [14:59:35]line > о реализуемом товаре [14:59:35]line ОКРУГЛЕНИЕ: -0.05 [14:59:35]line ИТОГО: 320.00 [14:59:35]line Внесено: 320.00 [14:59:35]line СДАЧА: 0.00 [14:59:35]line НСП 1% : 2.83 [14:59:35]line НДС 12% : 33.99 [14:59:35]line Наличными: 320.00 [14:59:35]line Безнал.: 0.00 [14:59:35]line Место: АЗС № 120 "Партнер Нефть" [14:59:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:59:35]line СНО: Общий режим [14:59:35]line Чек 142 22.06.2024 14:59 [14:59:35]line Смена: 356 ФФД: 1.0 [14:59:35]line ЗНМ: 0300000164 [14:59:35]line РНМ: 0000000000092785 [14:59:35]line Версия ККМ: 001 [14:59:35]line ФМ: 0000000000875093 [14:59:35]line ФД: 104409 [14:59:35]line ФПД: 35903267767861 [14:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104409&fm=35903267767861&tin=02508201610067®Number=0000000000092785&sum=32000 [14:59:35]Connected sock=10 [14:59: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 1D 95 07 01 E2 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 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 8E 00 00 00 F4 03 04 00 D7 E6 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 20 A7 61 85 86 35 C5 82 54 AD 7C 23 94 E6 [14:59:35]written 0, free lines is 4095 [14:59: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 B1 C0 47 00 3E 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 D9 97 01 00 F4 03 04 00 56 8D 76 66 B6 04 01 00 00 11 9B BE 6F 7E 7F 2C 89 [14:59:36]CommunicateWithHost err = 0 [14:59:36]CheckOFDResponse [14:59:36]1017 (14) - 77093643461234 [14:59:36]1041 (16) - 0000000000875093 [14:59:36]1040 (4) - 104409 [14:59:36]1012 (4) - 22.06.2024 08:37 [14:59:36]1206 (1) - 0 [14:59:36]OFD Sender: Remove packet 104409 [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00104409 [14:59:36]NVStorageDeleteData [14:59:36]Write to MH i2c: 01 00 00 F8 1B 13 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 E1 0C 07 [14:59:36]RasterBufferAndPrint [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]written 0, free lines is 3303 [14:59:36]MH_Cut [14:59:36]Write to MH i2c: D1 01 00 FF 1B 01 EC [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 FF 1B 00 EB [14:59:36]Write to MH i2c: 01 00 00 00 1C 1C [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]OFD Sender: No OFD packet to send [14:59:37]*** Cut start [14:59:37]*** Partial cut [14:59:37]*** CUTSNS_PIN = 1 [14:59:37]*** CUTSNS_PIN = 0 [14:59:37]*** Brake cut motor [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]*** Stop cut motor [14:59:37]*** Cut end [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 FF 0F 31 [14:59:37]process_action close_receipt done [14:59:37]requested_data is exist [14:59:37]produce_requested_data [14:59:37]requested_item fm.sn is exist - process it [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 11 00 00 [14:59:37]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [14: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 [14:59:37]wFMCommunicate OK [14:59:37]requested_item fd.num is exist - process it [14:59:37]SAM_PROTO_GetFieldsCounters [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 00 00 [14:59:37]Write to MH i2c: E2 08 00 02 1C 80 13 00 00 00 00 00 00 9A [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 62 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 62 00 02 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 41 [14:59: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 D9 97 01 00 0E 04 04 00 64 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 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_GetFieldsCounters done [14:59:37]requested_item shift.num is exist - process it [14:59:37]requested_item shift.opened is exist - process it [14:59:37]req_shift_opened [14:59:37]FM_GetShiftState [14:59:37]SAM_PROTO_GetShiftState [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 01 00 [14:59:37]Write to MH i2c: E2 08 00 03 1C 80 13 01 00 00 00 00 00 9C [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 03 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8E [14:59:38]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]req_shift_opened done [14:59:38]requested_item shift.open_date is exist - process it [14:59:38]req_shift_open_date [14:59:38]req_shift_open_date done [14:59:38]produce_requested_data done [14:59:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104409,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [14:59:38]process_action_free close_receipt [14:59:38]json_value_free [14:59:38]json_value_free done [14:59:38]process_json_proto returns [14:59:38]Send response to host [14:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104409,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [14:59:38]free response buf [14:59:38]execute_script done [14:59:38]execute_script returns [14:59:38]free content buf [14:59:38]Sock 9.Close socket [14:59:38]Sock 9.Thread stoped [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:42]accept exits with 7 [15:00:42]New connection [15:00:42]New thread 3066592612 created [15:00:42]Thread 3066449252 joined [15:00:42]Waiting for new connection... [15:00:42] Sock 7.Parse request [15:00:42]Sock 7.Check first char [15:00:42]Sock 7.First char is OK [15:00:42]request: POST /json_proto HTTP/1.0 [15:00:42]Method: POST [15:00:42]URL: /json_proto [15:00:42]Method is POST - this is cgi request [15:00:42]url: /json_proto [15:00:42]query_string will be loaded in cgi processing [15:00:42]execute_cgi json_proto POST (null) [15:00:42]execute_cgi path=json_proto method=POST [15:00:42]POST find Content-Length [15:00:42]Host: 172.17.38.133:8080 [15:00:42]Content-Length: 819 [15:00:42]Content-Type: application/json [15:00:42] [15:00:42]POST finish read [15:00:42]Found Content-Length = 819 [15:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673962", "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" ] } } [15:00:42]execute_script... [15:00: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)673962", "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" ] } } [15:00:42]POST & json_proto [15:00:42]process_json_proto [15:00:42]json parsed OK: [15:00:42]protocol is kg_v1.0 [15:00:42]action value=close_receipt [15:00:42]process_action close_receipt [15:00:42]cmd_close_receipt [15:00:42]MH_GetDate [15:00:42]Write to MH i2c: F0 00 00 04 1C 0F [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 09 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 09 00 04 1C 00 1C E7 76 66 BD 8F 7C 64 23 [15:00:42]GetLastDocTimeStamp 1719068375 [15:00:42]current date 1719068444 [15:00:42]FM_GetShiftState [15:00:42]SAM_PROTO_GetShiftState [15:00:42]wFMCommunicate request_size=4 [15:00:42]MH_SAM_APDU [15:00:42]CAPDU: 80 13 01 00 [15:00:42]Write to MH i2c: E2 08 00 05 1C 80 13 01 00 00 00 00 00 9E [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:43]Read from MH i2c: E2 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 0E 00 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 0E 00 05 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 90 [15:00:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:00:43]wFMCommunicate OK [15:00:43]SAM_PROTO_GetShiftState done [15:00:43]FM_GetShiftState done [15:00:43]opened in 1719016176 [15:00:43]opened+sec_in_day 1719102576 [15:00:43]quantity*price = 100064 [15:00:43]sum+1 = 100066 [15:00:43]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 СНО: Общий режим Чек 143 22.06.2024 15:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104410 ФПД: 168455224413907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150044&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104410&fm=168455224413907&tin=02508201610067®Number=0000000000092785&sum=100065 [15:00:44]StoreToDocumentArchive [15:00:44]shift 356 fd 104410 [15:00:44]save to /storage/0356/doc_00104410 [15:00:44]save last doc name /storage/0356/doc_00104410 to /storage/kkm_last_doc_name [15:00:44]save OK [15:00:44]Clear old archive folders... [15:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:44]tlvbuf is 0102AC10 [15:00:44]SAM_PROTO_ClearQueue [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 09 00 00 [15:00:44]Write to MH i2c: E2 08 00 12 1C 80 09 00 00 00 00 00 00 A0 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]SAM_PROTO_ClearQueue done [15:00:44]KKMCreateOFDPacket [15:00:44]OFDProtocolAddRootSTLVToBuf [15:00:44]FM_MakeSignedData [15:00:44]FM_MakeSignedData [15:00:44]SAM_PROTO_SignData [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 0D 01 02 [15:00:44]Write to MH i2c: E2 08 00 13 1C 80 0D 01 02 00 00 00 00 A8 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]wFMCommunicate request_size=255 [15:00:44]MH_SAM_APDU [15:00: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 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 8F 00 00 00 F4 03 04 00 1C E7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 99 [15:00:44]Write to MH i2c: E2 02 01 14 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8F 00 00 00 F4 03 04 00 1C E7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 99 00 00 12 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 14 1C 00 90 00 A4 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]wFMCommunicate request_size=10 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 0D 02 02 05 35 89 CF CE D3 [15:00:44]Write to MH i2c: E2 0D 00 15 1C 80 0D 02 02 05 00 35 89 CF CE D3 00 00 E3 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 15 1C 00 90 00 A5 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 0D 03 02 [15:00:44]Write to MH i2c: E2 08 00 16 1C 80 0D 03 02 00 00 00 00 AD [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 0B 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 0B 00 16 1C 00 E8 6A 8B 1C 15 49 D5 64 90 00 3E [15:00:44]RAPDU: E8 6A 8B 1C 15 49 D5 64 90 00 [15:00:44]wFMCommunicate OK [15:00:44]SAM_PROTO_SignData done [15:00:44]FM_MakeSignedData done [15:00:44]CreateOFDProtocolMessage [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 11 00 00 [15:00:44]Write to MH i2c: E2 08 00 17 1C 80 11 00 00 00 00 00 00 AD [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 17 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 17 00 17 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [15:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:00:44]wFMCommunicate OK [15:00:44]CreateOFDProtocolMessage done [15:00:44]OFDSenderStorePacket 104410 [15:00:44]StoreOFDPacket docnum=104410 [15:00: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 60 22 07 01 A2 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 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 8F 00 00 00 F4 03 04 00 1C E7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 99 35 89 CF CE D3 E8 6A 8B 1C 15 49 D5 64 [15:00:44]CheckFolder [15:00:44]dirname=/storage/ofd_packets [15:00:44]CheckFolder done [15:00:44]ProducePacketName [15:00:44]name=ofd_packets/00104410 [15:00:44]NVStorageSaveData ofd_packets/00104410 [15:00:44]File name is /storage/ofd_packets/00104410 [15:00:44]Write 301 bytes [15:00:44]NVStorageSaveData done [15:00:44]OFDSenderStorePacket done [15:00:44]KKMCreateOFDPacket done [15:00:44]NVStorageSaveData kkm_last_timestamp [15:00:44]File name is /storage/kkm_last_timestamp [15:00:44]Write 4 bytes [15:00:44]NVStorageSaveData done [15:00:44]ExternCall_PrintAddStr [15:00:44]wPrintStart [15:00:44]Write to MH i2c: 01 00 00 18 1C 34 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 07 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 FF 0F 49 [15:00:44]RasterBufferAndPrint [15:00:44]line Счет N : (1)673962 [15:00:44]line ИНН: 02508201610067 [15:00:44]line Контрольно-Кассовый Чек [15:00:44]line ПРОДАЖА [15:00:44]line ТРК (МРК, ГНК) : 42 [15:00:44]line Товар: 2710124130 [15:00:44]line Аи-92-К-5 [15:00:44]line 15.070 * 66.40 [15:00:44]line = 1000.65 [15:00:44]line НДС 12% НСП 1% [15:00:44]line > о реализуемом товаре [15:00:44]line ИТОГО: 1000.65 [15:00:44]line НСП 1% : 8.85 [15:00:44]line НДС 12% : 106.26 [15:00:44]line Наличными: 0.00 [15:00:44]line Безнал.: 1000.65 [15:00:44]line Место: АЗС № 120 "Партнер Нефть" [15:00:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:00:44]line СНО: Общий режим [15:00:44]line Чек 143 22.06.2024 15:00 [15:00:44]line Смена: 356 ФФД: 1.0 [15:00:44]line ЗНМ: 0300000164 [15:00:44]line РНМ: 0000000000092785 [15:00:44]line Версия ККМ: 001 [15:00:44]line Платежная система: Бакай Банк [15:00:44]line ФМ: 0000000000875093 [15:00:44]line ФД: 104410 [15:00:44]line ФПД: 168455224413907 [15:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150044&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104410&fm=168455224413907&tin=02508201610067®Number=0000000000092785&sum=100065 [15:00:45]OFD Sender: Processing packet 104410 [packets to send 17, broken 16] [15:00:45]ProducePacketName [15:00:45]name=ofd_packets/00104410 [15:00:45]OFD Sender: To server: pG, [15:00:45]CommunicateWithHost lk.salyk.kg:30040 [15:00:45]ConnectInit lk.salyk.kg [15:00:45]written 0, free lines is 4095 [15:00:45]Connected sock=10 [15:00: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 60 22 07 01 A2 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 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 8F 00 00 00 F4 03 04 00 1C E7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 99 35 89 CF CE D3 E8 6A 8B 1C 15 49 D5 64 [15:00: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 50 78 47 00 D1 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 DA 97 01 00 F4 03 04 00 9B 8D 76 66 B6 04 01 00 00 23 91 2B BE 5F 58 9D 9F [15:00:45]CommunicateWithHost err = 0 [15:00:45]CheckOFDResponse [15:00:45]1017 (14) - 77093643461234 [15:00:45]1041 (16) - 0000000000875093 [15:00:45]1040 (4) - 104410 [15:00:45]1012 (4) - 22.06.2024 08:38 [15:00:45]1206 (1) - 0 [15:00:45]OFD Sender: Remove packet 104410 [15:00:45]ProducePacketName [15:00:45]name=ofd_packets/00104410 [15:00:45]NVStorageDeleteData [15:00:45]Write to MH i2c: 01 00 00 42 1C 5E [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 07 00 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 F6 0C 67 [15:00:45]RasterBufferAndPrint [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]written 0, free lines is 3325 [15:00:45]MH_Cut [15:00:45]Write to MH i2c: D1 01 00 49 1C 01 37 [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 01 00 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 01 00 49 1C 00 36 [15:00:45]Write to MH i2c: 01 00 00 4A 1C 66 [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]OFD Sender: No OFD packet to send [15:00:46]*** Cut start [15:00:46]*** Partial cut [15:00:46]*** CUTSNS_PIN = 1 [15:00:46]*** CUTSNS_PIN = 0 [15:00:46]*** Brake cut motor [15:00:46]Read from MH i2c: 01 [15:00:46]MH_I2C_Read... [15:00:46]*** Stop cut motor [15:00:46]*** Cut end [15:00:46]Read from MH i2c: 01 07 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 4A 1C 00 00 00 00 00 FF 0F 7B [15:00:46]process_action close_receipt done [15:00:46]requested_data is exist [15:00:46]produce_requested_data [15:00:46]requested_item fm.sn is exist - process it [15:00:46]wFMCommunicate request_size=4 [15:00:46]MH_SAM_APDU [15:00:46]CAPDU: 80 11 00 00 [15:00:46]Write to MH i2c: E2 08 00 4B 1C 80 11 00 00 00 00 00 00 E1 [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:46]Read from MH i2c: E2 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: E2 17 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: E2 17 00 4B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [15:00: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:00:46]wFMCommunicate OK [15:00:46]requested_item fd.num is exist - process it [15:00:46]SAM_PROTO_GetFieldsCounters [15:00:46]wFMCommunicate request_size=4 [15:00:46]MH_SAM_APDU [15:00:46]CAPDU: 80 13 00 00 [15:00:46]Write to MH i2c: E2 08 00 4C 1C 80 13 00 00 00 00 00 00 E4 [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 62 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 62 00 4C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 8F [15:00: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 DA 97 01 00 0E 04 04 00 64 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:00:47]wFMCommunicate OK [15:00:47]SAM_PROTO_GetFieldsCounters done [15:00:47]requested_item shift.num is exist - process it [15:00:47]requested_item shift.opened is exist - process it [15:00:47]req_shift_opened [15:00:47]FM_GetShiftState [15:00:47]SAM_PROTO_GetShiftState [15:00:47]wFMCommunicate request_size=4 [15:00:47]MH_SAM_APDU [15:00:47]CAPDU: 80 13 01 00 [15:00:47]Write to MH i2c: E2 08 00 4D 1C 80 13 01 00 00 00 00 00 E6 [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 4D 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D8 [15:00:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:00:47]wFMCommunicate OK [15:00:47]SAM_PROTO_GetShiftState done [15:00:47]FM_GetShiftState done [15:00:47]req_shift_opened done [15:00:47]requested_item shift.open_date is exist - process it [15:00:47]req_shift_open_date [15:00:47]req_shift_open_date done [15:00:47]produce_requested_data done [15:00:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104410,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:00:47]process_action_free close_receipt [15:00:47]json_value_free [15:00:47]json_value_free done [15:00:47]process_json_proto returns [15:00:47]Send response to host [15:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104410,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:00:47]free response buf [15:00:47]execute_script done [15:00:47]execute_script returns [15:00:47]free content buf [15:00:47]Sock 7.Close socket [15:00:47]Sock 7.Thread stoped [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:22]int [15:03:22]Write to MH i2c: 01 00 00 4E 1C 6A [15:03:22]*** FLAG_PRN_PAP1 set [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 4E 1C 00 01 00 00 00 FF 0F 80 [15:03:22]state=0 [15:03:22]No paper [15:03:22]int [15:03:22]Write to MH i2c: 01 00 00 4F 1C 6B [15:03:22]*** FLAG_PRN_PAP2 set [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 4F 1C 00 03 00 00 00 FF 0F 83 [15:03:22]state=0 [15:03:22]No paper [15:03:22]Cover opened [15:03:26]OFD Sender: No OFD packet to send [15:03:27]Write to MH i2c: 01 00 00 50 1C 6C [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 50 1C 00 03 00 00 00 FF 0F 84 [15:03:27]state=3 [15:03:27]No paper [15:03:27]Cover opened [15:03:29]int [15:03:29]Write to MH i2c: 01 00 00 51 1C 6D [15:03:29]*** FLAG_PRN_PAP1 reset [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 [15:03:29]MH_I2C_Read... [15:03:29]*** FLAG_PRN_PAP2 reset [15:03:29]Read from MH i2c: 01 07 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FF 0F 82 [15:03:29]state=3 [15:03:29]Cover closed [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:48]accept exits with 9 [15:05:48]New connection [15:05:48]New thread 3066449252 created [15:05:48]Thread 3066592612 joined [15:05:48]Waiting for new connection... [15:05:48] Sock 9.Parse request [15:05:48]Sock 9.Check first char [15:05:48]Sock 9.First char is OK [15:05:48]request: POST /json_proto HTTP/1.0 [15:05:48]Method: POST [15:05:48]URL: /json_proto [15:05:48]Method is POST - this is cgi request [15:05:48]url: /json_proto [15:05:48]query_string will be loaded in cgi processing [15:05:48]execute_cgi json_proto POST (null) [15:05:48]execute_cgi path=json_proto method=POST [15:05:48]POST find Content-Length [15:05:48]Host: 172.17.38.133:8080 [15:05:48]Content-Length: 1167 [15:05:48]Content-Type: application/json [15:05:48] [15:05:48]POST finish read [15:05:48]Found Content-Length = 1167 [15:05: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673963\u000A22.06.2024 14:42\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 4.570 x 66.40\u000A\u0418\u0422\u041E\u0413: 303.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:48]execute_script... [15:05: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673963\u000A22.06.2024 14:42\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 4.570 x 66.40\u000A\u0418\u0422\u041E\u0413: 303.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:48]POST & json_proto [15:05:48]process_json_proto [15:05:48]json parsed OK: [15:05:48]protocol is kg_v1.0 [15:05:48]action value=print_text [15:05:48]process_action print_text [15:05:48]cmd_print_text [15:05:48]ExternCall_PrintAddStr [15:05:48]wPrintStart [15:05:48]Write to MH i2c: 01 00 00 52 1C 6E [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 07 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 07 00 52 1C 00 00 00 00 00 FF 0F 83 [15:05:48]RasterBufferAndPrint [15:05:48]line *****ТОВАРНЫЙ ЧЕК***** [15:05:48]line АЗС 120 [15:05:48]line Партнер нефть [15:05:48]line 02508201610067 [15:05:48]line Кассир : Байбугуева Г. [15:05:48]line Счет N : (1)673963 [15:05:48]line 22.06.2024 14:42 [15:05:48]line ПРОДАЖА [15:05:48]line ТРК (МРК, ГНК): 42 [15:05:48]line Вид ГСМ : 2710124130 [15:05:48]line Аи-92-К-5 [15:05:48]line 4.570 x 66.40 [15:05:48]line ИТОГ: 303.45 [15:05:48]line Тип оплаты: Талоны: ТК ГПНА Online [15:05:48]line 30101507 [15:05:48]line ______________________ [15:05:48]line (подпись) [15:05:48]written 0, free lines is 4095 [15:05:48]Write to MH i2c: 01 00 00 66 1C 82 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 07 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 07 00 66 1C 00 00 00 00 00 11 0E A8 [15:05:48]RasterBufferAndPrint [15:05:48]line [15:05:48]line [15:05:48]line [15:05:48]line [15:05:48]line [15:05:48]written 0, free lines is 3603 [15:05:48]MH_Cut [15:05:48]Write to MH i2c: D1 01 00 6D 1C 01 5B [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: D1 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: D1 01 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: D1 01 00 6D 1C 00 5A [15:05:48]Write to MH i2c: 01 00 00 6E 1C 8A [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]*** Cut start [15:05:48]*** Partial cut [15:05:48]*** CUTSNS_PIN = 1 [15:05:48]*** CUTSNS_PIN = 0 [15:05:49]*** Brake cut motor [15:05:49]Read from MH i2c: 01 [15:05:49]MH_I2C_Read... [15:05:49]*** Stop cut motor [15:05:49]*** Cut end [15:05:49]Read from MH i2c: 01 07 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 6E 1C 00 00 00 00 00 FF 0F 9F [15:05:49]process_action print_text done [15:05:49]requested_data is exist [15:05:49]produce_requested_data [15:05:49]requested_item fm.sn is exist - process it [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 11 00 00 [15:05:49]Write to MH i2c: E2 08 00 6F 1C 80 11 00 00 00 00 00 00 05 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 6F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [15:05: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:05:49]wFMCommunicate OK [15:05:49]requested_item fd.num is exist - process it [15:05:49]SAM_PROTO_GetFieldsCounters [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 13 00 00 [15:05:49]Write to MH i2c: E2 08 00 70 1C 80 13 00 00 00 00 00 00 08 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 62 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 62 00 70 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B3 [15:05: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 DA 97 01 00 0E 04 04 00 64 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:05:49]wFMCommunicate OK [15:05:49]SAM_PROTO_GetFieldsCounters done [15:05:49]requested_item shift.num is exist - process it [15:05:49]requested_item shift.opened is exist - process it [15:05:49]req_shift_opened [15:05:49]FM_GetShiftState [15:05:49]SAM_PROTO_GetShiftState [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 13 01 00 [15:05:49]Write to MH i2c: E2 08 00 71 1C 80 13 01 00 00 00 00 00 0A [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0E 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0E 00 71 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FC [15:05:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:05:49]wFMCommunicate OK [15:05:49]SAM_PROTO_GetShiftState done [15:05:49]FM_GetShiftState done [15:05:49]req_shift_opened done [15:05:49]requested_item shift.open_date is exist - process it [15:05:49]req_shift_open_date [15:05:49]req_shift_open_date done [15:05:49]produce_requested_data done [15:05:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104410,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:05:49]process_action_free print_text [15:05:49]json_value_free [15:05:49]json_value_free done [15:05:49]process_json_proto returns [15:05:49]Send response to host [15:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104410,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:05:49]free response buf [15:05:49]execute_script done [15:05:49]execute_script returns [15:05:49]free content buf [15:05:49]Sock 9.Close socket [15:05:49]Sock 9.Thread stoped [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:28]accept exits with 7 [15:08:28]New connection [15:08:28]New thread 3066592612 created [15:08:28]Thread 3066449252 joined [15:08:28]Waiting for new connection... [15:08:28] Sock 7.Parse request [15:08:28]Sock 7.Check first char [15:08:28]Sock 7.First char is OK [15:08:28]request: POST /json_proto HTTP/1.0 [15:08:28]Method: POST [15:08:28]URL: /json_proto [15:08:28]Method is POST - this is cgi request [15:08:28]url: /json_proto [15:08:28]query_string will be loaded in cgi processing [15:08:28]execute_cgi json_proto POST (null) [15:08:28]execute_cgi path=json_proto method=POST [15:08:28]POST find Content-Length [15:08:28]Host: 172.17.38.133:8080 [15:08:28]Content-Length: 678 [15:08:28]Content-Type: application/json [15:08:28] [15:08:28]POST finish read [15:08:28]Found Content-Length = 678 [15:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673965", "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" : 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" ] } } [15:08:28]execute_script... [15:08: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)673965", "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" : 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" ] } } [15:08:28]POST & json_proto [15:08:28]process_json_proto [15:08:28]json parsed OK: [15:08:28]protocol is kg_v1.0 [15:08:28]action value=close_receipt [15:08:28]process_action close_receipt [15:08:28]cmd_close_receipt [15:08:28]MH_GetDate [15:08:28]Write to MH i2c: F0 00 00 72 1C 7D [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 09 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: F0 09 00 72 1C 00 EE E8 76 66 BD 8F 7C 64 64 [15:08:28]GetLastDocTimeStamp 1719068444 [15:08:28]current date 1719068910 [15:08:28]FM_GetShiftState [15:08:28]SAM_PROTO_GetShiftState [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 13 01 00 [15:08:28]Write to MH i2c: E2 08 00 73 1C 80 13 01 00 00 00 00 00 0C [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 73 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FE [15:08:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_GetShiftState done [15:08:28]FM_GetShiftState done [15:08:28]opened in 1719016176 [15:08:28]opened+sec_in_day 1719102576 [15:08:28]quantity*price = 80033 [15:08:28]sum+1 = 80035 [15:08:28]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 СНО: Общий режим Чек 144 22.06.2024 15:08 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104411 ФПД: 208948724165638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104411&fm=208948724165638&tin=02508201610067®Number=0000000000092785&sum=80000 [15:08:29]StoreToDocumentArchive [15:08:29]shift 356 fd 104411 [15:08:29]save to /storage/0356/doc_00104411 [15:08:29]save last doc name /storage/0356/doc_00104411 to /storage/kkm_last_doc_name [15:08:29]save OK [15:08:29]Clear old archive folders... [15:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:29]tlvbuf is 010435D0 [15:08:29]SAM_PROTO_ClearQueue [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 09 00 00 [15:08:29]Write to MH i2c: E2 08 00 80 1C 80 09 00 00 00 00 00 00 0E [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 80 1C 00 90 00 10 [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]SAM_PROTO_ClearQueue done [15:08:29]KKMCreateOFDPacket [15:08:29]OFDProtocolAddRootSTLVToBuf [15:08:29]FM_MakeSignedData [15:08:29]FM_MakeSignedData [15:08:29]SAM_PROTO_SignData [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 0D 01 02 [15:08:29]Write to MH i2c: E2 08 00 81 1C 80 0D 01 02 00 00 00 00 16 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 03 00 81 1C 00 90 00 11 [15:08:29]RAPDU: 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=255 [15:08:29]MH_SAM_APDU [15:08: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 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 90 00 00 00 F4 03 04 00 EE E8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE [15:08:29]Write to MH i2c: E2 02 01 82 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 90 00 00 00 F4 03 04 00 EE E8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE 00 00 DB [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 03 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 03 00 82 1C 00 90 00 12 [15:08:30]RAPDU: 90 00 [15:08:30]wFMCommunicate OK [15:08:30]wFMCommunicate request_size=10 [15:08:30]MH_SAM_APDU [15:08:30]CAPDU: 80 0D 02 02 05 09 AA 7A EC 06 [15:08:30]Write to MH i2c: E2 0D 00 83 1C 80 0D 02 02 05 00 09 AA 7A EC 06 00 00 42 [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 03 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 03 00 83 1C 00 90 00 13 [15:08:30]RAPDU: 90 00 [15:08:30]wFMCommunicate OK [15:08:30]wFMCommunicate request_size=4 [15:08:30]MH_SAM_APDU [15:08:30]CAPDU: 80 0D 03 02 [15:08:30]Write to MH i2c: E2 08 00 84 1C 80 0D 03 02 00 00 00 00 1B [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 0B 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 0B 00 84 1C 00 3B E2 1A 1E 06 62 8A 12 90 00 75 [15:08:30]RAPDU: 3B E2 1A 1E 06 62 8A 12 90 00 [15:08:30]wFMCommunicate OK [15:08:30]SAM_PROTO_SignData done [15:08:30]FM_MakeSignedData done [15:08:30]CreateOFDProtocolMessage [15:08:30]wFMCommunicate request_size=4 [15:08:30]MH_SAM_APDU [15:08:30]CAPDU: 80 11 00 00 [15:08:30]Write to MH i2c: E2 08 00 85 1C 80 11 00 00 00 00 00 00 1B [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 17 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 17 00 85 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [15:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:08:30]wFMCommunicate OK [15:08:30]CreateOFDProtocolMessage done [15:08:30]OFDSenderStorePacket 104411 [15:08:30]StoreOFDPacket docnum=104411 [15:08: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 BC EF 07 01 5A 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 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 90 00 00 00 F4 03 04 00 EE E8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE 09 AA 7A EC 06 3B E2 1A 1E 06 62 8A 12 [15:08:30]CheckFolder [15:08:30]dirname=/storage/ofd_packets [15:08:30]CheckFolder done [15:08:30]ProducePacketName [15:08:30]name=ofd_packets/00104411 [15:08:30]NVStorageSaveData ofd_packets/00104411 [15:08:30]File name is /storage/ofd_packets/00104411 [15:08:30]Write 301 bytes [15:08:30]NVStorageSaveData done [15:08:30]OFDSenderStorePacket done [15:08:30]KKMCreateOFDPacket done [15:08:30]NVStorageSaveData kkm_last_timestamp [15:08:30]File name is /storage/kkm_last_timestamp [15:08:30]Write 4 bytes [15:08:30]NVStorageSaveData done [15:08:30]ExternCall_PrintAddStr [15:08:30]wPrintStart [15:08:30]Write to MH i2c: 01 00 00 86 1C A2 [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 07 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: 01 07 00 86 1C 00 00 00 00 00 FF 0F B7 [15:08:30]RasterBufferAndPrint [15:08:30]line Счет N : (1)673965 [15:08:30]line ИНН: 02508201610067 [15:08:30]line Контрольно-Кассовый Чек [15:08:30]line ПРОДАЖА [15:08:30]line ТРК (МРК, ГНК) : 41 [15:08:30]line Товар: 2710124500 [15:08:30]line Аи-95-К-5 [15:08:30]line 10.830 * 73.90 [15:08:30]line = 800.34 [15:08:30]line НДС 12% НСП 1% [15:08:30]line > о реализуемом товаре [15:08:30]line ОКРУГЛЕНИЕ: -0.34 [15:08:30]line ИТОГО: 800.00 [15:08:30]line Внесено: 800.00 [15:08:30]line СДАЧА: 0.00 [15:08:30]line НСП 1% : 7.08 [15:08:30]line НДС 12% : 84.99 [15:08:30]line Наличными: 800.00 [15:08:30]line Безнал.: 0.00 [15:08:30]line Место: АЗС № 120 "Партнер Нефть" [15:08:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:08:30]line СНО: Общий режим [15:08:30]line Чек 144 22.06.2024 15:08 [15:08:30]line Смена: 356 ФФД: 1.0 [15:08:30]line ЗНМ: 0300000164 [15:08:30]line РНМ: 0000000000092785 [15:08:30]line Версия ККМ: 001 [15:08:30]line ФМ: 0000000000875093 [15:08:30]line ФД: 104411 [15:08:30]line ФПД: 208948724165638 [15:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104411&fm=208948724165638&tin=02508201610067®Number=0000000000092785&sum=80000 [15:08:30]OFD Sender: Processing packet 104411 [packets to send 17, broken 16] [15:08:30]ProducePacketName [15:08:30]name=ofd_packets/00104411 [15:08:30]OFD Sender: To server: pG, [15:08:30]CommunicateWithHost lk.salyk.kg:30040 [15:08:30]ConnectInit lk.salyk.kg [15:08:30]written 0, free lines is 4095 [15:08:30]Connected sock=10 [15:08: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 BC EF 07 01 5A 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 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 90 00 00 00 F4 03 04 00 EE E8 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE 09 AA 7A EC 06 3B E2 1A 1E 06 62 8A 12 [15:08: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 AD D0 47 00 5F 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 DB 97 01 00 F4 03 04 00 6D 8F 76 66 B6 04 01 00 00 25 26 FF CA 35 C7 86 DD [15:08:30]CommunicateWithHost err = 0 [15:08:30]CheckOFDResponse [15:08:30]1017 (14) - 77093643461234 [15:08:30]1041 (16) - 0000000000875093 [15:08:30]1040 (4) - 104411 [15:08:30]1012 (4) - 22.06.2024 08:46 [15:08:30]1206 (1) - 0 [15:08:30]OFD Sender: Remove packet 104411 [15:08:30]ProducePacketName [15:08:30]name=ofd_packets/00104411 [15:08:30]NVStorageDeleteData [15:08:31]Write to MH i2c: 01 00 00 B1 1C CD [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: 01 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: 01 07 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: 01 07 00 B1 1C 00 00 00 00 00 ED 0C CD [15:08:31]RasterBufferAndPrint [15:08:31]line [15:08:31]line [15:08:31]line [15:08:31]line [15:08:31]line [15:08:31]written 0, free lines is 3315 [15:08:31]MH_Cut [15:08:31]Write to MH i2c: D1 01 00 B8 1C 01 A6 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: D1 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: D1 01 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: D1 01 00 B8 1C 00 A5 [15:08:31]Write to MH i2c: 01 00 00 B9 1C D5 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]OFD Sender: No OFD packet to send [15:08:31]*** Cut start [15:08:31]*** Partial cut [15:08:31]*** CUTSNS_PIN = 1 [15:08:31]*** CUTSNS_PIN = 0 [15:08:32]*** Brake cut motor [15:08:32]Read from MH i2c: 01 [15:08:32]MH_I2C_Read... [15:08:32]*** Stop cut motor [15:08:32]*** Cut end [15:08:32]Read from MH i2c: 01 07 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: 01 07 00 B9 1C 00 00 00 00 00 FF 0F EA [15:08:32]process_action close_receipt done [15:08:32]requested_data is exist [15:08:32]produce_requested_data [15:08:32]requested_item fm.sn is exist - process it [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 11 00 00 [15:08:32]Write to MH i2c: E2 08 00 BA 1C 80 11 00 00 00 00 00 00 50 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 17 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 17 00 BA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [15:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:08:32]wFMCommunicate OK [15:08:32]requested_item fd.num is exist - process it [15:08:32]SAM_PROTO_GetFieldsCounters [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 13 00 00 [15:08:32]Write to MH i2c: E2 08 00 BB 1C 80 13 00 00 00 00 00 00 53 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 62 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 62 00 BB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 02 [15:08: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 DB 97 01 00 0E 04 04 00 64 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:08:32]wFMCommunicate OK [15:08:32]SAM_PROTO_GetFieldsCounters done [15:08:32]requested_item shift.num is exist - process it [15:08:32]requested_item shift.opened is exist - process it [15:08:32]req_shift_opened [15:08:32]FM_GetShiftState [15:08:32]SAM_PROTO_GetShiftState [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 13 01 00 [15:08:32]Write to MH i2c: E2 08 00 BC 1C 80 13 01 00 00 00 00 00 55 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 0E 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 0E 00 BC 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 47 [15:08:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:08:32]wFMCommunicate OK [15:08:32]SAM_PROTO_GetShiftState done [15:08:32]FM_GetShiftState done [15:08:32]req_shift_opened done [15:08:32]requested_item shift.open_date is exist - process it [15:08:32]req_shift_open_date [15:08:32]req_shift_open_date done [15:08:32]produce_requested_data done [15:08:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:08:32]process_action_free close_receipt [15:08:32]json_value_free [15:08:32]json_value_free done [15:08:32]process_json_proto returns [15:08:32]Send response to host [15:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:08:32]free response buf [15:08:32]execute_script done [15:08:32]execute_script returns [15:08:32]free content buf [15:08:32]Sock 7.Close socket [15:08:32]Sock 7.Thread stoped [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:12]accept exits with 9 [15:09:12]New connection [15:09:12]New thread 3066449252 created [15:09:12]Thread 3066592612 joined [15:09:12]Waiting for new connection... [15:09:12] Sock 9.Parse request [15:09:12]Sock 9.Check first char [15:09:12]Sock 9.First char is OK [15:09:12]request: POST /json_proto HTTP/1.0 [15:09:12]Method: POST [15:09:12]URL: /json_proto [15:09:12]Method is POST - this is cgi request [15:09:12]url: /json_proto [15:09:12]query_string will be loaded in cgi processing [15:09:12]execute_cgi json_proto POST (null) [15:09:12]execute_cgi path=json_proto method=POST [15:09:12]POST find Content-Length [15:09:12]Host: 172.17.38.133:8080 [15:09:12]Content-Length: 1207 [15:09:12]Content-Type: application/json [15:09:12] [15:09:12]POST finish read [15:09:12]Found Content-Length = 1207 [15:09: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673964\u000A22.06.2024 14:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 33.830 x 73.90\u000A\u0418\u0422\u041E\u0413: 2500.04\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\u000A76500\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:12]execute_script... [15:09: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673964\u000A22.06.2024 14:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 33.830 x 73.90\u000A\u0418\u0422\u041E\u0413: 2500.04\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\u000A76500\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:12]POST & json_proto [15:09:12]process_json_proto [15:09:12]json parsed OK: [15:09:12]protocol is kg_v1.0 [15:09:12]action value=print_text [15:09:12]process_action print_text [15:09:12]cmd_print_text [15:09:12]ExternCall_PrintAddStr [15:09:12]wPrintStart [15:09:12]Write to MH i2c: 01 00 00 BD 1C D9 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 FF 0F EE [15:09:12]RasterBufferAndPrint [15:09:12]line *****ТОВАРНЫЙ ЧЕК***** [15:09:12]line АЗС 120 [15:09:12]line Партнер нефть [15:09:12]line 02508201610067 [15:09:12]line Кассир : Байбугуева Г. [15:09:12]line Счет N : (1)673964 [15:09:12]line 22.06.2024 14:46 [15:09:12]line ПРОДАЖА [15:09:12]line ТРК (МРК, ГНК): 31 [15:09:12]line Вид ГСМ : 2710124500 [15:09:12]line Аи-95-К-5 [15:09:12]line 33.830 x 73.90 [15:09:12]line ИТОГ: 2500.04 [15:09:12]line Тип оплаты: Талоны: Топливная Карта [15:09:12]line 76500 [15:09:12]line ______________________ [15:09:12]line (подпись) [15:09:12]written 0, free lines is 4095 [15:09:12]Write to MH i2c: 01 00 00 D1 1C ED [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 D1 1C 00 00 00 00 00 13 0E 15 [15:09:12]RasterBufferAndPrint [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]written 0, free lines is 3605 [15:09:12]MH_Cut [15:09:12]Write to MH i2c: D1 01 00 D8 1C 01 C6 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 D8 1C 00 C5 [15:09:12]Write to MH i2c: 01 00 00 D9 1C F5 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** Cut start [15:09:12]*** Partial cut [15:09:12]*** CUTSNS_PIN = 1 [15:09:12]*** CUTSNS_PIN = 0 [15:09:13]*** Brake cut motor [15:09:13]Read from MH i2c: 01 [15:09:13]MH_I2C_Read... [15:09:13]*** Stop cut motor [15:09:13]*** Cut end [15:09:13]Read from MH i2c: 01 07 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 FF 0F 0A [15:09:13]process_action print_text done [15:09:13]requested_data is exist [15:09:13]produce_requested_data [15:09:13]requested_item fm.sn is exist - process it [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 11 00 00 [15:09:13]Write to MH i2c: E2 08 00 DA 1C 80 11 00 00 00 00 00 00 70 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 DA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [15:09: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:09:13]wFMCommunicate OK [15:09:13]requested_item fd.num is exist - process it [15:09:13]SAM_PROTO_GetFieldsCounters [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 13 00 00 [15:09:13]Write to MH i2c: E2 08 00 DB 1C 80 13 00 00 00 00 00 00 73 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 62 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 62 00 DB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 22 [15:09: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 DB 97 01 00 0E 04 04 00 64 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:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetFieldsCounters done [15:09:13]requested_item shift.num is exist - process it [15:09:13]requested_item shift.opened is exist - process it [15:09:13]req_shift_opened [15:09:13]FM_GetShiftState [15:09:13]SAM_PROTO_GetShiftState [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 13 01 00 [15:09:13]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 67 [15:09:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetShiftState done [15:09:13]FM_GetShiftState done [15:09:13]req_shift_opened done [15:09:13]requested_item shift.open_date is exist - process it [15:09:13]req_shift_open_date [15:09:13]req_shift_open_date done [15:09:13]produce_requested_data done [15:09:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:09:13]process_action_free print_text [15:09:13]json_value_free [15:09:13]json_value_free done [15:09:13]process_json_proto returns [15:09:13]Send response to host [15:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:09:13]free response buf [15:09:13]execute_script done [15:09:13]execute_script returns [15:09:13]free content buf [15:09:13]Sock 9.Close socket [15:09:13]Sock 9.Thread stoped [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:25]accept exits with 7 [15:11:25]New connection [15:11:25]New thread 3066592612 created [15:11:25]Thread 3066449252 joined [15:11:25]Waiting for new connection... [15:11:25] Sock 7.Parse request [15:11:25]Sock 7.Check first char [15:11:25]Sock 7.First char is OK [15:11:25]request: POST /json_proto HTTP/1.0 [15:11:25]Method: POST [15:11:25]URL: /json_proto [15:11:25]Method is POST - this is cgi request [15:11:25]url: /json_proto [15:11:25]query_string will be loaded in cgi processing [15:11:25]execute_cgi json_proto POST (null) [15:11:25]execute_cgi path=json_proto method=POST [15:11:25]POST find Content-Length [15:11:25]Host: 172.17.38.133:8080 [15:11:25]Content-Length: 1169 [15:11:25]Content-Type: application/json [15:11:25] [15:11:25]POST finish read [15:11:25]Found Content-Length = 1169 [15:11: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673966\u000A22.06.2024 14:48\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 30.120 x 66.40\u000A\u0418\u0422\u041E\u0413: 1999.97\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:25]execute_script... [15:11: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673966\u000A22.06.2024 14:48\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 30.120 x 66.40\u000A\u0418\u0422\u041E\u0413: 1999.97\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101507\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:25]POST & json_proto [15:11:25]process_json_proto [15:11:25]json parsed OK: [15:11:25]protocol is kg_v1.0 [15:11:25]action value=print_text [15:11:25]process_action print_text [15:11:25]cmd_print_text [15:11:25]ExternCall_PrintAddStr [15:11:25]wPrintStart [15:11:25]Write to MH i2c: 01 00 00 DD 1C F9 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [15:11:25]RasterBufferAndPrint [15:11:25]line *****ТОВАРНЫЙ ЧЕК***** [15:11:25]line АЗС 120 [15:11:25]line Партнер нефть [15:11:25]line 02508201610067 [15:11:25]line Кассир : Байбугуева Г. [15:11:25]line Счет N : (1)673966 [15:11:25]line 22.06.2024 14:48 [15:11:25]line ПРОДАЖА [15:11:25]line ТРК (МРК, ГНК): 32 [15:11:25]line Вид ГСМ : 2710124130 [15:11:25]line Аи-92-К-5 [15:11:25]line 30.120 x 66.40 [15:11:25]line ИТОГ: 1999.97 [15:11:25]line Тип оплаты: Талоны: ТК ГПНА Online [15:11:25]line 30101507 [15:11:25]line ______________________ [15:11:25]line (подпись) [15:11:25]written 0, free lines is 4095 [15:11:25]Write to MH i2c: 01 00 00 F1 1C 0D [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 13 0E 35 [15:11:25]RasterBufferAndPrint [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]written 0, free lines is 3605 [15:11:25]MH_Cut [15:11:25]Write to MH i2c: D1 01 00 F8 1C 01 E6 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 01 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 01 00 F8 1C 00 E5 [15:11:25]Write to MH i2c: 01 00 00 F9 1C 15 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:26]*** Cut start [15:11:26]*** Partial cut [15:11:26]*** CUTSNS_PIN = 1 [15:11:26]*** CUTSNS_PIN = 0 [15:11:26]*** Brake cut motor [15:11:26]OFD Sender: No OFD packet to send [15:11:26]Read from MH i2c: 01 [15:11:26]MH_I2C_Read... [15:11:26]*** Stop cut motor [15:11:26]*** Cut end [15:11:26]Read from MH i2c: 01 07 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [15:11:26]process_action print_text done [15:11:26]requested_data is exist [15:11:26]produce_requested_data [15:11:26]requested_item fm.sn is exist - process it [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 11 00 00 [15:11:26]Write to MH i2c: E2 08 00 FA 1C 80 11 00 00 00 00 00 00 90 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 FA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [15:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:11:26]wFMCommunicate OK [15:11:26]requested_item fd.num is exist - process it [15:11:26]SAM_PROTO_GetFieldsCounters [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 13 00 00 [15:11:26]Write to MH i2c: E2 08 00 FB 1C 80 13 00 00 00 00 00 00 93 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 62 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 62 00 FB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 42 [15:11: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 DB 97 01 00 0E 04 04 00 64 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:11:26]wFMCommunicate OK [15:11:26]SAM_PROTO_GetFieldsCounters done [15:11:26]requested_item shift.num is exist - process it [15:11:26]requested_item shift.opened is exist - process it [15:11:26]req_shift_opened [15:11:26]FM_GetShiftState [15:11:26]SAM_PROTO_GetShiftState [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 13 01 00 [15:11:26]Write to MH i2c: E2 08 00 FC 1C 80 13 01 00 00 00 00 00 95 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 0E 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 0E 00 FC 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 87 [15:11:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:11:26]wFMCommunicate OK [15:11:26]SAM_PROTO_GetShiftState done [15:11:26]FM_GetShiftState done [15:11:26]req_shift_opened done [15:11:26]requested_item shift.open_date is exist - process it [15:11:26]req_shift_open_date [15:11:26]req_shift_open_date done [15:11:26]produce_requested_data done [15:11:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:11:26]process_action_free print_text [15:11:26]json_value_free [15:11:26]json_value_free done [15:11:26]process_json_proto returns [15:11:26]Send response to host [15:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104411,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:11:26]free response buf [15:11:26]execute_script done [15:11:26]execute_script returns [15:11:26]free content buf [15:11:26]Sock 7.Close socket [15:11:26]Sock 7.Thread stoped [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]accept exits with 9 [15:14:06]New connection [15:14:06]New thread 3066449252 created [15:14:06]Thread 3066592612 joined [15:14:06]Waiting for new connection... [15:14:06] Sock 9.Parse request [15:14:06]Sock 9.Check first char [15:14:06]Sock 9.First char is OK [15:14:06]request: POST /json_proto HTTP/1.0 [15:14:06]Method: POST [15:14:06]URL: /json_proto [15:14:06]Method is POST - this is cgi request [15:14:06]url: /json_proto [15:14:06]query_string will be loaded in cgi processing [15:14:06]execute_cgi json_proto POST (null) [15:14:06]execute_cgi path=json_proto method=POST [15:14:06]POST find Content-Length [15:14:06]Host: 172.17.38.133:8080 [15:14:06]Content-Length: 677 [15:14:06]Content-Type: application/json [15:14:06] [15:14:06]POST finish read [15:14:06]Found Content-Length = 677 [15:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673967", "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" ] } } [15:14:06]execute_script... [15:14: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)673967", "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" ] } } [15:14:06]POST & json_proto [15:14:06]process_json_proto [15:14:06]json parsed OK: [15:14:06]protocol is kg_v1.0 [15:14:06]action value=close_receipt [15:14:06]process_action close_receipt [15:14:06]cmd_close_receipt [15:14:06]MH_GetDate [15:14:06]Write to MH i2c: F0 00 00 FD 1C 08 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: F0 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: F0 09 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: F0 09 00 FD 1C 00 3F EA 76 66 BD 8F 7C 64 42 [15:14:06]GetLastDocTimeStamp 1719068910 [15:14:06]current date 1719069247 [15:14:06]FM_GetShiftState [15:14:06]SAM_PROTO_GetShiftState [15:14:06]wFMCommunicate request_size=4 [15:14:06]MH_SAM_APDU [15:14:06]CAPDU: 80 13 01 00 [15:14:06]Write to MH i2c: E2 08 00 FE 1C 80 13 01 00 00 00 00 00 97 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 0E 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 0E 00 FE 1C 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 89 [15:14:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:14:06]wFMCommunicate OK [15:14:06]SAM_PROTO_GetShiftState done [15:14:06]FM_GetShiftState done [15:14:06]opened in 1719016176 [15:14:06]opened+sec_in_day 1719102576 [15:14:06]quantity*price = 40039 [15:14:06]sum+1 = 40040 [15:14:06]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 СНО: Общий режим Чек 145 22.06.2024 15:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104412 ФПД: 160616206029830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104412&fm=160616206029830&tin=02508201610067®Number=0000000000092785&sum=40000 [15:14:07]StoreToDocumentArchive [15:14:07]shift 356 fd 104412 [15:14:07]save to /storage/0356/doc_00104412 [15:14:07]save last doc name /storage/0356/doc_00104412 to /storage/kkm_last_doc_name [15:14:07]save OK [15:14:07]Clear old archive folders... [15:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:07]tlvbuf is 01043630 [15:14:07]SAM_PROTO_ClearQueue [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 09 00 00 [15:14:07]Write to MH i2c: E2 08 00 0B 1D 80 09 00 00 00 00 00 00 9A [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_ClearQueue done [15:14:07]KKMCreateOFDPacket [15:14:07]OFDProtocolAddRootSTLVToBuf [15:14:07]FM_MakeSignedData [15:14:07]FM_MakeSignedData [15:14:07]SAM_PROTO_SignData [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 01 02 [15:14:07]Write to MH i2c: E2 08 00 0C 1D 80 0D 01 02 00 00 00 00 A2 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=255 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 91 00 00 00 F4 03 04 00 3F EA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 [15:14:07]Write to MH i2c: E2 02 01 0D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 91 00 00 00 F4 03 04 00 3F EA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 00 00 2B [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=10 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 02 02 05 14 5F E7 D4 06 [15:14:07]Write to MH i2c: E2 0D 00 0E 1D 80 0D 02 02 05 00 14 5F E7 D4 06 00 00 E3 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 03 02 [15:14:07]Write to MH i2c: E2 08 00 0F 1D 80 0D 03 02 00 00 00 00 A7 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0B 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0B 00 0F 1D 00 5A FC 71 F5 30 31 85 74 90 00 BE [15:14:07]RAPDU: 5A FC 71 F5 30 31 85 74 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_SignData done [15:14:07]FM_MakeSignedData done [15:14:07]CreateOFDProtocolMessage [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 11 00 00 [15:14:07]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [15: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 [15:14:07]wFMCommunicate OK [15:14:07]CreateOFDProtocolMessage done [15:14:07]OFDSenderStorePacket 104412 [15:14:07]StoreOFDPacket docnum=104412 [15: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 27 9F 07 01 4A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 91 00 00 00 F4 03 04 00 3F EA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 14 5F E7 D4 06 5A FC 71 F5 30 31 85 74 [15:14:07]CheckFolder [15:14:07]dirname=/storage/ofd_packets [15:14:07]CheckFolder done [15:14:07]ProducePacketName [15:14:07]name=ofd_packets/00104412 [15:14:07]NVStorageSaveData ofd_packets/00104412 [15:14:07]File name is /storage/ofd_packets/00104412 [15:14:07]Write 301 bytes [15:14:07]NVStorageSaveData done [15:14:07]OFDSenderStorePacket done [15:14:07]KKMCreateOFDPacket done [15:14:07]NVStorageSaveData kkm_last_timestamp [15:14:07]File name is /storage/kkm_last_timestamp [15:14:07]Write 4 bytes [15:14:07]NVStorageSaveData done [15:14:07]ExternCall_PrintAddStr [15:14:07]wPrintStart [15:14:07]Write to MH i2c: 01 00 00 11 1D 2E [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 07 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [15:14:07]RasterBufferAndPrint [15:14:07]line Счет N : (1)673967 [15:14:07]line ИНН: 02508201610067 [15:14:07]line Контрольно-Кассовый Чек [15:14:07]line ПРОДАЖА [15:14:07]line ТРК (МРК, ГНК) : 32 [15:14:07]line Товар: 2710124130 [15:14:07]line Аи-92-К-5 [15:14:07]line 6.030 * 66.40 [15:14:07]line = 400.39 [15:14:07]line НДС 12% НСП 1% [15:14:07]line > о реализуемом товаре [15:14:07]line ОКРУГЛЕНИЕ: -0.39 [15:14:07]line ИТОГО: 400.00 [15:14:07]line Внесено: 400.00 [15:14:07]line СДАЧА: 0.00 [15:14:07]line НСП 1% : 3.54 [15:14:07]line НДС 12% : 42.52 [15:14:07]line Наличными: 400.00 [15:14:07]line Безнал.: 0.00 [15:14:07]line Место: АЗС № 120 "Партнер Нефть" [15:14:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:14:07]line СНО: Общий режим [15:14:07]line Чек 145 22.06.2024 15:14 [15:14:07]line Смена: 356 ФФД: 1.0 [15:14:07]line ЗНМ: 0300000164 [15:14:07]line РНМ: 0000000000092785 [15:14:07]line Версия ККМ: 001 [15:14:07]line ФМ: 0000000000875093 [15:14:07]line ФД: 104412 [15:14:08]line ФПД: 160616206029830 [15:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151407&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104412&fm=160616206029830&tin=02508201610067®Number=0000000000092785&sum=40000 [15:14:08]OFD Sender: Processing packet 104412 [packets to send 17, broken 16] [15:14:08]ProducePacketName [15:14:08]name=ofd_packets/00104412 [15:14:08]OFD Sender: To server: pG, [15:14:08]CommunicateWithHost lk.salyk.kg:30040 [15:14:08]ConnectInit lk.salyk.kg [15:14:08]written 0, free lines is 4095 [15:14:08]Connected sock=10 [15:14: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 27 9F 07 01 4A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 91 00 00 00 F4 03 04 00 3F EA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 92 14 5F E7 D4 06 5A FC 71 F5 30 31 85 74 [15:14: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 0F 87 47 00 72 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 97 01 00 F4 03 04 00 BE 90 76 66 B6 04 01 00 00 07 8B 51 D6 FD 23 7B FE [15:14:08]CommunicateWithHost err = 0 [15:14:08]CheckOFDResponse [15:14:08]1017 (14) - 77093643461234 [15:14:08]1041 (16) - 0000000000875093 [15:14:08]1040 (4) - 104412 [15:14:08]1012 (4) - 22.06.2024 08:52 [15:14:08]1206 (1) - 0 [15:14:08]OFD Sender: Remove packet 104412 [15:14:08]ProducePacketName [15:14:08]name=ofd_packets/00104412 [15:14:08]NVStorageDeleteData [15:14:08]Write to MH i2c: 01 00 00 3C 1D 59 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 07 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 ED 0C 59 [15:14:08]RasterBufferAndPrint [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]written 0, free lines is 3315 [15:14:08]MH_Cut [15:14:08]Write to MH i2c: D1 01 00 43 1D 01 32 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 01 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 01 00 43 1D 00 31 [15:14:08]Write to MH i2c: 01 00 00 44 1D 61 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]OFD Sender: No OFD packet to send [15:14:09]*** Cut start [15:14:09]*** Partial cut [15:14:09]*** CUTSNS_PIN = 1 [15:14:09]*** CUTSNS_PIN = 0 [15:14:09]*** Brake cut motor [15:14:09]Read from MH i2c: 01 [15:14:09]MH_I2C_Read... [15:14:09]*** Stop cut motor [15:14:10]*** Cut end [15:14:10]Read from MH i2c: 01 07 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [15:14:10]process_action close_receipt done [15:14:10]requested_data is exist [15:14:10]produce_requested_data [15:14:10]requested_item fm.sn is exist - process it [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 11 00 00 [15:14:10]Write to MH i2c: E2 08 00 45 1D 80 11 00 00 00 00 00 00 DC [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 17 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 17 00 45 1D 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:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:14:10]wFMCommunicate OK [15:14:10]requested_item fd.num is exist - process it [15:14:10]SAM_PROTO_GetFieldsCounters [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 13 00 00 [15:14:10]Write to MH i2c: E2 08 00 46 1D 80 13 00 00 00 00 00 00 DF [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 62 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 62 00 46 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 92 [15:14: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 DC 97 01 00 0E 04 04 00 64 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:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetFieldsCounters done [15:14:10]requested_item shift.num is exist - process it [15:14:10]requested_item shift.opened is exist - process it [15:14:10]req_shift_opened [15:14:10]FM_GetShiftState [15:14:10]SAM_PROTO_GetShiftState [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 13 01 00 [15:14:10]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 0E 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D3 [15:14:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetShiftState done [15:14:10]FM_GetShiftState done [15:14:10]req_shift_opened done [15:14:10]requested_item shift.open_date is exist - process it [15:14:10]req_shift_open_date [15:14:10]req_shift_open_date done [15:14:10]produce_requested_data done [15:14:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:14:10]process_action_free close_receipt [15:14:10]json_value_free [15:14:10]json_value_free done [15:14:10]process_json_proto returns [15:14:10]Send response to host [15:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:14:10]free response buf [15:14:10]execute_script done [15:14:10]execute_script returns [15:14:10]free content buf [15:14:10]Sock 9.Close socket [15:14:10]Sock 9.Thread stoped [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:42]accept exits with 7 [15:19:42]New connection [15:19:42]New thread 3066592612 created [15:19:42]Thread 3066449252 joined [15:19:42]Waiting for new connection... [15:19:42] Sock 7.Parse request [15:19:42]Sock 7.Check first char [15:19:42]Sock 7.First char is OK [15:19:42]request: POST /json_proto HTTP/1.0 [15:19:42]Method: POST [15:19:42]URL: /json_proto [15:19:42]Method is POST - this is cgi request [15:19:42]url: /json_proto [15:19:42]query_string will be loaded in cgi processing [15:19:42]execute_cgi json_proto POST (null) [15:19:42]execute_cgi path=json_proto method=POST [15:19:42]POST find Content-Length [15:19:42]Host: 172.17.38.133:8080 [15:19:42]Content-Length: 1169 [15:19:42]Content-Type: application/json [15:19:42] [15:19:42]POST finish read [15:19:42]Found Content-Length = 1169 [15:19: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673969\u000A22.06.2024 14:56\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30101655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:42]execute_script... [15:19: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673969\u000A22.06.2024 14:56\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30101655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:42]POST & json_proto [15:19:42]process_json_proto [15:19:42]json parsed OK: [15:19:42]protocol is kg_v1.0 [15:19:42]action value=print_text [15:19:42]process_action print_text [15:19:42]cmd_print_text [15:19:42]ExternCall_PrintAddStr [15:19:42]wPrintStart [15:19:42]Write to MH i2c: 01 00 00 48 1D 65 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 48 1D 00 00 00 00 00 FF 0F 7A [15:19:42]RasterBufferAndPrint [15:19:42]line *****ТОВАРНЫЙ ЧЕК***** [15:19:42]line АЗС 120 [15:19:42]line Партнер нефть [15:19:42]line 02508201610067 [15:19:42]line Кассир : Байбугуева Г. [15:19:42]line Счет N : (1)673969 [15:19:42]line 22.06.2024 14:56 [15:19:42]line ПРОДАЖА [15:19:42]line ТРК (МРК, ГНК): 42 [15:19:42]line Вид ГСМ : 2710124130 [15:19:42]line Аи-92-К-5 [15:19:42]line 50.000 x 66.40 [15:19:42]line ИТОГ: 3320.00 [15:19:42]line Тип оплаты: Талоны: ТК ГПНА Online [15:19:42]line 30101655 [15:19:42]line ______________________ [15:19:42]line (подпись) [15:19:42]written 0, free lines is 4095 [15:19:42]Write to MH i2c: 01 00 00 5C 1D 79 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 12 0E A0 [15:19:42]RasterBufferAndPrint [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]line [15:19:42]written 0, free lines is 3604 [15:19:42]MH_Cut [15:19:42]Write to MH i2c: D1 01 00 63 1D 01 52 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 01 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: D1 01 00 63 1D 00 51 [15:19:42]Write to MH i2c: 01 00 00 64 1D 81 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:43]*** Cut start [15:19:43]*** Partial cut [15:19:43]*** CUTSNS_PIN = 1 [15:19:43]*** CUTSNS_PIN = 0 [15:19:43]*** Brake cut motor [15:19:44]Read from MH i2c: 01 [15:19:44]MH_I2C_Read... [15:19:44]*** Stop cut motor [15:19:44]*** Cut end [15:19:44]Read from MH i2c: 01 07 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 FF 0F 96 [15:19:44]process_action print_text done [15:19:44]requested_data is exist [15:19:44]produce_requested_data [15:19:44]requested_item fm.sn is exist - process it [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 11 00 00 [15:19:44]Write to MH i2c: E2 08 00 65 1D 80 11 00 00 00 00 00 00 FC [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 17 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 17 00 65 1D 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:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:19:44]wFMCommunicate OK [15:19:44]requested_item fd.num is exist - process it [15:19:44]SAM_PROTO_GetFieldsCounters [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 13 00 00 [15:19:44]Write to MH i2c: E2 08 00 66 1D 80 13 00 00 00 00 00 00 FF [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 62 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 62 00 66 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B2 [15:19: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 DC 97 01 00 0E 04 04 00 64 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:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_GetFieldsCounters done [15:19:44]requested_item shift.num is exist - process it [15:19:44]requested_item shift.opened is exist - process it [15:19:44]req_shift_opened [15:19:44]FM_GetShiftState [15:19:44]SAM_PROTO_GetShiftState [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 13 01 00 [15:19:44]Write to MH i2c: E2 08 00 67 1D 80 13 01 00 00 00 00 00 01 [15:19:44]OFD Sender: No OFD packet to send [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 67 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F3 [15:19:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_GetShiftState done [15:19:44]FM_GetShiftState done [15:19:44]req_shift_opened done [15:19:44]requested_item shift.open_date is exist - process it [15:19:44]req_shift_open_date [15:19:44]req_shift_open_date done [15:19:44]produce_requested_data done [15:19:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:19:44]process_action_free print_text [15:19:44]json_value_free [15:19:44]json_value_free done [15:19:44]process_json_proto returns [15:19:44]Send response to host [15:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:19:44]free response buf [15:19:44]execute_script done [15:19:44]execute_script returns [15:19:44]free content buf [15:19:44]Sock 7.Close socket [15:19:44]Sock 7.Thread stoped [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [15:23:46]New connection [15:23:46]New thread 3066449252 created [15:23:46]Thread 3066592612 joined [15:23:46]Waiting for new connection... [15:23:46] Sock 9.Parse request [15:23:46]Sock 9.Check first char [15:23:46]Sock 9.First char is OK [15:23:46]request: POST /json_proto HTTP/1.0 [15:23:46]Method: POST [15:23:46]URL: /json_proto [15:23:46]Method is POST - this is cgi request [15:23:46]url: /json_proto [15:23:46]query_string will be loaded in cgi processing [15:23:46]execute_cgi json_proto POST (null) [15:23:46]execute_cgi path=json_proto method=POST [15:23:46]POST find Content-Length [15:23:46]Host: 172.17.38.133:8080 [15:23:46]Content-Length: 1174 [15:23:46]Content-Type: application/json [15:23:46] [15:23:46]POST finish read [15:23:46]Found Content-Length = 1174 [15:23: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673968\u000A22.06.2024 15:00\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:46]execute_script... [15:23: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673968\u000A22.06.2024 15:00\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:46]POST & json_proto [15:23:46]process_json_proto [15:23:46]json parsed OK: [15:23:46]protocol is kg_v1.0 [15:23:46]action value=print_text [15:23:46]process_action print_text [15:23:46]cmd_print_text [15:23:46]ExternCall_PrintAddStr [15:23:46]wPrintStart [15:23:46]Write to MH i2c: 01 00 00 68 1D 85 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 07 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 07 00 68 1D 00 00 00 00 00 FF 0F 9A [15:23:46]RasterBufferAndPrint [15:23:46]line *****ТОВАРНЫЙ ЧЕК***** [15:23:46]line АЗС 120 [15:23:46]line Партнер нефть [15:23:46]line 02508201610067 [15:23:46]line Кассир : Байбугуева Г. [15:23:46]line Счет N : (1)673968 [15:23:46]line 22.06.2024 15:00 [15:23:46]line ПРОДАЖА [15:23:46]line ТРК (МРК, ГНК): 21 [15:23:46]line Вид ГСМ : 2710194210 [15:23:46]line ДТ(л)-К-5 [15:23:46]line 80.000 x 72.90 [15:23:46]line ИТОГ: 5832.00 [15:23:46]line Тип оплаты: Талоны: ТК ГПНА Online [15:23:46]line 30144226 [15:23:46]line ______________________ [15:23:46]line (подпись) [15:23:46]written 0, free lines is 4095 [15:23:46]Write to MH i2c: 01 00 00 7C 1D 99 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 07 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 13 0E C1 [15:23:46]RasterBufferAndPrint [15:23:46]line [15:23:46]line [15:23:46]line [15:23:46]line [15:23:46]line [15:23:46]written 0, free lines is 3605 [15:23:46]MH_Cut [15:23:46]Write to MH i2c: D1 01 00 83 1D 01 72 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: D1 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: D1 01 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: D1 01 00 83 1D 00 71 [15:23:46]Write to MH i2c: 01 00 00 84 1D A1 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]*** Cut start [15:23:46]*** Partial cut [15:23:46]*** CUTSNS_PIN = 1 [15:23:46]*** CUTSNS_PIN = 0 [15:23:47]*** Brake cut motor [15:23:47]Read from MH i2c: 01 [15:23:47]MH_I2C_Read... [15:23:47]*** Stop cut motor [15:23:47]*** Cut end [15:23:47]Read from MH i2c: 01 07 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 FF 0F B6 [15:23:47]process_action print_text done [15:23:47]requested_data is exist [15:23:47]produce_requested_data [15:23:47]requested_item fm.sn is exist - process it [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 11 00 00 [15:23:47]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 17 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [15:23: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:23:47]wFMCommunicate OK [15:23:47]requested_item fd.num is exist - process it [15:23:47]SAM_PROTO_GetFieldsCounters [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 13 00 00 [15:23:47]Write to MH i2c: E2 08 00 86 1D 80 13 00 00 00 00 00 00 1F [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 62 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 62 00 86 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D2 [15: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 DC 97 01 00 0E 04 04 00 64 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:23:47]wFMCommunicate OK [15:23:47]SAM_PROTO_GetFieldsCounters done [15:23:47]requested_item shift.num is exist - process it [15:23:47]requested_item shift.opened is exist - process it [15:23:47]req_shift_opened [15:23:47]FM_GetShiftState [15:23:47]SAM_PROTO_GetShiftState [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 13 01 00 [15:23:47]Write to MH i2c: E2 08 00 87 1D 80 13 01 00 00 00 00 00 21 [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 0E 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 0E 00 87 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 13 [15:23:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:23:47]wFMCommunicate OK [15:23:47]SAM_PROTO_GetShiftState done [15:23:47]FM_GetShiftState done [15:23:47]req_shift_opened done [15:23:47]requested_item shift.open_date is exist - process it [15:23:47]req_shift_open_date [15:23:47]req_shift_open_date done [15:23:47]produce_requested_data done [15:23:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:23:47]process_action_free print_text [15:23:47]json_value_free [15:23:47]json_value_free done [15:23:47]process_json_proto returns [15:23:47]Send response to host [15:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:23:47]free response buf [15:23:47]execute_script done [15:23:47]execute_script returns [15:23:47]free content buf [15:23:47]Sock 9.Close socket [15:23:47]Sock 9.Thread stoped [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:46]accept exits with 7 [15:26:46]New connection [15:26:46]New thread 3066592612 created [15:26:46]Thread 3066449252 joined [15:26:46]Waiting for new connection... [15:26:46] Sock 7.Parse request [15:26:46]Sock 7.Check first char [15:26:46]Sock 7.First char is OK [15:26:46]request: POST /json_proto HTTP/1.0 [15:26:46]Method: POST [15:26:46]URL: /json_proto [15:26:46]Method is POST - this is cgi request [15:26:46]url: /json_proto [15:26:46]query_string will be loaded in cgi processing [15:26:46]execute_cgi json_proto POST (null) [15:26:46]execute_cgi path=json_proto method=POST [15:26:46]POST find Content-Length [15:26:46]Host: 172.17.38.133:8080 [15:26:46]Content-Length: 1196 [15:26:46]Content-Type: application/json [15:26:46] [15:26:46]POST finish read [15:26:46]Found Content-Length = 1196 [15:26: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673971\u000A22.06.2024 15: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 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\u000A3543810\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:46]execute_script... [15:26: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673971\u000A22.06.2024 15: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 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\u000A3543810\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:46]POST & json_proto [15:26:46]process_json_proto [15:26:46]json parsed OK: [15:26:46]protocol is kg_v1.0 [15:26:46]action value=print_text [15:26:46]process_action print_text [15:26:46]cmd_print_text [15:26:46]ExternCall_PrintAddStr [15:26:46]wPrintStart [15:26:46]Write to MH i2c: 01 00 00 88 1D A5 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 FF 0F BA [15:26:46]RasterBufferAndPrint [15:26:46]line *****ТОВАРНЫЙ ЧЕК***** [15:26:46]line АЗС 120 [15:26:46]line Партнер нефть [15:26:46]line 02508201610067 [15:26:46]line Кассир : Байбугуева Г. [15:26:46]line Счет N : (1)673971 [15:26:46]line 22.06.2024 15:03 [15:26:46]line ПРОДАЖА [15:26:46]line ТРК (МРК, ГНК): 42 [15:26:46]line Вид ГСМ : 2710124130 [15:26:46]line Аи-92-К-5 [15:26:46]line 10.000 x 66.40 [15:26:46]line ИТОГ: 664.00 [15:26:46]line Тип оплаты: Талоны: Партнер нефть [15:26:46]line 3543810 [15:26:46]line ______________________ [15:26:46]line (подпись) [15:26:46]written 0, free lines is 4095 [15:26:46]Write to MH i2c: 01 00 00 9C 1D B9 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 9C 1D 00 00 00 00 00 13 0E E1 [15:26:46]RasterBufferAndPrint [15:26:46]line [15:26:46]line [15:26:46]line [15:26:46]line [15:26:46]line [15:26:46]written 0, free lines is 3605 [15:26:46]MH_Cut [15:26:46]Write to MH i2c: D1 01 00 A3 1D 01 92 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: D1 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: D1 01 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: D1 01 00 A3 1D 00 91 [15:26:46]Write to MH i2c: 01 00 00 A4 1D C1 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** Cut start [15:26:46]*** Partial cut [15:26:46]*** CUTSNS_PIN = 1 [15:26:46]*** CUTSNS_PIN = 0 [15:26:47]*** Brake cut motor [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]*** Stop cut motor [15:26:47]*** Cut end [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 A4 1D 00 00 00 00 00 FF 0F D6 [15:26:47]process_action print_text done [15:26:47]requested_data is exist [15:26:47]produce_requested_data [15:26:47]requested_item fm.sn is exist - process it [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 11 00 00 [15:26:47]Write to MH i2c: E2 08 00 A5 1D 80 11 00 00 00 00 00 00 3C [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 A5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [15:26: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:26:47]wFMCommunicate OK [15:26:47]requested_item fd.num is exist - process it [15:26:47]SAM_PROTO_GetFieldsCounters [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 13 00 00 [15:26:47]Write to MH i2c: E2 08 00 A6 1D 80 13 00 00 00 00 00 00 3F [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 62 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 62 00 A6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 F2 [15:26: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 DC 97 01 00 0E 04 04 00 64 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:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_GetFieldsCounters done [15:26:47]requested_item shift.num is exist - process it [15:26:47]requested_item shift.opened is exist - process it [15:26:47]req_shift_opened [15:26:47]FM_GetShiftState [15:26:47]SAM_PROTO_GetShiftState [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 13 01 00 [15:26:47]Write to MH i2c: E2 08 00 A7 1D 80 13 01 00 00 00 00 00 41 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0E 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0E 00 A7 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 33 [15:26:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_GetShiftState done [15:26:47]FM_GetShiftState done [15:26:47]req_shift_opened done [15:26:47]requested_item shift.open_date is exist - process it [15:26:47]req_shift_open_date [15:26:47]req_shift_open_date done [15:26:47]produce_requested_data done [15:26:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:26:47]process_action_free print_text [15:26:47]json_value_free [15:26:47]json_value_free done [15:26:47]process_json_proto returns [15:26:47]Send response to host [15:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104412,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:26:47]free response buf [15:26:47]execute_script done [15:26:47]execute_script returns [15:26:47]free content buf [15:26:47]Sock 7.Close socket [15:26:47]Sock 7.Thread stoped [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: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:54]OFD Sender: No OFD packet to send [15:28:59]accept exits with 9 [15:28:59]New connection [15:28:59]New thread 3066449252 created [15:28:59]Thread 3066592612 joined [15:28:59]Waiting for new connection... [15:28:59] Sock 9.Parse request [15:28:59]Sock 9.Check first char [15:28:59]Sock 9.First char is OK [15:28:59]request: POST /json_proto HTTP/1.0 [15:28:59]Method: POST [15:28:59]URL: /json_proto [15:28:59]Method is POST - this is cgi request [15:28:59]url: /json_proto [15:28:59]query_string will be loaded in cgi processing [15:28:59]execute_cgi json_proto POST (null) [15:28:59]execute_cgi path=json_proto method=POST [15:28:59]POST find Content-Length [15:28:59]Host: 172.17.38.133:8080 [15:28:59]Content-Length: 682 [15:28:59]Content-Type: application/json [15:28:59] [15:28:59]POST finish read [15:28:59]Found Content-Length = 682 [15:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673970", "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" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:59]execute_script... [15:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673970", "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" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:59]POST & json_proto [15:28:59]process_json_proto [15:28:59]json parsed OK: [15:28:59]protocol is kg_v1.0 [15:28:59]action value=close_receipt [15:28:59]process_action close_receipt [15:28:59]cmd_close_receipt [15:28:59]MH_GetDate [15:28:59]Write to MH i2c: F0 00 00 A8 1D B4 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 A8 1D 00 BD ED 76 66 BD 8F 7C 64 6F [15:28:59]GetLastDocTimeStamp 1719069247 [15:28:59]current date 1719070141 [15:28:59]FM_GetShiftState [15:28:59]SAM_PROTO_GetShiftState [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 13 01 00 [15:28:59]Write to MH i2c: E2 08 00 A9 1D 80 13 01 00 00 00 00 00 43 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 A9 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 35 [15:28:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:28:59]wFMCommunicate OK [15:28:59]SAM_PROTO_GetShiftState done [15:28:59]FM_GetShiftState done [15:28:59]opened in 1719016176 [15:28:59]opened+sec_in_day 1719102576 [15:28:59]quantity*price = 400020 [15:28:59]sum+1 = 400022 [15:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 146 22.06.2024 15:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104413 ФПД: 24843928656367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152901&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104413&fm=24843928656367&tin=02508201610067®Number=0000000000092785&sum=400000 [15:29:00]StoreToDocumentArchive [15:29:00]shift 356 fd 104413 [15:29:00]save to /storage/0356/doc_00104413 [15:29:00]save last doc name /storage/0356/doc_00104413 to /storage/kkm_last_doc_name [15:29:00]save OK [15:29:00]Clear old archive folders... [15:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:00]tlvbuf is 010093D0 [15:29:00]SAM_PROTO_ClearQueue [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 09 00 00 [15:29:00]Write to MH i2c: E2 08 00 B6 1D 80 09 00 00 00 00 00 00 45 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_ClearQueue done [15:29:00]KKMCreateOFDPacket [15:29:00]OFDProtocolAddRootSTLVToBuf [15:29:00]FM_MakeSignedData [15:29:00]FM_MakeSignedData [15:29:00]SAM_PROTO_SignData [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 0D 01 02 [15:29:00]Write to MH i2c: E2 08 00 B7 1D 80 0D 01 02 00 00 00 00 4D [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 B7 1D 00 90 00 48 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=255 [15:29:00]MH_SAM_APDU [15:29: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 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 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BD ED 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 16 [15:29:00]Write to MH i2c: E2 02 01 B8 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BD ED 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 16 00 00 13 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 B8 1D 00 90 00 49 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=10 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 02 02 05 98 6D 8A D9 EF [15:29:01]Write to MH i2c: E2 0D 00 B9 1D 80 0D 02 02 05 00 98 6D 8A D9 EF 00 00 B1 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 B9 1D 00 90 00 4A [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 03 02 [15:29:01]Write to MH i2c: E2 08 00 BA 1D 80 0D 03 02 00 00 00 00 52 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 BA 1D 00 13 EB 31 AE 9B 5B 28 56 90 00 A4 [15:29:01]RAPDU: 13 EB 31 AE 9B 5B 28 56 90 00 [15:29:01]wFMCommunicate OK [15:29:01]SAM_PROTO_SignData done [15:29:01]FM_MakeSignedData done [15:29:01]CreateOFDProtocolMessage [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 11 00 00 [15:29:01]Write to MH i2c: E2 08 00 BB 1D 80 11 00 00 00 00 00 00 52 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 BB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [15:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:29:01]wFMCommunicate OK [15:29:01]CreateOFDProtocolMessage done [15:29:01]OFDSenderStorePacket 104413 [15:29:01]StoreOFDPacket docnum=104413 [15:29: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 48 41 07 01 40 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BD ED 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 16 98 6D 8A D9 EF 13 EB 31 AE 9B 5B 28 56 [15:29:01]CheckFolder [15:29:01]dirname=/storage/ofd_packets [15:29:01]CheckFolder done [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00104413 [15:29:01]NVStorageSaveData ofd_packets/00104413 [15:29:01]File name is /storage/ofd_packets/00104413 [15:29:01]Write 301 bytes [15:29:01]NVStorageSaveData done [15:29:01]OFDSenderStorePacket done [15:29:01]KKMCreateOFDPacket done [15:29:01]NVStorageSaveData kkm_last_timestamp [15:29:01]File name is /storage/kkm_last_timestamp [15:29:01]Write 4 bytes [15:29:01]NVStorageSaveData done [15:29:01]ExternCall_PrintAddStr [15:29:01]wPrintStart [15:29:01]Write to MH i2c: 01 00 00 BC 1D D9 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 FF 0F EE [15:29:01]RasterBufferAndPrint [15:29:01]line Счет N : (1)673970 [15:29:01]line ИНН: 02508201610067 [15:29:01]line Контрольно-Кассовый Чек [15:29:01]line ПРОДАЖА [15:29:01]line ТРК (МРК, ГНК) : 31 [15:29:01]line Товар: 2710124500 [15:29:01]line Аи-95-К-5 [15:29:01]line 54.130 * 73.90 [15:29:01]line = 4000.21 [15:29:01]line НДС 12% НСП 1% [15:29:01]line > о реализуемом товаре [15:29:01]line ОКРУГЛЕНИЕ: -0.21 [15:29:01]line ИТОГО: 4000.00 [15:29:01]line Внесено: 4000.00 [15:29:01]line СДАЧА: 0.00 [15:29:01]line НСП 1% : 35.40 [15:29:01]line НДС 12% : 424.80 [15:29:01]line Наличными: 4000.00 [15:29:01]line Безнал.: 0.00 [15:29:01]line Место: АЗС № 120 "Партнер Нефть" [15:29:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:29:01]line СНО: Общий режим [15:29:01]line Чек 146 22.06.2024 15:29 [15:29:01]line Смена: 356 ФФД: 1.0 [15:29:01]line ЗНМ: 0300000164 [15:29:01]line РНМ: 0000000000092785 [15:29:01]line Версия ККМ: 001 [15:29:01]line ФМ: 0000000000875093 [15:29:01]line ФД: 104413 [15:29:01]line ФПД: 24843928656367 [15:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152901&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104413&fm=24843928656367&tin=02508201610067®Number=0000000000092785&sum=400000 [15:29:01]OFD Sender: Processing packet 104413 [packets to send 17, broken 16] [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00104413 [15:29:01]OFD Sender: To server: pG, [15:29:01]CommunicateWithHost lk.salyk.kg:30040 [15:29:01]ConnectInit lk.salyk.kg [15:29:01]written 0, free lines is 4095 [15:29:01]Connected sock=10 [15:29: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 48 41 07 01 40 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BD ED 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 16 98 6D 8A D9 EF 13 EB 31 AE 9B 5B 28 56 [15:29: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 E4 81 47 00 F2 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 DD 97 01 00 F4 03 04 00 3C 94 76 66 B6 04 01 00 00 AE 6C CD 99 D9 6B C2 C0 [15:29:02]CommunicateWithHost err = 0 [15:29:02]CheckOFDResponse [15:29:02]1017 (14) - 77093643461234 [15:29:02]1041 (16) - 0000000000875093 [15:29:02]1040 (4) - 104413 [15:29:02]1012 (4) - 22.06.2024 09:07 [15:29:02]1206 (1) - 0 [15:29:02]OFD Sender: Remove packet 104413 [15:29:02]ProducePacketName [15:29:02]name=ofd_packets/00104413 [15:29:02]NVStorageDeleteData [15:29:02]Write to MH i2c: 01 00 00 E7 1D 04 [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 EF 0C 06 [15:29:02]RasterBufferAndPrint [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]written 0, free lines is 3317 [15:29:02]MH_Cut [15:29:02]Write to MH i2c: D1 01 00 EE 1D 01 DD [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 EE 1D 00 DC [15:29:02]Write to MH i2c: 01 00 00 EF 1D 0C [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]OFD Sender: No OFD packet to send [15:29:02]*** Cut start [15:29:02]*** Partial cut [15:29:02]*** CUTSNS_PIN = 1 [15:29:02]*** CUTSNS_PIN = 0 [15:29:03]*** Brake cut motor [15:29:03]Read from MH i2c: 01 [15:29:03]MH_I2C_Read... [15:29:03]*** Stop cut motor [15:29:03]*** Cut end [15:29:03]Read from MH i2c: 01 07 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 FF 0F 21 [15:29:03]process_action close_receipt done [15:29:03]requested_data is exist [15:29:03]produce_requested_data [15:29:03]requested_item fm.sn is exist - process it [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 11 00 00 [15:29:03]Write to MH i2c: E2 08 00 F0 1D 80 11 00 00 00 00 00 00 87 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 F0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [15:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:29:03]wFMCommunicate OK [15:29:03]requested_item fd.num is exist - process it [15:29:03]SAM_PROTO_GetFieldsCounters [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 00 00 [15:29:03]Write to MH i2c: E2 08 00 F1 1D 80 13 00 00 00 00 00 00 8A [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 F1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 41 [15:29: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 DD 97 01 00 0E 04 04 00 64 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:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetFieldsCounters done [15:29:03]requested_item shift.num is exist - process it [15:29:03]requested_item shift.opened is exist - process it [15:29:03]req_shift_opened [15:29:03]FM_GetShiftState [15:29:03]SAM_PROTO_GetShiftState [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 01 00 [15:29:03]Write to MH i2c: E2 08 00 F2 1D 80 13 01 00 00 00 00 00 8C [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 F2 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7E [15:29:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetShiftState done [15:29:03]FM_GetShiftState done [15:29:03]req_shift_opened done [15:29:03]requested_item shift.open_date is exist - process it [15:29:03]req_shift_open_date [15:29:03]req_shift_open_date done [15:29:03]produce_requested_data done [15:29:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104413,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:29:03]process_action_free close_receipt [15:29:03]json_value_free [15:29:03]json_value_free done [15:29:03]process_json_proto returns [15:29:03]Send response to host [15:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104413,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:29:03]free response buf [15:29:03]execute_script done [15:29:03]execute_script returns [15:29:03]free content buf [15:29:03]Sock 9.Close socket [15:29:03]Sock 9.Thread stoped [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:51]accept exits with 7 [15:31:51]New connection [15:31:51]New thread 3066592612 created [15:31:51]Thread 3066449252 joined [15:31:51]Waiting for new connection... [15:31:51] Sock 7.Parse request [15:31:51]Sock 7.Check first char [15:31:51]Sock 7.First char is OK [15:31:51]request: POST /json_proto HTTP/1.0 [15:31:51]Method: POST [15:31:51]URL: /json_proto [15:31:51]Method is POST - this is cgi request [15:31:51]url: /json_proto [15:31:51]query_string will be loaded in cgi processing [15:31:51]execute_cgi json_proto POST (null) [15:31:51]execute_cgi path=json_proto method=POST [15:31:51]POST find Content-Length [15:31:51]Host: 172.17.38.133:8080 [15:31:51]Content-Length: 677 [15:31:51]Content-Type: application/json [15:31:51] [15:31:51]POST finish read [15:31:51]Found Content-Length = 677 [15:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673974", "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" ] } } [15:31:51]execute_script... [15:31: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)673974", "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" ] } } [15:31:51]POST & json_proto [15:31:51]process_json_proto [15:31:51]json parsed OK: [15:31:51]protocol is kg_v1.0 [15:31:51]action value=close_receipt [15:31:51]process_action close_receipt [15:31:51]cmd_close_receipt [15:31:51]MH_GetDate [15:31:51]Write to MH i2c: F0 00 00 F3 1D FF [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 09 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: F0 09 00 F3 1D 00 69 EE 76 66 BD 8F 7C 64 67 [15:31:51]GetLastDocTimeStamp 1719070141 [15:31:51]current date 1719070313 [15:31:51]FM_GetShiftState [15:31:51]SAM_PROTO_GetShiftState [15:31:51]wFMCommunicate request_size=4 [15:31:51]MH_SAM_APDU [15:31:51]CAPDU: 80 13 01 00 [15:31:51]Write to MH i2c: E2 08 00 F4 1D 80 13 01 00 00 00 00 00 8E [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:51]Read from MH i2c: E2 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: E2 0E 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: E2 0E 00 F4 1D 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 80 [15:31:51]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:31:51]wFMCommunicate OK [15:31:51]SAM_PROTO_GetShiftState done [15:31:51]FM_GetShiftState done [15:31:51]opened in 1719016176 [15:31:51]opened+sec_in_day 1719102576 [15:31:51]quantity*price = 60025 [15:31:51]sum+1 = 60027 [15:31:51]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 СНО: Общий режим Чек 147 22.06.2024 15:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104414 ФПД: 86511973131017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104414&fm=86511973131017&tin=02508201610067®Number=0000000000092785&sum=60000 [15:31:52]StoreToDocumentArchive [15:31:52]shift 356 fd 104414 [15:31:52]save to /storage/0356/doc_00104414 [15:31:52]save last doc name /storage/0356/doc_00104414 to /storage/kkm_last_doc_name [15:31:52]save OK [15:31:52]Clear old archive folders... [15:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:52]tlvbuf is B6D50010 [15:31:52]SAM_PROTO_ClearQueue [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 09 00 00 [15:31:52]Write to MH i2c: E2 08 00 01 1E 80 09 00 00 00 00 00 00 91 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 01 1E 00 90 00 93 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_ClearQueue done [15:31:52]KKMCreateOFDPacket [15:31:52]OFDProtocolAddRootSTLVToBuf [15:31:52]FM_MakeSignedData [15:31:52]FM_MakeSignedData [15:31:52]SAM_PROTO_SignData [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 01 02 [15:31:52]Write to MH i2c: E2 08 00 02 1E 80 0D 01 02 00 00 00 00 99 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 02 1E 00 90 00 94 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=255 [15:31:52]MH_SAM_APDU [15:31: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 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 93 00 00 00 F4 03 04 00 69 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E [15:31:52]Write to MH i2c: E2 02 01 03 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 93 00 00 00 F4 03 04 00 69 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E 00 00 1F [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:52]OFD Sender: No OFD packet to send [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 03 1E 00 90 00 95 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=10 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 02 02 05 AE A3 6D 63 09 [15:31:52]Write to MH i2c: E2 0D 00 04 1E 80 0D 02 02 05 00 AE A3 6D 63 09 00 00 D0 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 03 00 04 1E 00 90 00 96 [15:31:52]RAPDU: 90 00 [15:31:52]wFMCommunicate OK [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 0D 03 02 [15:31:52]Write to MH i2c: E2 08 00 05 1E 80 0D 03 02 00 00 00 00 9E [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 0B 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 0B 00 05 1E 00 4B 28 89 5C AA 9B D7 BD 90 00 D0 [15:31:52]RAPDU: 4B 28 89 5C AA 9B D7 BD 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_SignData done [15:31:52]FM_MakeSignedData done [15:31:52]CreateOFDProtocolMessage [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 11 00 00 [15:31:52]Write to MH i2c: E2 08 00 06 1E 80 11 00 00 00 00 00 00 9E [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 17 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 17 00 06 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [15:31: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:31:52]wFMCommunicate OK [15:31:52]CreateOFDProtocolMessage done [15:31:52]OFDSenderStorePacket 104414 [15:31:52]StoreOFDPacket docnum=104414 [15:31: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 01 DF 07 01 A2 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 93 00 00 00 F4 03 04 00 69 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E AE A3 6D 63 09 4B 28 89 5C AA 9B D7 BD [15:31:52]CheckFolder [15:31:52]dirname=/storage/ofd_packets [15:31:52]CheckFolder done [15:31:52]ProducePacketName [15:31:52]name=ofd_packets/00104414 [15:31:52]NVStorageSaveData ofd_packets/00104414 [15:31:52]File name is /storage/ofd_packets/00104414 [15:31:52]Write 301 bytes [15:31:52]NVStorageSaveData done [15:31:52]OFDSenderStorePacket done [15:31:52]KKMCreateOFDPacket done [15:31:52]NVStorageSaveData kkm_last_timestamp [15:31:52]File name is /storage/kkm_last_timestamp [15:31:52]Write 4 bytes [15:31:52]NVStorageSaveData done [15:31:52]ExternCall_PrintAddStr [15:31:52]wPrintStart [15:31:52]Write to MH i2c: 01 00 00 07 1E 25 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 07 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 FF 0F 3A [15:31:52]RasterBufferAndPrint [15:31:52]line Счет N : (1)673974 [15:31:52]line ИНН: 02508201610067 [15:31:52]line Контрольно-Кассовый Чек [15:31:52]line ПРОДАЖА [15:31:52]line ТРК (МРК, ГНК) : 32 [15:31:52]line Товар: 2710124130 [15:31:52]line Аи-92-К-5 [15:31:52]line 9.040 * 66.40 [15:31:52]line = 600.26 [15:31:52]line НДС 12% НСП 1% [15:31:52]line > о реализуемом товаре [15:31:52]line ОКРУГЛЕНИЕ: -0.26 [15:31:52]line ИТОГО: 600.00 [15:31:52]line Внесено: 600.00 [15:31:52]line СДАЧА: 0.00 [15:31:52]line НСП 1% : 5.31 [15:31:52]line НДС 12% : 63.74 [15:31:52]line Наличными: 600.00 [15:31:52]line Безнал.: 0.00 [15:31:52]line Место: АЗС № 120 "Партнер Нефть" [15:31:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:31:52]line СНО: Общий режим [15:31:52]line Чек 147 22.06.2024 15:31 [15:31:52]line Смена: 356 ФФД: 1.0 [15:31:52]line ЗНМ: 0300000164 [15:31:52]line РНМ: 0000000000092785 [15:31:52]line Версия ККМ: 001 [15:31:52]line ФМ: 0000000000875093 [15:31:52]line ФД: 104414 [15:31:52]line ФПД: 86511973131017 [15:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104414&fm=86511973131017&tin=02508201610067®Number=0000000000092785&sum=60000 [15:31:53]OFD Sender: Processing packet 104414 [packets to send 17, broken 16] [15:31:53]ProducePacketName [15:31:53]name=ofd_packets/00104414 [15:31:53]OFD Sender: To server: pG, [15:31:53]CommunicateWithHost lk.salyk.kg:30040 [15:31:53]ConnectInit lk.salyk.kg [15:31:53]written 0, free lines is 4095 [15:31:53]Connected sock=10 [15:31: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 01 DF 07 01 A2 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 93 00 00 00 F4 03 04 00 69 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4E AE A3 6D 63 09 4B 28 89 5C AA 9B D7 BD [15:31: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 4D E8 47 00 96 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 DE 97 01 00 F4 03 04 00 E7 94 76 66 B6 04 01 00 00 A1 32 2F E3 E3 96 23 88 [15:31:53]CommunicateWithHost err = 0 [15:31:53]CheckOFDResponse [15:31:53]1017 (14) - 77093643461234 [15:31:53]1041 (16) - 0000000000875093 [15:31:53]1040 (4) - 104414 [15:31:53]1012 (4) - 22.06.2024 09:09 [15:31:53]1206 (1) - 0 [15:31:53]OFD Sender: Remove packet 104414 [15:31:53]ProducePacketName [15:31:53]name=ofd_packets/00104414 [15:31:53]NVStorageDeleteData [15:31:53]Write to MH i2c: 01 00 00 32 1E 50 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 07 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 DF 0C 42 [15:31:53]RasterBufferAndPrint [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]line [15:31:53]written 0, free lines is 3300 [15:31:53]MH_Cut [15:31:53]Write to MH i2c: D1 01 00 39 1E 01 29 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 01 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: D1 01 00 39 1E 00 28 [15:31:53]Write to MH i2c: 01 00 00 3A 1E 58 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:54]OFD Sender: No OFD packet to send [15:31:54]*** Cut start [15:31:54]*** Partial cut [15:31:54]*** CUTSNS_PIN = 1 [15:31:54]*** CUTSNS_PIN = 0 [15:31:54]*** Brake cut motor [15:31:55]Read from MH i2c: 01 [15:31:55]MH_I2C_Read... [15:31:55]*** Stop cut motor [15:31:55]*** Cut end [15:31:55]Read from MH i2c: 01 07 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 FF 0F 6D [15:31:55]process_action close_receipt done [15:31:55]requested_data is exist [15:31:55]produce_requested_data [15:31:55]requested_item fm.sn is exist - process it [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 11 00 00 [15:31:55]Write to MH i2c: E2 08 00 3B 1E 80 11 00 00 00 00 00 00 D3 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 3B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [15: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 [15:31:55]wFMCommunicate OK [15:31:55]requested_item fd.num is exist - process it [15:31:55]SAM_PROTO_GetFieldsCounters [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 13 00 00 [15:31:55]Write to MH i2c: E2 08 00 3C 1E 80 13 00 00 00 00 00 00 D6 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 62 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 62 00 3C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 91 [15:31: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 DE 97 01 00 0E 04 04 00 64 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:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_GetFieldsCounters done [15:31:55]requested_item shift.num is exist - process it [15:31:55]requested_item shift.opened is exist - process it [15:31:55]req_shift_opened [15:31:55]FM_GetShiftState [15:31:55]SAM_PROTO_GetShiftState [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 13 01 00 [15:31:55]Write to MH i2c: E2 08 00 3D 1E 80 13 01 00 00 00 00 00 D8 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 3D 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CA [15:31:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_GetShiftState done [15:31:55]FM_GetShiftState done [15:31:55]req_shift_opened done [15:31:55]requested_item shift.open_date is exist - process it [15:31:55]req_shift_open_date [15:31:55]req_shift_open_date done [15:31:55]produce_requested_data done [15:31:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104414,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:31:55]process_action_free close_receipt [15:31:55]json_value_free [15:31:55]json_value_free done [15:31:55]process_json_proto returns [15:31:55]Send response to host [15:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104414,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:31:55]free response buf [15:31:55]execute_script done [15:31:55]execute_script returns [15:31:55]free content buf [15:31:55]Sock 7.Close socket [15:31:55]Sock 7.Thread stoped [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:05]accept exits with 9 [15:32:05]New connection [15:32:05]New thread 3066449252 created [15:32:05]Thread 3066592612 joined [15:32:05]Waiting for new connection... [15:32:05] Sock 9.Parse request [15:32:05]Sock 9.Check first char [15:32:05]Sock 9.First char is OK [15:32:05]request: POST /json_proto HTTP/1.0 [15:32:05]Method: POST [15:32:05]URL: /json_proto [15:32:05]Method is POST - this is cgi request [15:32:05]url: /json_proto [15:32:05]query_string will be loaded in cgi processing [15:32:05]execute_cgi json_proto POST (null) [15:32:05]execute_cgi path=json_proto method=POST [15:32:05]POST find Content-Length [15:32:05]Host: 172.17.38.133:8080 [15:32:05]Content-Length: 682 [15:32:05]Content-Type: application/json [15:32:05] [15:32:05]POST finish read [15:32:05]Found Content-Length = 682 [15:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673972", "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.390, "sum" : 2467.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2467.00, "payments": [ { "type": 0, "sum" : 2467.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:05]execute_script... [15:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673972", "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.390, "sum" : 2467.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2467.00, "payments": [ { "type": 0, "sum" : 2467.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:05]POST & json_proto [15:32:05]process_json_proto [15:32:05]json parsed OK: [15:32:05]protocol is kg_v1.0 [15:32:05]action value=close_receipt [15:32:05]process_action close_receipt [15:32:05]cmd_close_receipt [15:32:05]MH_GetDate [15:32:05]Write to MH i2c: F0 00 00 3E 1E 4B [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 09 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 09 00 3E 1E 00 76 EE 76 66 BD 8F 7C 64 C0 [15:32:05]GetLastDocTimeStamp 1719070313 [15:32:05]current date 1719070326 [15:32:05]FM_GetShiftState [15:32:05]SAM_PROTO_GetShiftState [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 13 01 00 [15:32:05]Write to MH i2c: E2 08 00 3F 1E 80 13 01 00 00 00 00 00 DA [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 3F 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 CC [15:32:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:32:05]wFMCommunicate OK [15:32:05]SAM_PROTO_GetShiftState done [15:32:05]FM_GetShiftState done [15:32:05]opened in 1719016176 [15:32:05]opened+sec_in_day 1719102576 [15:32:05]quantity*price = 246752 [15:32:05]sum+1 = 246753 [15:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2467.00 Внесено: 5000.00 СДАЧА: 2533.00 НСП 1% : 21.84 НДС 12% : 262.04 Наличными: 2467.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 148 22.06.2024 15:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104415 ФПД: 163622131994856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153206&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104415&fm=163622131994856&tin=02508201610067®Number=0000000000092785&sum=246700 [15:32:06]StoreToDocumentArchive [15:32:06]shift 356 fd 104415 [15:32:06]save to /storage/0356/doc_00104415 [15:32:06]save last doc name /storage/0356/doc_00104415 to /storage/kkm_last_doc_name [15:32:06]save OK [15:32:06]Clear old archive folders... [15:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:06]tlvbuf is B6D50300 [15:32:06]SAM_PROTO_ClearQueue [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 09 00 00 [15:32:06]Write to MH i2c: E2 08 00 4C 1E 80 09 00 00 00 00 00 00 DC [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 4C 1E 00 90 00 DE [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]SAM_PROTO_ClearQueue done [15:32:06]KKMCreateOFDPacket [15:32:06]OFDProtocolAddRootSTLVToBuf [15:32:06]FM_MakeSignedData [15:32:06]FM_MakeSignedData [15:32:06]SAM_PROTO_SignData [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 01 02 [15:32:06]Write to MH i2c: E2 08 00 4D 1E 80 0D 01 02 00 00 00 00 E4 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]wFMCommunicate request_size=255 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E0 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 66 00 00 00 00 07 04 06 00 AC C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 76 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 [15:32:06]Write to MH i2c: E2 02 01 4E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E0 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 66 00 00 00 00 07 04 06 00 AC C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 76 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 00 00 02 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 4E 1E 00 90 00 E0 [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]wFMCommunicate request_size=10 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 02 02 05 D0 3F 0E 10 E8 [15:32:06]Write to MH i2c: E2 0D 00 4F 1E 80 0D 02 02 05 00 D0 3F 0E 10 E8 00 00 06 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 4F 1E 00 90 00 E1 [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 03 02 [15:32:06]Write to MH i2c: E2 08 00 50 1E 80 0D 03 02 00 00 00 00 E9 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 0B 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 0B 00 50 1E 00 4B 2A 3E 05 8B 1F 9E 73 90 00 5D [15:32:06]RAPDU: 4B 2A 3E 05 8B 1F 9E 73 90 00 [15:32:06]wFMCommunicate OK [15:32:06]SAM_PROTO_SignData done [15:32:06]FM_MakeSignedData done [15:32:06]CreateOFDProtocolMessage [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 11 00 00 [15:32:06]Write to MH i2c: E2 08 00 51 1E 80 11 00 00 00 00 00 00 E9 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 17 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 17 00 51 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [15: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 [15:32:06]wFMCommunicate OK [15:32:06]CreateOFDProtocolMessage done [15:32:06]OFDSenderStorePacket 104415 [15:32:06]StoreOFDPacket docnum=104415 [15:32: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 10 7C 07 01 4E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E0 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 66 00 00 00 00 07 04 06 00 AC C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 76 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 D0 3F 0E 10 E8 4B 2A 3E 05 8B 1F 9E 73 [15:32:06]CheckFolder [15:32:06]dirname=/storage/ofd_packets [15:32:06]CheckFolder done [15:32:06]ProducePacketName [15:32:06]name=ofd_packets/00104415 [15:32:06]NVStorageSaveData ofd_packets/00104415 [15:32:06]File name is /storage/ofd_packets/00104415 [15:32:06]Write 301 bytes [15:32:06]NVStorageSaveData done [15:32:06]OFDSenderStorePacket done [15:32:06]KKMCreateOFDPacket done [15:32:06]NVStorageSaveData kkm_last_timestamp [15:32:06]File name is /storage/kkm_last_timestamp [15:32:06]Write 4 bytes [15:32:06]NVStorageSaveData done [15:32:06]ExternCall_PrintAddStr [15:32:06]wPrintStart [15:32:06]Write to MH i2c: 01 00 00 52 1E 70 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 07 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 FF 0F 85 [15:32:06]RasterBufferAndPrint [15:32:06]line Счет N : (1)673972 [15:32:06]line ИНН: 02508201610067 [15:32:06]line Контрольно-Кассовый Чек [15:32:06]line ПРОДАЖА [15:32:06]line ТРК (МРК, ГНК) : 41 [15:32:06]line Товар: 2710124500 [15:32:06]line Аи-95-К-5 [15:32:06]line 33.390 * 73.90 [15:32:06]line = 2467.52 [15:32:06]line НДС 12% НСП 1% [15:32:06]line > о реализуемом товаре [15:32:06]line ОКРУГЛЕНИЕ: -0.52 [15:32:06]line ИТОГО: 2467.00 [15:32:06]line Внесено: 5000.00 [15:32:06]line СДАЧА: 2533.00 [15:32:06]line НСП 1% : 21.84 [15:32:06]line НДС 12% : 262.04 [15:32:06]line Наличными: 2467.00 [15:32:06]line Безнал.: 0.00 [15:32:06]line Место: АЗС № 120 "Партнер Нефть" [15:32:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:32:06]line СНО: Общий режим [15:32:06]line Чек 148 22.06.2024 15:32 [15:32:06]line Смена: 356 ФФД: 1.0 [15:32:06]line ЗНМ: 0300000164 [15:32:06]line РНМ: 0000000000092785 [15:32:06]line Версия ККМ: 001 [15:32:06]line ФМ: 0000000000875093 [15:32:06]line ФД: 104415 [15:32:06]line ФПД: 163622131994856 [15:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153206&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104415&fm=163622131994856&tin=02508201610067®Number=0000000000092785&sum=246700 [15:32:07]OFD Sender: Processing packet 104415 [packets to send 17, broken 16] [15:32:07]ProducePacketName [15:32:07]name=ofd_packets/00104415 [15:32:07]OFD Sender: To server: pG, [15:32:07]CommunicateWithHost lk.salyk.kg:30040 [15:32:07]ConnectInit lk.salyk.kg [15:32:07]written 0, free lines is 4095 [15:32:07]Connected sock=10 [15:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 7C 07 01 4E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E0 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 66 00 00 00 00 07 04 06 00 AC C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 76 EE 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 94 D0 3F 0E 10 E8 4B 2A 3E 05 8B 1F 9E 73 [15:32: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 49 29 47 00 FA 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 DF 97 01 00 F4 03 04 00 F5 94 76 66 B6 04 01 00 00 CD 9D 1E 79 D1 EC 3D 4C [15:32:07]CommunicateWithHost err = 0 [15:32:07]CheckOFDResponse [15:32:07]1017 (14) - 77093643461234 [15:32:07]1041 (16) - 0000000000875093 [15:32:07]1040 (4) - 104415 [15:32:07]1012 (4) - 22.06.2024 09:10 [15:32:07]1206 (1) - 0 [15:32:07]OFD Sender: Remove packet 104415 [15:32:07]ProducePacketName [15:32:07]name=ofd_packets/00104415 [15:32:07]NVStorageDeleteData [15:32:07]Write to MH i2c: 01 00 00 7D 1E 9B [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FA 0C A8 [15:32:07]RasterBufferAndPrint [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]written 0, free lines is 3328 [15:32:07]MH_Cut [15:32:07]Write to MH i2c: D1 01 00 84 1E 01 74 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 01 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 01 00 84 1E 00 73 [15:32:07]Write to MH i2c: 01 00 00 85 1E A3 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]OFD Sender: No OFD packet to send [15:32:08]*** Cut start [15:32:08]*** Partial cut [15:32:08]*** CUTSNS_PIN = 1 [15:32:08]*** CUTSNS_PIN = 0 [15:32:08]*** Brake cut motor [15:32:08]Read from MH i2c: 01 [15:32:08]MH_I2C_Read... [15:32:08]*** Stop cut motor [15:32:08]*** Cut end [15:32:08]Read from MH i2c: 01 07 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: 01 07 00 85 1E 00 00 00 00 00 FF 0F B8 [15:32:08]process_action close_receipt done [15:32:08]requested_data is exist [15:32:08]produce_requested_data [15:32:08]requested_item fm.sn is exist - process it [15:32:08]wFMCommunicate request_size=4 [15:32:08]MH_SAM_APDU [15:32:08]CAPDU: 80 11 00 00 [15:32:08]Write to MH i2c: E2 08 00 86 1E 80 11 00 00 00 00 00 00 1E [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:08]Read from MH i2c: E2 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 17 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 17 00 86 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [15:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:32:08]wFMCommunicate OK [15:32:08]requested_item fd.num is exist - process it [15:32:08]SAM_PROTO_GetFieldsCounters [15:32:08]wFMCommunicate request_size=4 [15:32:08]MH_SAM_APDU [15:32:08]CAPDU: 80 13 00 00 [15:32:08]Write to MH i2c: E2 08 00 87 1E 80 13 00 00 00 00 00 00 21 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:09]Read from MH i2c: E2 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 62 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 62 00 87 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 E0 [15:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [15:32:09]wFMCommunicate OK [15:32:09]SAM_PROTO_GetFieldsCounters done [15:32:09]requested_item shift.num is exist - process it [15:32:09]requested_item shift.opened is exist - process it [15:32:09]req_shift_opened [15:32:09]FM_GetShiftState [15:32:09]SAM_PROTO_GetShiftState [15:32:09]wFMCommunicate request_size=4 [15:32:09]MH_SAM_APDU [15:32:09]CAPDU: 80 13 01 00 [15:32:09]Write to MH i2c: E2 08 00 88 1E 80 13 01 00 00 00 00 00 23 [15:32:09]Write i2c OK [15:32:09]MH_I2C_Read... [15:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:09]Read from MH i2c: E2 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 0E 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 0E 00 88 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 15 [15:32:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:32:09]wFMCommunicate OK [15:32:09]SAM_PROTO_GetShiftState done [15:32:09]FM_GetShiftState done [15:32:09]req_shift_opened done [15:32:09]requested_item shift.open_date is exist - process it [15:32:09]req_shift_open_date [15:32:09]req_shift_open_date done [15:32:09]produce_requested_data done [15:32:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104415,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:32:09]process_action_free close_receipt [15:32:09]json_value_free [15:32:09]json_value_free done [15:32:09]process_json_proto returns [15:32:09]Send response to host [15:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104415,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:32:09]free response buf [15:32:09]execute_script done [15:32:09]execute_script returns [15:32:09]free content buf [15:32:09]Sock 9.Close socket [15:32:09]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]accept exits with 7 [15:34:28]New connection [15:34:28]New thread 3066592612 created [15:34:28]Thread 3066449252 joined [15:34:28]Waiting for new connection... [15:34:28] Sock 7.Parse request [15:34:28]Sock 7.Check first char [15:34:28]Sock 7.First char is OK [15:34:28]request: POST /json_proto HTTP/1.0 [15:34:28]Method: POST [15:34:28]URL: /json_proto [15:34:28]Method is POST - this is cgi request [15:34:28]url: /json_proto [15:34:28]query_string will be loaded in cgi processing [15:34:28]execute_cgi json_proto POST (null) [15:34:28]execute_cgi path=json_proto method=POST [15:34:28]POST find Content-Length [15:34:28]Host: 172.17.38.133:8080 [15:34:28]Content-Length: 682 [15:34:28]Content-Type: application/json [15:34:28] [15:34:28]POST finish read [15:34:28]Found Content-Length = 682 [15:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673976", "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:34:28]execute_script... [15:34: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)673976", "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:34:28]POST & json_proto [15:34:28]process_json_proto [15:34:28]json parsed OK: [15:34:28]protocol is kg_v1.0 [15:34:28]action value=close_receipt [15:34:28]process_action close_receipt [15:34:28]cmd_close_receipt [15:34:28]MH_GetDate [15:34:28]Write to MH i2c: F0 00 00 89 1E 96 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: F0 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: F0 09 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: F0 09 00 89 1E 00 05 EF 76 66 BD 8F 7C 64 9B [15:34:28]GetLastDocTimeStamp 1719070326 [15:34:28]current date 1719070469 [15:34:28]FM_GetShiftState [15:34:28]SAM_PROTO_GetShiftState [15:34:28]wFMCommunicate request_size=4 [15:34:28]MH_SAM_APDU [15:34:28]CAPDU: 80 13 01 00 [15:34:28]Write to MH i2c: E2 08 00 8A 1E 80 13 01 00 00 00 00 00 25 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0E 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0E 00 8A 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 17 [15:34:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:34:28]wFMCommunicate OK [15:34:28]SAM_PROTO_GetShiftState done [15:34:28]FM_GetShiftState done [15:34:28]opened in 1719016176 [15:34:28]opened+sec_in_day 1719102576 [15:34:28]quantity*price = 100064 [15:34:28]sum+1 = 100066 [15:34:28]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 СНО: Общий режим Чек 149 22.06.2024 15:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104416 ФПД: 62069798683196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153429&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104416&fm=62069798683196&tin=02508201610067®Number=0000000000092785&sum=100000 [15:34:29]StoreToDocumentArchive [15:34:29]shift 356 fd 104416 [15:34:29]save to /storage/0356/doc_00104416 [15:34:29]save last doc name /storage/0356/doc_00104416 to /storage/kkm_last_doc_name [15:34:29]save OK [15:34:29]Clear old archive folders... [15:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:29]tlvbuf is B6F00800 [15:34:29]SAM_PROTO_ClearQueue [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 09 00 00 [15:34:29]Write to MH i2c: E2 08 00 97 1E 80 09 00 00 00 00 00 00 27 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 97 1E 00 90 00 29 [15:34:29]RAPDU: 90 00 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_ClearQueue done [15:34:29]KKMCreateOFDPacket [15:34:29]OFDProtocolAddRootSTLVToBuf [15:34:29]FM_MakeSignedData [15:34:29]FM_MakeSignedData [15:34:29]SAM_PROTO_SignData [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 0D 01 02 [15:34:29]Write to MH i2c: E2 08 00 98 1E 80 0D 01 02 00 00 00 00 2F [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 98 1E 00 90 00 2A [15:34:29]RAPDU: 90 00 [15:34:29]wFMCommunicate OK [15:34:29]wFMCommunicate request_size=255 [15:34:29]MH_SAM_APDU [15:34: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 95 00 00 00 F4 03 04 00 05 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 [15:34:29]Write to MH i2c: E2 02 01 99 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 05 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 00 00 B3 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 99 1E 00 90 00 2B [15:34:29]RAPDU: 90 00 [15:34:29]wFMCommunicate OK [15:34:29]wFMCommunicate request_size=10 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 0D 02 02 05 73 C0 4D 42 3C [15:34:29]Write to MH i2c: E2 0D 00 9A 1E 80 0D 02 02 05 00 73 C0 4D 42 3C 00 00 3A [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 03 00 9A 1E 00 90 00 2C [15:34:29]RAPDU: 90 00 [15:34:29]wFMCommunicate OK [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 0D 03 02 [15:34:29]Write to MH i2c: E2 08 00 9B 1E 80 0D 03 02 00 00 00 00 34 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0B 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0B 00 9B 1E 00 42 BF 2A DC AC 19 CC 49 90 00 16 [15:34:29]RAPDU: 42 BF 2A DC AC 19 CC 49 90 00 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_SignData done [15:34:29]FM_MakeSignedData done [15:34:29]CreateOFDProtocolMessage [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 11 00 00 [15:34:29]Write to MH i2c: E2 08 00 9C 1E 80 11 00 00 00 00 00 00 34 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 9C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [15:34:29]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:29]wFMCommunicate OK [15:34:29]CreateOFDProtocolMessage done [15:34:29]OFDSenderStorePacket 104416 [15:34:29]StoreOFDPacket docnum=104416 [15:34: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 98 68 07 01 7A 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 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 95 00 00 00 F4 03 04 00 05 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 73 C0 4D 42 3C 42 BF 2A DC AC 19 CC 49 [15:34:29]CheckFolder [15:34:29]dirname=/storage/ofd_packets [15:34:29]CheckFolder done [15:34:29]ProducePacketName [15:34:29]name=ofd_packets/00104416 [15:34:29]NVStorageSaveData ofd_packets/00104416 [15:34:29]File name is /storage/ofd_packets/00104416 [15:34:29]Write 301 bytes [15:34:29]NVStorageSaveData done [15:34:29]OFDSenderStorePacket done [15:34:29]KKMCreateOFDPacket done [15:34:29]NVStorageSaveData kkm_last_timestamp [15:34:29]File name is /storage/kkm_last_timestamp [15:34:29]Write 4 bytes [15:34:29]NVStorageSaveData done [15:34:29]ExternCall_PrintAddStr [15:34:29]wPrintStart [15:34:29]Write to MH i2c: 01 00 00 9D 1E BB [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: 01 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: 01 07 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: 01 07 00 9D 1E 00 00 00 00 00 FF 0F D0 [15:34:29]RasterBufferAndPrint [15:34:29]line Счет N : (1)673976 [15:34:29]line ИНН: 02508201610067 [15:34:29]line Контрольно-Кассовый Чек [15:34:29]line ПРОДАЖА [15:34:29]line ТРК (МРК, ГНК) : 32 [15:34:29]line Товар: 2710124130 [15:34:29]line Аи-92-К-5 [15:34:29]line 15.070 * 66.40 [15:34:29]line = 1000.65 [15:34:29]line НДС 12% НСП 1% [15:34:29]line > о реализуемом товаре [15:34:29]line ОКРУГЛЕНИЕ: -0.65 [15:34:29]line ИТОГО: 1000.00 [15:34:29]line Внесено: 1000.00 [15:34:29]line СДАЧА: 0.00 [15:34:29]line НСП 1% : 8.85 [15:34:29]line НДС 12% : 106.26 [15:34:29]line Наличными: 1000.00 [15:34:29]line Безнал.: 0.00 [15:34:29]line Место: АЗС № 120 "Партнер Нефть" [15:34:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:34:29]line СНО: Общий режим [15:34:29]line Чек 149 22.06.2024 15:34 [15:34:29]line Смена: 356 ФФД: 1.0 [15:34:29]line ЗНМ: 0300000164 [15:34:29]line РНМ: 0000000000092785 [15:34:29]line Версия ККМ: 001 [15:34:29]line ФМ: 0000000000875093 [15:34:29]line ФД: 104416 [15:34:29]line ФПД: 62069798683196 [15:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153429&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104416&fm=62069798683196&tin=02508201610067®Number=0000000000092785&sum=100000 [15:34:30]OFD Sender: Processing packet 104416 [packets to send 17, broken 16] [15:34:30]ProducePacketName [15:34:30]name=ofd_packets/00104416 [15:34:30]OFD Sender: To server: pG, [15:34:30]CommunicateWithHost lk.salyk.kg:30040 [15:34:30]ConnectInit lk.salyk.kg [15:34:30]written 0, free lines is 4095 [15:34:30]Connected sock=10 [15:34: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 98 68 07 01 7A 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 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 95 00 00 00 F4 03 04 00 05 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 38 73 C0 4D 42 3C 42 BF 2A DC AC 19 CC 49 [15:34: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 6D B0 47 00 FC 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 E0 97 01 00 F4 03 04 00 84 95 76 66 B6 04 01 00 00 82 97 B8 53 9D 82 11 48 [15:34:30]CommunicateWithHost err = 0 [15:34:30]CheckOFDResponse [15:34:30]1017 (14) - 77093643461234 [15:34:30]1041 (16) - 0000000000875093 [15:34:30]1040 (4) - 104416 [15:34:30]1012 (4) - 22.06.2024 09:12 [15:34:30]1206 (1) - 0 [15:34:30]OFD Sender: Remove packet 104416 [15:34:30]ProducePacketName [15:34:30]name=ofd_packets/00104416 [15:34:30]NVStorageDeleteData [15:34:30]Write to MH i2c: 01 00 00 C8 1E E6 [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: 01 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: 01 07 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 E4 0C DD [15:34:30]RasterBufferAndPrint [15:34:30]line [15:34:30]line [15:34:30]line [15:34:30]line [15:34:30]line [15:34:30]written 0, free lines is 3306 [15:34:30]MH_Cut [15:34:30]Write to MH i2c: D1 01 00 CF 1E 01 BF [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: D1 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: D1 01 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: D1 01 00 CF 1E 00 BE [15:34:30]Write to MH i2c: 01 00 00 D0 1E EE [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]OFD Sender: No OFD packet to send [15:34:31]*** Cut start [15:34:31]*** Partial cut [15:34:31]*** CUTSNS_PIN = 1 [15:34:31]*** CUTSNS_PIN = 0 [15:34:31]*** Brake cut motor [15:34:31]Read from MH i2c: 01 [15:34:31]MH_I2C_Read... [15:34:31]*** Stop cut motor [15:34:31]*** Cut end [15:34:31]Read from MH i2c: 01 07 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: 01 07 00 D0 1E 00 00 00 00 00 FF 0F 03 [15:34:31]process_action close_receipt done [15:34:31]requested_data is exist [15:34:31]produce_requested_data [15:34:31]requested_item fm.sn is exist - process it [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 11 00 00 [15:34:31]Write to MH i2c: E2 08 00 D1 1E 80 11 00 00 00 00 00 00 69 [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 17 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 17 00 D1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [15:34: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:34:31]wFMCommunicate OK [15:34:31]requested_item fd.num is exist - process it [15:34:31]SAM_PROTO_GetFieldsCounters [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 13 00 00 [15:34:31]Write to MH i2c: E2 08 00 D2 1E 80 13 00 00 00 00 00 00 6C [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 62 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 62 00 D2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2F [15:34: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 E0 97 01 00 0E 04 04 00 64 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 [15:34:32]wFMCommunicate OK [15:34:32]SAM_PROTO_GetFieldsCounters done [15:34:32]requested_item shift.num is exist - process it [15:34:32]requested_item shift.opened is exist - process it [15:34:32]req_shift_opened [15:34:32]FM_GetShiftState [15:34:32]SAM_PROTO_GetShiftState [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 13 01 00 [15:34:32]Write to MH i2c: E2 08 00 D3 1E 80 13 01 00 00 00 00 00 6E [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 0E 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 0E 00 D3 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 60 [15:34:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:34:32]wFMCommunicate OK [15:34:32]SAM_PROTO_GetShiftState done [15:34:32]FM_GetShiftState done [15:34:32]req_shift_opened done [15:34:32]requested_item shift.open_date is exist - process it [15:34:32]req_shift_open_date [15:34:32]req_shift_open_date done [15:34:32]produce_requested_data done [15:34:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104416,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:34:32]process_action_free close_receipt [15:34:32]json_value_free [15:34:32]json_value_free done [15:34:32]process_json_proto returns [15:34:32]Send response to host [15:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104416,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:34:32]free response buf [15:34:32]execute_script done [15:34:32]execute_script returns [15:34:32]free content buf [15:34:32]Sock 7.Close socket [15:34:32]Sock 7.Thread stoped [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:02]accept exits with 9 [15:37:02]New connection [15:37:02]New thread 3066449252 created [15:37:02]Thread 3066592612 joined [15:37:02]Waiting for new connection... [15:37:02] Sock 9.Parse request [15:37:02]Sock 9.Check first char [15:37:02]Sock 9.First char is OK [15:37:02]request: POST /json_proto HTTP/1.0 [15:37:02]Method: POST [15:37:02]URL: /json_proto [15:37:02]Method is POST - this is cgi request [15:37:02]url: /json_proto [15:37:02]query_string will be loaded in cgi processing [15:37:02]execute_cgi json_proto POST (null) [15:37:02]execute_cgi path=json_proto method=POST [15:37:02]POST find Content-Length [15:37:02]Host: 172.17.38.133:8080 [15:37:02]Content-Length: 677 [15:37:02]Content-Type: application/json [15:37:02] [15:37:02]POST finish read [15:37:02]Found Content-Length = 677 [15:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673977", "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" ] } } [15:37:02]execute_script... [15:37: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)673977", "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" ] } } [15:37:02]POST & json_proto [15:37:02]process_json_proto [15:37:02]json parsed OK: [15:37:02]protocol is kg_v1.0 [15:37:02]action value=close_receipt [15:37:02]process_action close_receipt [15:37:02]cmd_close_receipt [15:37:02]MH_GetDate [15:37:02]Write to MH i2c: F0 00 00 D4 1E E1 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 09 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 09 00 D4 1E 00 A0 EF 76 66 BD 8F 7C 64 81 [15:37:02]GetLastDocTimeStamp 1719070469 [15:37:02]current date 1719070624 [15:37:02]FM_GetShiftState [15:37:02]SAM_PROTO_GetShiftState [15:37:02]wFMCommunicate request_size=4 [15:37:02]MH_SAM_APDU [15:37:02]CAPDU: 80 13 01 00 [15:37:02]Write to MH i2c: E2 08 00 D5 1E 80 13 01 00 00 00 00 00 70 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:03]Read from MH i2c: E2 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 0E 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 0E 00 D5 1E 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 62 [15:37:03]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:37:03]wFMCommunicate OK [15:37:03]SAM_PROTO_GetShiftState done [15:37:03]FM_GetShiftState done [15:37:03]opened in 1719016176 [15:37:03]opened+sec_in_day 1719102576 [15:37:03]quantity*price = 64009 [15:37:03]sum+1 = 64011 [15:37:03]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 СНО: Общий режим Чек 150 22.06.2024 15:37 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104417 ФПД: 175512400310677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104417&fm=175512400310677&tin=02508201610067®Number=0000000000092785&sum=64000 [15:37:04]StoreToDocumentArchive [15:37:04]shift 356 fd 104417 [15:37:04]save to /storage/0356/doc_00104417 [15:37:04]save last doc name /storage/0356/doc_00104417 to /storage/kkm_last_doc_name [15:37:04]save OK [15:37:04]Clear old archive folders... [15:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:04]tlvbuf is B6E82B40 [15:37:04]SAM_PROTO_ClearQueue [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 09 00 00 [15:37:04]Write to MH i2c: E2 08 00 E2 1E 80 09 00 00 00 00 00 00 72 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_ClearQueue done [15:37:04]KKMCreateOFDPacket [15:37:04]OFDProtocolAddRootSTLVToBuf [15:37:04]FM_MakeSignedData [15:37:04]FM_MakeSignedData [15:37:04]SAM_PROTO_SignData [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 01 02 [15:37:04]Write to MH i2c: E2 08 00 E3 1E 80 0D 01 02 00 00 00 00 7A [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=255 [15:37:04]MH_SAM_APDU [15:37: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 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 96 00 00 00 F4 03 04 00 A0 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F [15:37:04]Write to MH i2c: E2 02 01 E4 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 96 00 00 00 F4 03 04 00 A0 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F 00 00 B5 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=10 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 02 02 05 A0 AA 46 31 95 [15:37:04]Write to MH i2c: E2 0D 00 E5 1E 80 0D 02 02 05 00 A0 AA 46 31 95 00 00 DD [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 E5 1E 00 90 00 77 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 03 02 [15:37:04]Write to MH i2c: E2 08 00 E6 1E 80 0D 03 02 00 00 00 00 7F [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0B 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0B 00 E6 1E 00 A1 CB A9 33 1C 8D EF 03 90 00 63 [15:37:04]RAPDU: A1 CB A9 33 1C 8D EF 03 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_SignData done [15:37:04]FM_MakeSignedData done [15:37:04]CreateOFDProtocolMessage [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 11 00 00 [15:37:04]Write to MH i2c: E2 08 00 E7 1E 80 11 00 00 00 00 00 00 7F [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 E7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [15:37: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:37:04]wFMCommunicate OK [15:37:04]CreateOFDProtocolMessage done [15:37:04]OFDSenderStorePacket 104417 [15:37:04]StoreOFDPacket docnum=104417 [15:37: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 00 05 07 01 9C 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 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 96 00 00 00 F4 03 04 00 A0 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F A0 AA 46 31 95 A1 CB A9 33 1C 8D EF 03 [15:37:04]CheckFolder [15:37:04]dirname=/storage/ofd_packets [15:37:04]CheckFolder done [15:37:04]ProducePacketName [15:37:04]name=ofd_packets/00104417 [15:37:04]NVStorageSaveData ofd_packets/00104417 [15:37:04]File name is /storage/ofd_packets/00104417 [15:37:04]Write 301 bytes [15:37:04]NVStorageSaveData done [15:37:04]OFDSenderStorePacket done [15:37:04]KKMCreateOFDPacket done [15:37:04]NVStorageSaveData kkm_last_timestamp [15:37:04]File name is /storage/kkm_last_timestamp [15:37:04]Write 4 bytes [15:37:04]NVStorageSaveData done [15:37:04]ExternCall_PrintAddStr [15:37:04]wPrintStart [15:37:04]Write to MH i2c: 01 00 00 E8 1E 06 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 E8 1E 00 00 00 00 00 FF 0F 1B [15:37:04]RasterBufferAndPrint [15:37:04]line Счет N : (1)673977 [15:37:04]line ИНН: 02508201610067 [15:37:04]line Контрольно-Кассовый Чек [15:37:04]line ПРОДАЖА [15:37:04]line ТРК (МРК, ГНК) : 32 [15:37:04]line Товар: 2710124130 [15:37:04]line Аи-92-К-5 [15:37:04]line 9.640 * 66.40 [15:37:04]line = 640.10 [15:37:04]line НДС 12% НСП 1% [15:37:04]line > о реализуемом товаре [15:37:04]line ОКРУГЛЕНИЕ: -0.10 [15:37:04]line ИТОГО: 640.00 [15:37:04]line Внесено: 640.00 [15:37:04]line СДАЧА: 0.00 [15:37:04]line НСП 1% : 5.66 [15:37:04]line НДС 12% : 67.97 [15:37:04]line Наличными: 640.00 [15:37:04]line Безнал.: 0.00 [15:37:04]line Место: АЗС № 120 "Партнер Нефть" [15:37:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:37:04]line СНО: Общий режим [15:37:04]line Чек 150 22.06.2024 15:37 [15:37:04]line Смена: 356 ФФД: 1.0 [15:37:04]line ЗНМ: 0300000164 [15:37:04]line РНМ: 0000000000092785 [15:37:04]line Версия ККМ: 001 [15:37:04]line ФМ: 0000000000875093 [15:37:04]line ФД: 104417 [15:37:04]line ФПД: 175512400310677 [15:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104417&fm=175512400310677&tin=02508201610067®Number=0000000000092785&sum=64000 [15:37:05]OFD Sender: Processing packet 104417 [packets to send 17, broken 16] [15:37:05]ProducePacketName [15:37:05]name=ofd_packets/00104417 [15:37:05]OFD Sender: To server: pG, [15:37:05]CommunicateWithHost lk.salyk.kg:30040 [15:37:05]ConnectInit lk.salyk.kg [15:37:05]written 0, free lines is 4095 [15:37:05]Connected sock=10 [15:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 00 05 07 01 9C 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 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 96 00 00 00 F4 03 04 00 A0 EF 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9F A0 AA 46 31 95 A1 CB A9 33 1C 8D EF 03 [15:37: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 CE C2 47 00 C5 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 E1 97 01 00 F4 03 04 00 1F 96 76 66 B6 04 01 00 00 5F B5 6F 06 2F 26 DF A3 [15:37:05]CommunicateWithHost err = 0 [15:37:05]CheckOFDResponse [15:37:05]1017 (14) - 77093643461234 [15:37:05]1041 (16) - 0000000000875093 [15:37:05]1040 (4) - 104417 [15:37:05]1012 (4) - 22.06.2024 09:15 [15:37:05]1206 (1) - 0 [15:37:05]OFD Sender: Remove packet 104417 [15:37:05]ProducePacketName [15:37:05]name=ofd_packets/00104417 [15:37:05]NVStorageDeleteData [15:37:05]Write to MH i2c: 01 00 00 13 1F 32 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 07 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 07 00 13 1F 00 00 00 00 00 D8 0C 1D [15:37:05]RasterBufferAndPrint [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]written 0, free lines is 3295 [15:37:05]MH_Cut [15:37:05]Write to MH i2c: D1 01 00 1A 1F 01 0B [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 01 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 01 00 1A 1F 00 0A [15:37:05]Write to MH i2c: 01 00 00 1B 1F 3A [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]OFD Sender: No OFD packet to send [15:37:06]*** Cut start [15:37:06]*** Partial cut [15:37:06]*** CUTSNS_PIN = 1 [15:37:06]*** CUTSNS_PIN = 0 [15:37:06]*** Brake cut motor [15:37:06]Read from MH i2c: 01 [15:37:06]MH_I2C_Read... [15:37:06]*** Stop cut motor [15:37:06]*** Cut end [15:37:06]Read from MH i2c: 01 07 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: 01 07 00 1B 1F 00 00 00 00 00 FF 0F 4F [15:37:06]process_action close_receipt done [15:37:06]requested_data is exist [15:37:06]produce_requested_data [15:37:06]requested_item fm.sn is exist - process it [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 11 00 00 [15:37:06]Write to MH i2c: E2 08 00 1C 1F 80 11 00 00 00 00 00 00 B5 [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 1C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [15: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 [15:37:06]wFMCommunicate OK [15:37:06]requested_item fd.num is exist - process it [15:37:06]SAM_PROTO_GetFieldsCounters [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 13 00 00 [15:37:06]Write to MH i2c: E2 08 00 1D 1F 80 13 00 00 00 00 00 00 B8 [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:07]Read from MH i2c: E2 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 62 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 62 00 1D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 7F [15:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [15:37:07]wFMCommunicate OK [15:37:07]SAM_PROTO_GetFieldsCounters done [15:37:07]requested_item shift.num is exist - process it [15:37:07]requested_item shift.opened is exist - process it [15:37:07]req_shift_opened [15:37:07]FM_GetShiftState [15:37:07]SAM_PROTO_GetShiftState [15:37:07]wFMCommunicate request_size=4 [15:37:07]MH_SAM_APDU [15:37:07]CAPDU: 80 13 01 00 [15:37:07]Write to MH i2c: E2 08 00 1E 1F 80 13 01 00 00 00 00 00 BA [15:37:07]Write i2c OK [15:37:07]MH_I2C_Read... [15:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:07]Read from MH i2c: E2 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 0E 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 0E 00 1E 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AC [15:37:07]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:37:07]wFMCommunicate OK [15:37:07]SAM_PROTO_GetShiftState done [15:37:07]FM_GetShiftState done [15:37:07]req_shift_opened done [15:37:07]requested_item shift.open_date is exist - process it [15:37:07]req_shift_open_date [15:37:07]req_shift_open_date done [15:37:07]produce_requested_data done [15:37:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104417,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:37:07]process_action_free close_receipt [15:37:07]json_value_free [15:37:07]json_value_free done [15:37:07]process_json_proto returns [15:37:07]Send response to host [15:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104417,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:37:07]free response buf [15:37:07]execute_script done [15:37:07]execute_script returns [15:37:07]free content buf [15:37:07]Sock 9.Close socket [15:37:07]Sock 9.Thread stoped [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:51]accept exits with 7 [15:38:51]New connection [15:38:51]New thread 3066592612 created [15:38:51]Thread 3066449252 joined [15:38:51]Waiting for new connection... [15:38:51] Sock 7.Parse request [15:38:51]Sock 7.Check first char [15:38:51]Sock 7.First char is OK [15:38:51]request: POST /json_proto HTTP/1.0 [15:38:51]Method: POST [15:38:51]URL: /json_proto [15:38:51]Method is POST - this is cgi request [15:38:51]url: /json_proto [15:38:51]query_string will be loaded in cgi processing [15:38:51]execute_cgi json_proto POST (null) [15:38:51]execute_cgi path=json_proto method=POST [15:38:51]POST find Content-Length [15:38:51]Host: 172.17.38.133:8080 [15:38:51]Content-Length: 682 [15:38:51]Content-Type: application/json [15:38:51] [15:38:51]POST finish read [15:38:51]Found Content-Length = 682 [15:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673978", "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" : 36.850, "sum" : 2446.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2446.00, "payments": [ { "type": 0, "sum" : 2446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:51]execute_script... [15:38: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)673978", "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" : 36.850, "sum" : 2446.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2446.00, "payments": [ { "type": 0, "sum" : 2446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:51]POST & json_proto [15:38:51]process_json_proto [15:38:51]json parsed OK: [15:38:51]protocol is kg_v1.0 [15:38:51]action value=close_receipt [15:38:51]process_action close_receipt [15:38:51]cmd_close_receipt [15:38:51]MH_GetDate [15:38:51]Write to MH i2c: F0 00 00 1F 1F 2D [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: F0 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: F0 09 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: F0 09 00 1F 1F 00 0D F0 76 66 BD 8F 7C 64 3B [15:38:51]GetLastDocTimeStamp 1719070624 [15:38:51]current date 1719070733 [15:38:51]FM_GetShiftState [15:38:51]SAM_PROTO_GetShiftState [15:38:51]wFMCommunicate request_size=4 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 13 01 00 [15:38:51]Write to MH i2c: E2 08 00 20 1F 80 13 01 00 00 00 00 00 BC [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:52]Read from MH i2c: E2 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 0E 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: E2 0E 00 20 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AE [15:38:52]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:38:52]wFMCommunicate OK [15:38:52]SAM_PROTO_GetShiftState done [15:38:52]FM_GetShiftState done [15:38:52]opened in 1719016176 [15:38:52]opened+sec_in_day 1719102576 [15:38:52]quantity*price = 244684 [15:38:52]sum+1 = 244685 [15:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 2446.00 Внесено: 3000.00 СДАЧА: 554.00 НСП 1% : 21.65 НДС 12% : 259.84 Наличными: 2446.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 151 22.06.2024 15:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104418 ФПД: 199643122145594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104418&fm=199643122145594&tin=02508201610067®Number=0000000000092785&sum=244600 [15:38:53]StoreToDocumentArchive [15:38:53]shift 356 fd 104418 [15:38:53]save to /storage/0356/doc_00104418 [15:38:53]save last doc name /storage/0356/doc_00104418 to /storage/kkm_last_doc_name [15:38:53]save OK [15:38:53]Clear old archive folders... [15:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:53]tlvbuf is 00FFFE60 [15:38:53]SAM_PROTO_ClearQueue [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 09 00 00 [15:38:53]Write to MH i2c: E2 08 00 2D 1F 80 09 00 00 00 00 00 00 BE [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [15:38:53]RAPDU: 90 00 [15:38:53]wFMCommunicate OK [15:38:53]SAM_PROTO_ClearQueue done [15:38:53]KKMCreateOFDPacket [15:38:53]OFDProtocolAddRootSTLVToBuf [15:38:53]FM_MakeSignedData [15:38:53]FM_MakeSignedData [15:38:53]SAM_PROTO_SignData [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 0D 01 02 [15:38:53]Write to MH i2c: E2 08 00 2E 1F 80 0D 01 02 00 00 00 00 C6 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [15:38:53]RAPDU: 90 00 [15:38:53]wFMCommunicate OK [15:38:53]wFMCommunicate request_size=255 [15:38:53]MH_SAM_APDU [15:38: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 F2 8F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 65 00 00 00 00 07 04 06 00 78 BB 03 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 0D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B5 [15:38:53]Write to MH i2c: E2 02 01 2F 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 8F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 65 00 00 00 00 07 04 06 00 78 BB 03 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 0D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B5 00 00 BC [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [15:38:53]RAPDU: 90 00 [15:38:53]wFMCommunicate OK [15:38:53]wFMCommunicate request_size=10 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 0D 02 02 05 93 09 60 99 3A [15:38:53]Write to MH i2c: E2 0D 00 30 1F 80 0D 02 02 05 00 93 09 60 99 3A 00 00 A2 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [15:38:53]RAPDU: 90 00 [15:38:53]wFMCommunicate OK [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 0D 03 02 [15:38:53]Write to MH i2c: E2 08 00 31 1F 80 0D 03 02 00 00 00 00 CB [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 0B 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 0B 00 31 1F 00 4D A0 0D F2 BD 34 BC 04 90 00 69 [15:38:53]RAPDU: 4D A0 0D F2 BD 34 BC 04 90 00 [15:38:53]wFMCommunicate OK [15:38:53]SAM_PROTO_SignData done [15:38:53]FM_MakeSignedData done [15:38:53]CreateOFDProtocolMessage [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 11 00 00 [15:38:53]Write to MH i2c: E2 08 00 32 1F 80 11 00 00 00 00 00 00 CB [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 17 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 17 00 32 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [15:38: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:38:53]wFMCommunicate OK [15:38:53]CreateOFDProtocolMessage done [15:38:53]OFDSenderStorePacket 104418 [15:38:53]StoreOFDPacket docnum=104418 [15:38: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 BE 90 07 01 40 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 8F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 65 00 00 00 00 07 04 06 00 78 BB 03 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 0D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B5 93 09 60 99 3A 4D A0 0D F2 BD 34 BC 04 [15:38:53]CheckFolder [15:38:53]dirname=/storage/ofd_packets [15:38:53]CheckFolder done [15:38:53]ProducePacketName [15:38:53]name=ofd_packets/00104418 [15:38:53]NVStorageSaveData ofd_packets/00104418 [15:38:53]File name is /storage/ofd_packets/00104418 [15:38:53]Write 301 bytes [15:38:53]NVStorageSaveData done [15:38:53]OFDSenderStorePacket done [15:38:53]KKMCreateOFDPacket done [15:38:53]NVStorageSaveData kkm_last_timestamp [15:38:53]File name is /storage/kkm_last_timestamp [15:38:53]Write 4 bytes [15:38:53]NVStorageSaveData done [15:38:53]ExternCall_PrintAddStr [15:38:53]wPrintStart [15:38:53]Write to MH i2c: 01 00 00 33 1F 52 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 07 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 07 00 33 1F 00 00 00 00 00 FF 0F 67 [15:38:53]RasterBufferAndPrint [15:38:53]line Счет N : (1)673978 [15:38:53]line ИНН: 02508201610067 [15:38:53]line Контрольно-Кассовый Чек [15:38:53]line ПРОДАЖА [15:38:53]line ТРК (МРК, ГНК) : 42 [15:38:53]line Товар: 2710124130 [15:38:53]line Аи-92-К-5 [15:38:53]line 36.850 * 66.40 [15:38:53]line = 2446.84 [15:38:53]line НДС 12% НСП 1% [15:38:53]line > о реализуемом товаре [15:38:53]line ОКРУГЛЕНИЕ: -0.84 [15:38:53]line ИТОГО: 2446.00 [15:38:53]line Внесено: 3000.00 [15:38:53]line СДАЧА: 554.00 [15:38:53]line НСП 1% : 21.65 [15:38:53]line НДС 12% : 259.84 [15:38:53]line Наличными: 2446.00 [15:38:53]line Безнал.: 0.00 [15:38:53]line Место: АЗС № 120 "Партнер Нефть" [15:38:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:38:53]line СНО: Общий режим [15:38:53]line Чек 151 22.06.2024 15:38 [15:38:53]line Смена: 356 ФФД: 1.0 [15:38:53]line ЗНМ: 0300000164 [15:38:53]line РНМ: 0000000000092785 [15:38:53]line Версия ККМ: 001 [15:38:53]line ФМ: 0000000000875093 [15:38:53]line ФД: 104418 [15:38:53]line ФПД: 199643122145594 [15:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104418&fm=199643122145594&tin=02508201610067®Number=0000000000092785&sum=244600 [15:38:53]OFD Sender: Processing packet 104418 [packets to send 17, broken 16] [15:38:53]ProducePacketName [15:38:53]name=ofd_packets/00104418 [15:38:53]OFD Sender: To server: pG, [15:38:53]CommunicateWithHost lk.salyk.kg:30040 [15:38:53]ConnectInit lk.salyk.kg [15:38:54]written 0, free lines is 4095 [15:38:54]Connected sock=10 [15:38: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 BE 90 07 01 40 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 8F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 65 00 00 00 00 07 04 06 00 78 BB 03 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 0D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 B5 93 09 60 99 3A 4D A0 0D F2 BD 34 BC 04 [15:38: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 37 62 47 00 F5 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 97 01 00 F4 03 04 00 8C 96 76 66 B6 04 01 00 00 8B B4 41 07 9B 92 00 B4 [15:38:54]CommunicateWithHost err = 0 [15:38:54]CheckOFDResponse [15:38:54]1017 (14) - 77093643461234 [15:38:54]1041 (16) - 0000000000875093 [15:38:54]1040 (4) - 104418 [15:38:54]1012 (4) - 22.06.2024 09:17 [15:38:54]1206 (1) - 0 [15:38:54]OFD Sender: Remove packet 104418 [15:38:54]ProducePacketName [15:38:54]name=ofd_packets/00104418 [15:38:54]NVStorageDeleteData [15:38:54]Write to MH i2c: 01 00 00 5E 1F 7D [15:38:54]Write i2c OK [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: 01 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: 01 07 00 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: 01 07 00 5E 1F 00 00 00 00 00 EE 0C 7E [15:38:54]RasterBufferAndPrint [15:38:54]line [15:38:54]line [15:38:54]line [15:38:54]line [15:38:54]line [15:38:54]written 0, free lines is 3316 [15:38:54]MH_Cut [15:38:54]Write to MH i2c: D1 01 00 65 1F 01 56 [15:38:54]Write i2c OK [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: D1 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: D1 01 00 [15:38:54]MH_I2C_Read... [15:38:54]Read from MH i2c: D1 01 00 65 1F 00 55 [15:38:54]Write to MH i2c: 01 00 00 66 1F 85 [15:38:54]Write i2c OK [15:38:54]MH_I2C_Read... [15:38:54]OFD Sender: No OFD packet to send [15:38:55]*** Cut start [15:38:55]*** Partial cut [15:38:55]*** CUTSNS_PIN = 1 [15:38:55]*** CUTSNS_PIN = 0 [15:38:55]*** Brake cut motor [15:38:55]Read from MH i2c: 01 [15:38:55]MH_I2C_Read... [15:38:55]*** Stop cut motor [15:38:55]*** Cut end [15:38:55]Read from MH i2c: 01 07 00 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: 01 07 00 66 1F 00 00 00 00 00 FF 0F 9A [15:38:55]process_action close_receipt done [15:38:55]requested_data is exist [15:38:55]produce_requested_data [15:38:55]requested_item fm.sn is exist - process it [15:38:55]wFMCommunicate request_size=4 [15:38:55]MH_SAM_APDU [15:38:55]CAPDU: 80 11 00 00 [15:38:55]Write to MH i2c: E2 08 00 67 1F 80 11 00 00 00 00 00 00 00 [15:38:55]Write i2c OK [15:38:55]MH_I2C_Read... [15:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:55]Read from MH i2c: E2 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 17 00 [15:38:55]MH_I2C_Read... [15:38:55]Read from MH i2c: E2 17 00 67 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [15:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:38:55]wFMCommunicate OK [15:38:55]requested_item fd.num is exist - process it [15:38:55]SAM_PROTO_GetFieldsCounters [15:38:55]wFMCommunicate request_size=4 [15:38:55]MH_SAM_APDU [15:38:55]CAPDU: 80 13 00 00 [15:38:55]Write to MH i2c: E2 08 00 68 1F 80 13 00 00 00 00 00 00 03 [15:38:55]Write i2c OK [15:38:55]MH_I2C_Read... [15:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:56]Read from MH i2c: E2 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 62 00 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 62 00 68 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 CE [15:38: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 E2 97 01 00 0E 04 04 00 64 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 [15:38:56]wFMCommunicate OK [15:38:56]SAM_PROTO_GetFieldsCounters done [15:38:56]requested_item shift.num is exist - process it [15:38:56]requested_item shift.opened is exist - process it [15:38:56]req_shift_opened [15:38:56]FM_GetShiftState [15:38:56]SAM_PROTO_GetShiftState [15:38:56]wFMCommunicate request_size=4 [15:38:56]MH_SAM_APDU [15:38:56]CAPDU: 80 13 01 00 [15:38:56]Write to MH i2c: E2 08 00 69 1F 80 13 01 00 00 00 00 00 05 [15:38:56]Write i2c OK [15:38:56]MH_I2C_Read... [15:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:56]Read from MH i2c: E2 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 0E 00 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 0E 00 69 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F7 [15:38:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:38:56]wFMCommunicate OK [15:38:56]SAM_PROTO_GetShiftState done [15:38:56]FM_GetShiftState done [15:38:56]req_shift_opened done [15:38:56]requested_item shift.open_date is exist - process it [15:38:56]req_shift_open_date [15:38:56]req_shift_open_date done [15:38:56]produce_requested_data done [15:38:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104418,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:38:56]process_action_free close_receipt [15:38:56]json_value_free [15:38:56]json_value_free done [15:38:56]process_json_proto returns [15:38:56]Send response to host [15:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104418,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:38:56]free response buf [15:38:56]execute_script done [15:38:56]execute_script returns [15:38:56]free content buf [15:38:56]Sock 7.Close socket [15:38:56]Sock 7.Thread stoped [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]accept exits with 9 [15:39:39]New connection [15:39:39]New thread 3066449252 created [15:39:39]Thread 3066592612 joined [15:39:39]Waiting for new connection... [15:39:39] Sock 9.Parse request [15:39:39]Sock 9.Check first char [15:39:39]Sock 9.First char is OK [15:39:39]request: POST /json_proto HTTP/1.0 [15:39:39]Method: POST [15:39:39]URL: /json_proto [15:39:39]Method is POST - this is cgi request [15:39:39]url: /json_proto [15:39:39]query_string will be loaded in cgi processing [15:39:39]execute_cgi json_proto POST (null) [15:39:39]execute_cgi path=json_proto method=POST [15:39:39]POST find Content-Length [15:39:39]Host: 172.17.38.133:8080 [15:39:39]Content-Length: 827 [15:39:39]Content-Type: application/json [15:39:39] [15:39:39]POST finish read [15:39:39]Found Content-Length = 827 [15:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673973", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:39]execute_script... [15:39: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)673973", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:39]POST & json_proto [15:39:39]process_json_proto [15:39:39]json parsed OK: [15:39:39]protocol is kg_v1.0 [15:39:39]action value=close_receipt [15:39:39]process_action close_receipt [15:39:39]cmd_close_receipt [15:39:39]MH_GetDate [15:39:39]Write to MH i2c: F0 00 00 6A 1F 78 [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: F0 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: F0 09 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: F0 09 00 6A 1F 00 3D F0 76 66 BD 8F 7C 64 B6 [15:39:39]GetLastDocTimeStamp 1719070733 [15:39:39]current date 1719070781 [15:39:39]FM_GetShiftState [15:39:39]SAM_PROTO_GetShiftState [15:39:39]wFMCommunicate request_size=4 [15:39:39]MH_SAM_APDU [15:39:39]CAPDU: 80 13 01 00 [15:39:39]Write to MH i2c: E2 08 00 6B 1F 80 13 01 00 00 00 00 00 07 [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 6B 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F9 [15:39:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:39:39]wFMCommunicate OK [15:39:39]SAM_PROTO_GetShiftState done [15:39:39]FM_GetShiftState done [15:39:39]opened in 1719016176 [15:39:39]opened+sec_in_day 1719102576 [15:39:39]quantity*price = 1000042 [15:39:39]sum+1 = 1000043 [15:39:39]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 СНО: Общий режим Чек 152 22.06.2024 15:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104419 ФПД: 58813261312920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153941&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104419&fm=58813261312920&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:39:40]StoreToDocumentArchive [15:39:40]shift 356 fd 104419 [15:39:40]save to /storage/0356/doc_00104419 [15:39:40]save last doc name /storage/0356/doc_00104419 to /storage/kkm_last_doc_name [15:39:40]save OK [15:39:40]Clear old archive folders... [15:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:39:40]tlvbuf is 00FB6E60 [15:39:40]SAM_PROTO_ClearQueue [15:39:40]wFMCommunicate request_size=4 [15:39:40]MH_SAM_APDU [15:39:40]CAPDU: 80 09 00 00 [15:39:40]Write to MH i2c: E2 08 00 78 1F 80 09 00 00 00 00 00 00 09 [15:39:40]Write i2c OK [15:39:40]MH_I2C_Read... [15:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:40]Read from MH i2c: E2 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 78 1F 00 90 00 0B [15:39:40]RAPDU: 90 00 [15:39:40]wFMCommunicate OK [15:39:40]SAM_PROTO_ClearQueue done [15:39:40]KKMCreateOFDPacket [15:39:40]OFDProtocolAddRootSTLVToBuf [15:39:40]FM_MakeSignedData [15:39:40]FM_MakeSignedData [15:39:40]SAM_PROTO_SignData [15:39:40]wFMCommunicate request_size=4 [15:39:40]MH_SAM_APDU [15:39:40]CAPDU: 80 0D 01 02 [15:39:40]Write to MH i2c: E2 08 00 79 1F 80 0D 01 02 00 00 00 00 11 [15:39:40]Write i2c OK [15:39:40]MH_I2C_Read... [15:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:40]Read from MH i2c: E2 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 79 1F 00 90 00 0C [15:39:40]RAPDU: 90 00 [15:39:40]wFMCommunicate OK [15:39:40]wFMCommunicate request_size=255 [15:39:40]MH_SAM_APDU [15:39:40]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 98 00 00 00 F4 03 04 00 3D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [15:39:40]Write to MH i2c: E2 02 01 7A 1F 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 98 00 00 00 F4 03 04 00 3D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 C3 [15:39:40]Write i2c OK [15:39:40]MH_I2C_Read... [15:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:40]Read from MH i2c: E2 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 [15:39:40]MH_I2C_Read... [15:39:40]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [15:39:40]RAPDU: 90 00 [15:39:40]wFMCommunicate OK [15:39:40]wFMCommunicate request_size=11 [15:39:40]MH_SAM_APDU [15:39:40]CAPDU: 80 0D 02 02 06 35 7D 87 8C 73 98 [15:39:40]Write to MH i2c: E2 0E 00 7B 1F 80 0D 02 02 06 00 35 7D 87 8C 73 98 00 00 F0 [15:39:40]Write i2c OK [15:39:40]MH_I2C_Read... [15:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:41]Read from MH i2c: E2 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 03 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [15:39:41]RAPDU: 90 00 [15:39:41]wFMCommunicate OK [15:39:41]wFMCommunicate request_size=4 [15:39:41]MH_SAM_APDU [15:39:41]CAPDU: 80 0D 03 02 [15:39:41]Write to MH i2c: E2 08 00 7C 1F 80 0D 03 02 00 00 00 00 16 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:41]Read from MH i2c: E2 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 0B 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 0B 00 7C 1F 00 73 70 98 98 87 63 D7 FC 90 00 E7 [15:39:41]RAPDU: 73 70 98 98 87 63 D7 FC 90 00 [15:39:41]wFMCommunicate OK [15:39:41]SAM_PROTO_SignData done [15:39:41]FM_MakeSignedData done [15:39:41]CreateOFDProtocolMessage [15:39:41]wFMCommunicate request_size=4 [15:39:41]MH_SAM_APDU [15:39:41]CAPDU: 80 11 00 00 [15:39:41]Write to MH i2c: E2 08 00 7D 1F 80 11 00 00 00 00 00 00 16 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:41]Read from MH i2c: E2 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 17 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 17 00 7D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [15:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:39:41]wFMCommunicate OK [15:39:41]CreateOFDProtocolMessage done [15:39:41]OFDSenderStorePacket 104419 [15:39:41]StoreOFDPacket docnum=104419 [15:39: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 10 01 00 00 09 FB 08 01 65 D8 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 98 00 00 00 F4 03 04 00 3D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 7D 87 8C 73 98 73 70 98 98 87 63 D7 FC [15:39:41]CheckFolder [15:39:41]dirname=/storage/ofd_packets [15:39:41]CheckFolder done [15:39:41]ProducePacketName [15:39:41]name=ofd_packets/00104419 [15:39:41]NVStorageSaveData ofd_packets/00104419 [15:39:41]File name is /storage/ofd_packets/00104419 [15:39:41]Write 302 bytes [15:39:41]NVStorageSaveData done [15:39:41]OFDSenderStorePacket done [15:39:41]KKMCreateOFDPacket done [15:39:41]NVStorageSaveData kkm_last_timestamp [15:39:41]File name is /storage/kkm_last_timestamp [15:39:41]Write 4 bytes [15:39:41]NVStorageSaveData done [15:39:41]ExternCall_PrintAddStr [15:39:41]wPrintStart [15:39:41]Write to MH i2c: 01 00 00 7E 1F 9D [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 07 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 07 00 7E 1F 00 00 00 00 00 FF 0F B2 [15:39:41]RasterBufferAndPrint [15:39:41]line Счет N : (1)673973 [15:39:41]line ИНН: 02508201610067 [15:39:41]line Контрольно-Кассовый Чек [15:39:41]line ПРОДАЖА [15:39:41]line ТРК (МРК, ГНК) : 21 [15:39:41]line Товар: 2710194210 [15:39:41]line ДТ(л)-К-5 [15:39:41]line 137.180 * 72.90 [15:39:41]line = 10000.42 [15:39:41]line НДС 12% НСП 1% [15:39:41]line > о реализуемом товаре [15:39:41]line ИТОГО: 10000.42 [15:39:41]line НСП 1% : 88.50 [15:39:41]line НДС 12% : 1061.99 [15:39:41]line Наличными: 0.00 [15:39:41]line Безнал.: 10000.42 [15:39:41]line Место: АЗС № 120 "Партнер Нефть" [15:39:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:39:41]line СНО: Общий режим [15:39:41]line Чек 152 22.06.2024 15:39 [15:39:41]line Смена: 356 ФФД: 1.0 [15:39:41]line ЗНМ: 0300000164 [15:39:41]line РНМ: 0000000000092785 [15:39:41]line Версия ККМ: 001 [15:39:41]line Платежная система: Бакай Банк [15:39:41]line ФМ: 0000000000875093 [15:39:41]line ФД: 104419 [15:39:41]line ФПД: 58813261312920 [15:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153941&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104419&fm=58813261312920&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:39:41]OFD Sender: Processing packet 104419 [packets to send 17, broken 16] [15:39:41]ProducePacketName [15:39:41]name=ofd_packets/00104419 [15:39:41]OFD Sender: To server: pG, [15:39:41]CommunicateWithHost lk.salyk.kg:30040 [15:39:41]ConnectInit lk.salyk.kg [15:39:41]written 0, free lines is 4095 [15:39:41]Connected sock=10 [15:39: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 10 01 00 00 09 FB 08 01 65 D8 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 98 00 00 00 F4 03 04 00 3D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 35 7D 87 8C 73 98 73 70 98 98 87 63 D7 FC [15:39: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 42 BD 47 00 0B 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 E3 97 01 00 F4 03 04 00 BC 96 76 66 B6 04 01 00 00 59 AA 4D 48 06 A3 E5 F0 [15:39:41]CommunicateWithHost err = 0 [15:39:41]CheckOFDResponse [15:39:41]1017 (14) - 77093643461234 [15:39:41]1041 (16) - 0000000000875093 [15:39:41]1040 (4) - 104419 [15:39:41]1012 (4) - 22.06.2024 09:17 [15:39:41]1206 (1) - 0 [15:39:41]OFD Sender: Remove packet 104419 [15:39:41]ProducePacketName [15:39:41]name=ofd_packets/00104419 [15:39:41]NVStorageDeleteData [15:39:41]Write to MH i2c: 01 00 00 A8 1F C7 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 07 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: 01 07 00 A8 1F 00 00 00 00 00 F0 0C CA [15:39:41]RasterBufferAndPrint [15:39:41]line [15:39:41]line [15:39:41]line [15:39:41]line [15:39:41]line [15:39:41]written 0, free lines is 3317 [15:39:41]MH_Cut [15:39:41]Write to MH i2c: D1 01 00 AF 1F 01 A0 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: D1 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: D1 01 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: D1 01 00 AF 1F 00 9F [15:39:41]Write to MH i2c: 01 00 00 B0 1F CF [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:42]OFD Sender: No OFD packet to send [15:39:42]*** Cut start [15:39:42]*** Partial cut [15:39:42]*** CUTSNS_PIN = 1 [15:39:42]*** CUTSNS_PIN = 0 [15:39:42]*** Brake cut motor [15:39:43]Read from MH i2c: 01 [15:39:43]MH_I2C_Read... [15:39:43]*** Stop cut motor [15:39:43]*** Cut end [15:39:43]Read from MH i2c: 01 07 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: 01 07 00 B0 1F 00 00 00 00 00 FF 0F E4 [15:39:43]process_action close_receipt done [15:39:43]requested_data is exist [15:39:43]produce_requested_data [15:39:43]requested_item fm.sn is exist - process it [15:39:43]wFMCommunicate request_size=4 [15:39:43]MH_SAM_APDU [15:39:43]CAPDU: 80 11 00 00 [15:39:43]Write to MH i2c: E2 08 00 B1 1F 80 11 00 00 00 00 00 00 4A [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:43]Read from MH i2c: E2 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 17 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 17 00 B1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [15:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:39:43]wFMCommunicate OK [15:39:43]requested_item fd.num is exist - process it [15:39:43]SAM_PROTO_GetFieldsCounters [15:39:43]wFMCommunicate request_size=4 [15:39:43]MH_SAM_APDU [15:39:43]CAPDU: 80 13 00 00 [15:39:43]Write to MH i2c: E2 08 00 B2 1F 80 13 00 00 00 00 00 00 4D [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:43]Read from MH i2c: E2 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 62 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 62 00 B2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 1C [15:39: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 E3 97 01 00 0E 04 04 00 64 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 [15:39:43]wFMCommunicate OK [15:39:43]SAM_PROTO_GetFieldsCounters done [15:39:43]requested_item shift.num is exist - process it [15:39:43]requested_item shift.opened is exist - process it [15:39:43]req_shift_opened [15:39:43]FM_GetShiftState [15:39:43]SAM_PROTO_GetShiftState [15:39:43]wFMCommunicate request_size=4 [15:39:43]MH_SAM_APDU [15:39:43]CAPDU: 80 13 01 00 [15:39:43]Write to MH i2c: E2 08 00 B3 1F 80 13 01 00 00 00 00 00 4F [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:43]Read from MH i2c: E2 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 0E 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: E2 0E 00 B3 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 41 [15:39:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:39:43]wFMCommunicate OK [15:39:43]SAM_PROTO_GetShiftState done [15:39:43]FM_GetShiftState done [15:39:43]req_shift_opened done [15:39:43]requested_item shift.open_date is exist - process it [15:39:43]req_shift_open_date [15:39:43]req_shift_open_date done [15:39:43]produce_requested_data done [15:39:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104419,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:39:43]process_action_free close_receipt [15:39:43]json_value_free [15:39:43]json_value_free done [15:39:43]process_json_proto returns [15:39:43]Send response to host [15:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104419,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:39:43]free response buf [15:39:43]execute_script done [15:39:43]execute_script returns [15:39:43]free content buf [15:39:43]Sock 9.Close socket [15:39:43]Sock 9.Thread stoped [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:11]accept exits with 7 [15:40:11]New connection [15:40:11]New thread 3066592612 created [15:40:11]Thread 3066449252 joined [15:40:11]Waiting for new connection... [15:40:11] Sock 7.Parse request [15:40:11]Sock 7.Check first char [15:40:11]Sock 7.First char is OK [15:40:11]request: POST /json_proto HTTP/1.0 [15:40:11]Method: POST [15:40:11]URL: /json_proto [15:40:11]Method is POST - this is cgi request [15:40:11]url: /json_proto [15:40:11]query_string will be loaded in cgi processing [15:40:11]execute_cgi json_proto POST (null) [15:40:11]execute_cgi path=json_proto method=POST [15:40:11]POST find Content-Length [15:40:11]Host: 172.17.38.133:8080 [15:40:11]Content-Length: 692 [15:40:11]Content-Type: application/json [15:40:11] [15:40:11]POST finish read [15:40:11]Found Content-Length = 692 [15:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673975", "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" ] } } [15:40:11]execute_script... [15:40: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)673975", "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" ] } } [15:40:11]POST & json_proto [15:40:11]process_json_proto [15:40:11]json parsed OK: [15:40:11]protocol is kg_v1.0 [15:40:11]action value=close_receipt [15:40:11]process_action close_receipt [15:40:11]cmd_close_receipt [15:40:11]MH_GetDate [15:40:11]Write to MH i2c: F0 00 00 B4 1F C2 [15:40:11]Write i2c OK [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: F0 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: F0 09 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: F0 09 00 B4 1F 00 5D F0 76 66 BD 8F 7C 64 20 [15:40:11]GetLastDocTimeStamp 1719070781 [15:40:11]current date 1719070813 [15:40:11]FM_GetShiftState [15:40:11]SAM_PROTO_GetShiftState [15:40:11]wFMCommunicate request_size=4 [15:40:11]MH_SAM_APDU [15:40:11]CAPDU: 80 13 01 00 [15:40:11]Write to MH i2c: E2 08 00 B5 1F 80 13 01 00 00 00 00 00 51 [15:40:11]Write i2c OK [15:40:11]MH_I2C_Read... [15:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:11]Read from MH i2c: E2 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 0E 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 0E 00 B5 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 43 [15:40:11]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:11]wFMCommunicate OK [15:40:11]SAM_PROTO_GetShiftState done [15:40:11]FM_GetShiftState done [15:40:11]opened in 1719016176 [15:40:11]opened+sec_in_day 1719102576 [15:40:11]quantity*price = 1000042 [15:40:11]sum+1 = 1000043 [15:40:11]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 СНО: Общий режим Чек 153 22.06.2024 15:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104420 ФПД: 141562564871140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154013&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104420&fm=141562564871140&tin=02508201610067®Number=0000000000092785&sum=1000000 [15:40:12]StoreToDocumentArchive [15:40:12]shift 356 fd 104420 [15:40:12]save to /storage/0356/doc_00104420 [15:40:12]save last doc name /storage/0356/doc_00104420 to /storage/kkm_last_doc_name [15:40:12]save OK [15:40:12]Clear old archive folders... [15:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:40:12]tlvbuf is B6EFD590 [15:40:12]SAM_PROTO_ClearQueue [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 09 00 00 [15:40:12]Write to MH i2c: E2 08 00 C2 1F 80 09 00 00 00 00 00 00 53 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:12]Read from MH i2c: E2 03 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [15:40:12]RAPDU: 90 00 [15:40:12]wFMCommunicate OK [15:40:12]SAM_PROTO_ClearQueue done [15:40:12]KKMCreateOFDPacket [15:40:12]OFDProtocolAddRootSTLVToBuf [15:40:12]FM_MakeSignedData [15:40:12]FM_MakeSignedData [15:40:12]SAM_PROTO_SignData [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 0D 01 02 [15:40:12]Write to MH i2c: E2 08 00 C3 1F 80 0D 01 02 00 00 00 00 5B [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [15:40:12]RAPDU: 90 00 [15:40:12]wFMCommunicate OK [15:40:12]wFMCommunicate request_size=255 [15:40:12]MH_SAM_APDU [15:40: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 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 99 00 00 00 F4 03 04 00 5D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [15:40:12]Write to MH i2c: E2 02 01 C4 1F 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 99 00 00 00 F4 03 04 00 5D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 DB [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [15:40:12]RAPDU: 90 00 [15:40:12]wFMCommunicate OK [15:40:12]wFMCommunicate request_size=11 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 0D 02 02 06 80 C0 1A 64 83 E4 [15:40:12]Write to MH i2c: E2 0E 00 C5 1F 80 0D 02 02 06 00 80 C0 1A 64 83 E4 00 00 8F [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [15:40:12]RAPDU: 90 00 [15:40:12]wFMCommunicate OK [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 0D 03 02 [15:40:12]Write to MH i2c: E2 08 00 C6 1F 80 0D 03 02 00 00 00 00 60 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 0B 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 0B 00 C6 1F 00 5F 8D 01 12 DF 24 23 7D 90 00 03 [15:40:12]RAPDU: 5F 8D 01 12 DF 24 23 7D 90 00 [15:40:12]wFMCommunicate OK [15:40:12]SAM_PROTO_SignData done [15:40:12]FM_MakeSignedData done [15:40:12]CreateOFDProtocolMessage [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 11 00 00 [15:40:12]Write to MH i2c: E2 08 00 C7 1F 80 11 00 00 00 00 00 00 60 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:13]Read from MH i2c: E2 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 17 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 17 00 C7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [15:40: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:40:13]wFMCommunicate OK [15:40:13]CreateOFDProtocolMessage done [15:40:13]OFDSenderStorePacket 104420 [15:40:13]StoreOFDPacket docnum=104420 [15:40: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 26 D1 08 01 A7 8F 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 99 00 00 00 F4 03 04 00 5D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 80 C0 1A 64 83 E4 5F 8D 01 12 DF 24 23 7D [15:40:13]CheckFolder [15:40:13]dirname=/storage/ofd_packets [15:40:13]CheckFolder done [15:40:13]ProducePacketName [15:40:13]name=ofd_packets/00104420 [15:40:13]NVStorageSaveData ofd_packets/00104420 [15:40:13]File name is /storage/ofd_packets/00104420 [15:40:13]Write 302 bytes [15:40:13]NVStorageSaveData done [15:40:13]OFDSenderStorePacket done [15:40:13]KKMCreateOFDPacket done [15:40:13]NVStorageSaveData kkm_last_timestamp [15:40:13]File name is /storage/kkm_last_timestamp [15:40:13]Write 4 bytes [15:40:13]NVStorageSaveData done [15:40:13]ExternCall_PrintAddStr [15:40:13]wPrintStart [15:40:13]Write to MH i2c: 01 00 00 C8 1F E7 [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 07 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 07 00 C8 1F 00 00 00 00 00 FF 0F FC [15:40:13]RasterBufferAndPrint [15:40:13]line Счет N : (1)673975 [15:40:13]line ИНН: 02508201610067 [15:40:13]line Контрольно-Кассовый Чек [15:40:13]line ПРОДАЖА [15:40:13]line ТРК (МРК, ГНК) : 11 [15:40:13]line Товар: 2710194210 [15:40:13]line ДТ(л)-К-5 [15:40:13]line 137.180 * 72.90 [15:40:13]line = 10000.42 [15:40:13]line НДС 12% НСП 1% [15:40:13]line > о реализуемом товаре [15:40:13]line ОКРУГЛЕНИЕ: -0.42 [15:40:13]line ИТОГО: 10000.00 [15:40:13]line Внесено: 10000.00 [15:40:13]line СДАЧА: 0.00 [15:40:13]line НСП 1% : 88.50 [15:40:13]line НДС 12% : 1061.99 [15:40:13]line Наличными: 10000.00 [15:40:13]line Безнал.: 0.00 [15:40:13]line Место: АЗС № 120 "Партнер Нефть" [15:40:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:40:13]line СНО: Общий режим [15:40:13]line Чек 153 22.06.2024 15:40 [15:40:13]line Смена: 356 ФФД: 1.0 [15:40:13]line ЗНМ: 0300000164 [15:40:13]line РНМ: 0000000000092785 [15:40:13]line Версия ККМ: 001 [15:40:13]line ФМ: 0000000000875093 [15:40:13]line ФД: 104420 [15:40:13]line ФПД: 141562564871140 [15:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154013&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104420&fm=141562564871140&tin=02508201610067®Number=0000000000092785&sum=1000000 [15:40:13]OFD Sender: Processing packet 104420 [packets to send 17, broken 16] [15:40:13]ProducePacketName [15:40:13]name=ofd_packets/00104420 [15:40:13]OFD Sender: To server: pG, [15:40:13]CommunicateWithHost lk.salyk.kg:30040 [15:40:13]ConnectInit lk.salyk.kg [15:40:13]written 0, free lines is 4095 [15:40:13]Connected sock=10 [15:40: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 26 D1 08 01 A7 8F 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 99 00 00 00 F4 03 04 00 5D F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 80 C0 1A 64 83 E4 5F 8D 01 12 DF 24 23 7D [15:40: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 B1 D8 47 00 6D 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 E4 97 01 00 F4 03 04 00 DC 96 76 66 B6 04 01 00 00 0E 1B DE 65 7F D4 F5 5D [15:40:13]CommunicateWithHost err = 0 [15:40:13]CheckOFDResponse [15:40:13]1017 (14) - 77093643461234 [15:40:13]1041 (16) - 0000000000875093 [15:40:13]1040 (4) - 104420 [15:40:13]1012 (4) - 22.06.2024 09:18 [15:40:13]1206 (1) - 0 [15:40:13]OFD Sender: Remove packet 104420 [15:40:13]ProducePacketName [15:40:13]name=ofd_packets/00104420 [15:40:13]NVStorageDeleteData [15:40:13]Write to MH i2c: 01 00 00 F3 1F 12 [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 07 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 F3 0C 18 [15:40:13]RasterBufferAndPrint [15:40:13]line [15:40:13]line [15:40:13]line [15:40:13]line [15:40:13]line [15:40:13]written 0, free lines is 3321 [15:40:13]MH_Cut [15:40:13]Write to MH i2c: D1 01 00 FA 1F 01 EB [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: D1 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: D1 01 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: D1 01 00 FA 1F 00 EA [15:40:13]Write to MH i2c: 01 00 00 FB 1F 1A [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:14]OFD Sender: No OFD packet to send [15:40:14]*** Cut start [15:40:14]*** Partial cut [15:40:14]*** CUTSNS_PIN = 1 [15:40:14]*** CUTSNS_PIN = 0 [15:40:14]*** Brake cut motor [15:40:15]Read from MH i2c: 01 [15:40:15]MH_I2C_Read... [15:40:15]*** Stop cut motor [15:40:15]*** Cut end [15:40:15]Read from MH i2c: 01 07 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 FB 1F 00 00 00 00 00 FF 0F 2F [15:40:15]process_action close_receipt done [15:40:15]requested_data is exist [15:40:15]produce_requested_data [15:40:15]requested_item fm.sn is exist - process it [15:40:15]wFMCommunicate request_size=4 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 11 00 00 [15:40:15]Write to MH i2c: E2 08 00 FC 1F 80 11 00 00 00 00 00 00 95 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 17 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 17 00 FC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [15:40: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:40:15]wFMCommunicate OK [15:40:15]requested_item fd.num is exist - process it [15:40:15]SAM_PROTO_GetFieldsCounters [15:40:15]wFMCommunicate request_size=4 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 13 00 00 [15:40:15]Write to MH i2c: E2 08 00 FD 1F 80 13 00 00 00 00 00 00 98 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 62 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 62 00 FD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 6B [15:40: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 E4 97 01 00 0E 04 04 00 64 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 [15:40:15]wFMCommunicate OK [15:40:15]SAM_PROTO_GetFieldsCounters done [15:40:15]requested_item shift.num is exist - process it [15:40:15]requested_item shift.opened is exist - process it [15:40:15]req_shift_opened [15:40:15]FM_GetShiftState [15:40:15]SAM_PROTO_GetShiftState [15:40:15]wFMCommunicate request_size=4 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 13 01 00 [15:40:15]Write to MH i2c: E2 08 00 FE 1F 80 13 01 00 00 00 00 00 9A [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:15]Read from MH i2c: E2 0E 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 0E 00 FE 1F 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8C [15:40:15]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:15]wFMCommunicate OK [15:40:15]SAM_PROTO_GetShiftState done [15:40:15]FM_GetShiftState done [15:40:15]req_shift_opened done [15:40:15]requested_item shift.open_date is exist - process it [15:40:15]req_shift_open_date [15:40:15]req_shift_open_date done [15:40:15]produce_requested_data done [15:40:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104420,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:40:15]process_action_free close_receipt [15:40:15]json_value_free [15:40:15]json_value_free done [15:40:15]process_json_proto returns [15:40:15]Send response to host [15:40:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104420,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:40:15]free response buf [15:40:15]execute_script done [15:40:15]execute_script returns [15:40:15]free content buf [15:40:15]Sock 7.Close socket [15:40:15]Sock 7.Thread stoped [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:33]accept exits with 9 [15:40:33]New connection [15:40:33]New thread 3066449252 created [15:40:33]Thread 3066592612 joined [15:40:33]Waiting for new connection... [15:40:33] Sock 9.Parse request [15:40:33]Sock 9.Check first char [15:40:33]Sock 9.First char is OK [15:40:33]request: POST /json_proto HTTP/1.0 [15:40:33]Method: POST [15:40:33]URL: /json_proto [15:40:33]Method is POST - this is cgi request [15:40:33]url: /json_proto [15:40:33]query_string will be loaded in cgi processing [15:40:33]execute_cgi json_proto POST (null) [15:40:33]execute_cgi path=json_proto method=POST [15:40:33]POST find Content-Length [15:40:33]Host: 172.17.38.133:8080 [15:40:33]Content-Length: 677 [15:40:33]Content-Type: application/json [15:40:33] [15:40:33]POST finish read [15:40:33]Found Content-Length = 677 [15:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673980", "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:40:33]execute_script... [15:40: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)673980", "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:40:33]POST & json_proto [15:40:33]process_json_proto [15:40:33]json parsed OK: [15:40:33]protocol is kg_v1.0 [15:40:33]action value=close_receipt [15:40:33]process_action close_receipt [15:40:33]cmd_close_receipt [15:40:33]MH_GetDate [15:40:33]Write to MH i2c: F0 00 00 FF 1F 0D [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: F0 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: F0 09 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: F0 09 00 FF 1F 00 73 F0 76 66 BD 8F 7C 64 81 [15:40:33]GetLastDocTimeStamp 1719070813 [15:40:33]current date 1719070835 [15:40:33]FM_GetShiftState [15:40:33]SAM_PROTO_GetShiftState [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 13 01 00 [15:40:33]Write to MH i2c: E2 08 00 00 20 80 13 01 00 00 00 00 00 9D [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0E 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0E 00 00 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8F [15:40:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_GetShiftState done [15:40:33]FM_GetShiftState done [15:40:33]opened in 1719016176 [15:40:33]opened+sec_in_day 1719102576 [15:40:33]quantity*price = 50065 [15:40:33]sum+1 = 50067 [15:40: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 СНО: Общий режим Чек 154 22.06.2024 15:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104421 ФПД: 126336969619132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104421&fm=126336969619132&tin=02508201610067®Number=0000000000092785&sum=50000 [15:40:34]StoreToDocumentArchive [15:40:34]shift 356 fd 104421 [15:40:34]save to /storage/0356/doc_00104421 [15:40:34]save last doc name /storage/0356/doc_00104421 to /storage/kkm_last_doc_name [15:40:34]save OK [15:40:34]Clear old archive folders... [15:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:34]tlvbuf is 00FB6CD0 [15:40:34]SAM_PROTO_ClearQueue [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 09 00 00 [15:40:34]Write to MH i2c: E2 08 00 0D 20 80 09 00 00 00 00 00 00 9F [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]SAM_PROTO_ClearQueue done [15:40:34]KKMCreateOFDPacket [15:40:34]OFDProtocolAddRootSTLVToBuf [15:40:34]FM_MakeSignedData [15:40:34]FM_MakeSignedData [15:40:34]SAM_PROTO_SignData [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 01 02 [15:40:34]Write to MH i2c: E2 08 00 0E 20 80 0D 01 02 00 00 00 00 A7 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 0E 20 00 90 00 A2 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=255 [15:40:34]MH_SAM_APDU [15:40: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 9A 00 00 00 F4 03 04 00 73 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 72 [15:40:34]Write to MH i2c: E2 02 01 0F 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 73 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 72 00 00 8E [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=10 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 02 02 05 E7 1E 32 36 BC [15:40:34]Write to MH i2c: E2 0D 00 10 20 80 0D 02 02 05 00 E7 1E 32 36 BC 00 00 DD [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 03 02 [15:40:34]Write to MH i2c: E2 08 00 11 20 80 0D 03 02 00 00 00 00 AC [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 11 20 00 B9 F0 90 50 CC 84 32 E3 90 00 9B [15:40:34]RAPDU: B9 F0 90 50 CC 84 32 E3 90 00 [15:40:34]wFMCommunicate OK [15:40:34]SAM_PROTO_SignData done [15:40:34]FM_MakeSignedData done [15:40:34]CreateOFDProtocolMessage [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 11 00 00 [15:40:34]Write to MH i2c: E2 08 00 12 20 80 11 00 00 00 00 00 00 AC [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 12 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [15:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:40:34]wFMCommunicate OK [15:40:34]CreateOFDProtocolMessage done [15:40:34]OFDSenderStorePacket 104421 [15:40:34]StoreOFDPacket docnum=104421 [15:40: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 55 CC 07 01 33 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 73 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 72 E7 1E 32 36 BC B9 F0 90 50 CC 84 32 E3 [15:40:34]CheckFolder [15:40:34]dirname=/storage/ofd_packets [15:40:34]CheckFolder done [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00104421 [15:40:34]NVStorageSaveData ofd_packets/00104421 [15:40:34]File name is /storage/ofd_packets/00104421 [15:40:34]Write 301 bytes [15:40:34]NVStorageSaveData done [15:40:34]OFDSenderStorePacket done [15:40:34]KKMCreateOFDPacket done [15:40:34]NVStorageSaveData kkm_last_timestamp [15:40:34]File name is /storage/kkm_last_timestamp [15:40:34]Write 4 bytes [15:40:34]NVStorageSaveData done [15:40:34]ExternCall_PrintAddStr [15:40:34]wPrintStart [15:40:34]Write to MH i2c: 01 00 00 13 20 33 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 13 20 00 00 00 00 00 FF 0F 48 [15:40:34]RasterBufferAndPrint [15:40:34]line Счет N : (1)673980 [15:40:34]line ИНН: 02508201610067 [15:40:34]line Контрольно-Кассовый Чек [15:40:34]line ПРОДАЖА [15:40:34]line ТРК (МРК, ГНК) : 42 [15:40:34]line Товар: 2710124130 [15:40:34]line Аи-92-К-5 [15:40:34]line 7.540 * 66.40 [15:40:34]line = 500.66 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line ОКРУГЛЕНИЕ: -0.66 [15:40:34]line ИТОГО: 500.00 [15:40:34]line Внесено: 500.00 [15:40:34]line СДАЧА: 0.00 [15:40:34]line НСП 1% : 4.43 [15:40:34]line НДС 12% : 53.17 [15:40:34]line Наличными: 500.00 [15:40:34]line Безнал.: 0.00 [15:40:34]line Место: АЗС № 120 "Партнер Нефть" [15:40:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:40:34]line СНО: Общий режим [15:40:34]line Чек 154 22.06.2024 15:40 [15:40:34]line Смена: 356 ФФД: 1.0 [15:40:34]line ЗНМ: 0300000164 [15:40:34]line РНМ: 0000000000092785 [15:40:34]line Версия ККМ: 001 [15:40:34]line ФМ: 0000000000875093 [15:40:34]line ФД: 104421 [15:40:34]line ФПД: 126336969619132 [15:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104421&fm=126336969619132&tin=02508201610067®Number=0000000000092785&sum=50000 [15:40:34]written 0, free lines is 4095 [15:40:34]OFD Sender: Processing packet 104421 [packets to send 17, broken 16] [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00104421 [15:40:34]OFD Sender: To server: pG, [15:40:34]CommunicateWithHost lk.salyk.kg:30040 [15:40:34]ConnectInit lk.salyk.kg [15:40:35]Connected sock=10 [15:40: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 55 CC 07 01 33 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 73 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 72 E7 1E 32 36 BC B9 F0 90 50 CC 84 32 E3 [15:40: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 CC 35 47 00 00 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 97 01 00 F4 03 04 00 F1 96 76 66 B6 04 01 00 00 EA 2B E6 9C 40 B3 0C 45 [15:40:35]CommunicateWithHost err = 0 [15:40:35]CheckOFDResponse [15:40:35]1017 (14) - 77093643461234 [15:40:35]1041 (16) - 0000000000875093 [15:40:35]1040 (4) - 104421 [15:40:35]1012 (4) - 22.06.2024 09:18 [15:40:35]1206 (1) - 0 [15:40:35]OFD Sender: Remove packet 104421 [15:40:35]ProducePacketName [15:40:35]name=ofd_packets/00104421 [15:40:35]NVStorageDeleteData [15:40:35]Write to MH i2c: 01 00 00 3E 20 5E [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 3E 20 00 00 00 00 00 E1 0C 52 [15:40:35]RasterBufferAndPrint [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]written 0, free lines is 3303 [15:40:35]MH_Cut [15:40:35]Write to MH i2c: D1 01 00 45 20 01 37 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 45 20 00 36 [15:40:35]Write to MH i2c: 01 00 00 46 20 66 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]OFD Sender: No OFD packet to send [15:40:36]*** Cut start [15:40:36]*** Partial cut [15:40:36]*** CUTSNS_PIN = 1 [15:40:36]*** CUTSNS_PIN = 0 [15:40:36]*** Brake cut motor [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]*** Stop cut motor [15:40:36]*** Cut end [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 46 20 00 00 00 00 00 FF 0F 7B [15:40:36]process_action close_receipt done [15:40:36]requested_data is exist [15:40:36]produce_requested_data [15:40:36]requested_item fm.sn is exist - process it [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 11 00 00 [15:40:36]Write to MH i2c: E2 08 00 47 20 80 11 00 00 00 00 00 00 E1 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 47 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [15:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:40:36]wFMCommunicate OK [15:40:36]requested_item fd.num is exist - process it [15:40:36]SAM_PROTO_GetFieldsCounters [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 00 00 [15:40:36]Write to MH i2c: E2 08 00 48 20 80 13 00 00 00 00 00 00 E4 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 48 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 BB [15:40: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 E5 97 01 00 0E 04 04 00 64 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 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetFieldsCounters done [15:40:36]requested_item shift.num is exist - process it [15:40:36]requested_item shift.opened is exist - process it [15:40:36]req_shift_opened [15:40:36]FM_GetShiftState [15:40:36]SAM_PROTO_GetShiftState [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 01 00 [15:40:36]Write to MH i2c: E2 08 00 49 20 80 13 01 00 00 00 00 00 E6 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 49 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D8 [15:40:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetShiftState done [15:40:36]FM_GetShiftState done [15:40:36]req_shift_opened done [15:40:36]requested_item shift.open_date is exist - process it [15:40:36]req_shift_open_date [15:40:36]req_shift_open_date done [15:40:36]produce_requested_data done [15:40:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104421,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:40:36]process_action_free close_receipt [15:40:36]json_value_free [15:40:36]json_value_free done [15:40:36]process_json_proto returns [15:40:36]Send response to host [15:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104421,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:40:36]free response buf [15:40:36]execute_script done [15:40:36]execute_script returns [15:40:36]free content buf [15:40:36]Sock 9.Close socket [15:40:36]Sock 9.Thread stoped [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:49]accept exits with 7 [15:40:49]New connection [15:40:49]New thread 3066592612 created [15:40:49]Thread 3066449252 joined [15:40:49]Waiting for new connection... [15:40:49] Sock 7.Parse request [15:40:49]Sock 7.Check first char [15:40:49]Sock 7.First char is OK [15:40:49]request: POST /json_proto HTTP/1.0 [15:40:49]Method: POST [15:40:49]URL: /json_proto [15:40:49]Method is POST - this is cgi request [15:40:49]url: /json_proto [15:40:49]query_string will be loaded in cgi processing [15:40:49]execute_cgi json_proto POST (null) [15:40:49]execute_cgi path=json_proto method=POST [15:40:49]POST find Content-Length [15:40:49]Host: 172.17.38.133:8080 [15:40:49]Content-Length: 682 [15:40:49]Content-Type: application/json [15:40:49] [15:40:49]POST finish read [15:40:49]Found Content-Length = 682 [15:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673979", "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" : 59.090, "sum" : 3923.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3923.00, "payments": [ { "type": 0, "sum" : 3923.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:49]execute_script... [15:40: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)673979", "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" : 59.090, "sum" : 3923.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3923.00, "payments": [ { "type": 0, "sum" : 3923.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:49]POST & json_proto [15:40:49]process_json_proto [15:40:49]json parsed OK: [15:40:49]protocol is kg_v1.0 [15:40:49]action value=close_receipt [15:40:49]process_action close_receipt [15:40:49]cmd_close_receipt [15:40:49]MH_GetDate [15:40:49]Write to MH i2c: F0 00 00 4A 20 59 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: F0 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: F0 09 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: F0 09 00 4A 20 00 83 F0 76 66 BD 8F 7C 64 DD [15:40:49]GetLastDocTimeStamp 1719070835 [15:40:49]current date 1719070851 [15:40:49]FM_GetShiftState [15:40:49]SAM_PROTO_GetShiftState [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 13 01 00 [15:40:49]Write to MH i2c: E2 08 00 4B 20 80 13 01 00 00 00 00 00 E8 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 0E 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 0E 00 4B 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DA [15:40:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:49]wFMCommunicate OK [15:40:49]SAM_PROTO_GetShiftState done [15:40:49]FM_GetShiftState done [15:40:49]opened in 1719016176 [15:40:49]opened+sec_in_day 1719102576 [15:40:49]quantity*price = 392357 [15:40:49]sum+1 = 392359 [15:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 3923.00 Внесено: 5000.00 СДАЧА: 1077.00 НСП 1% : 34.72 НДС 12% : 416.66 Наличными: 3923.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 155 22.06.2024 15:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104422 ФПД: 145286599575467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154051&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104422&fm=145286599575467&tin=02508201610067®Number=0000000000092785&sum=392300 [15:40:50]StoreToDocumentArchive [15:40:50]shift 356 fd 104422 [15:40:50]save to /storage/0356/doc_00104422 [15:40:50]save last doc name /storage/0356/doc_00104422 to /storage/kkm_last_doc_name [15:40:50]save OK [15:40:50]Clear old archive folders... [15:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:50]tlvbuf is 01021DE0 [15:40:50]SAM_PROTO_ClearQueue [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 09 00 00 [15:40:50]Write to MH i2c: E2 08 00 58 20 80 09 00 00 00 00 00 00 EA [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [15:40:50]RAPDU: 90 00 [15:40:50]wFMCommunicate OK [15:40:50]SAM_PROTO_ClearQueue done [15:40:50]KKMCreateOFDPacket [15:40:50]OFDProtocolAddRootSTLVToBuf [15:40:50]FM_MakeSignedData [15:40:50]FM_MakeSignedData [15:40:50]SAM_PROTO_SignData [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 0D 01 02 [15:40:50]Write to MH i2c: E2 08 00 59 20 80 0D 01 02 00 00 00 00 F2 [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:51]Read from MH i2c: E2 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 59 20 00 90 00 ED [15:40:51]RAPDU: 90 00 [15:40:51]wFMCommunicate OK [15:40:51]wFMCommunicate request_size=255 [15:40:51]MH_SAM_APDU [15:40: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 D2 E6 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 FC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 A2 00 00 00 00 07 04 06 00 6C FC 05 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 83 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 [15:40:51]Write to MH i2c: E2 02 01 5A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 E6 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 FC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 A2 00 00 00 00 07 04 06 00 6C FC 05 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 83 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 00 00 96 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:51]Read from MH i2c: E2 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 5A 20 00 90 00 EE [15:40:51]RAPDU: 90 00 [15:40:51]wFMCommunicate OK [15:40:51]wFMCommunicate request_size=10 [15:40:51]MH_SAM_APDU [15:40:51]CAPDU: 80 0D 02 02 05 23 2C 28 87 AB [15:40:51]Write to MH i2c: E2 0D 00 5B 20 80 0D 02 02 05 00 23 2C 28 87 AB 00 00 A8 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:51]Read from MH i2c: E2 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [15:40:51]RAPDU: 90 00 [15:40:51]wFMCommunicate OK [15:40:51]wFMCommunicate request_size=4 [15:40:51]MH_SAM_APDU [15:40:51]CAPDU: 80 0D 03 02 [15:40:51]Write to MH i2c: E2 08 00 5C 20 80 0D 03 02 00 00 00 00 F7 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:51]Read from MH i2c: E2 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 0B 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 0B 00 5C 20 00 44 28 3C B3 0D AF BB 17 90 00 E1 [15:40:51]RAPDU: 44 28 3C B3 0D AF BB 17 90 00 [15:40:51]wFMCommunicate OK [15:40:51]SAM_PROTO_SignData done [15:40:51]FM_MakeSignedData done [15:40:51]CreateOFDProtocolMessage [15:40:51]wFMCommunicate request_size=4 [15:40:51]MH_SAM_APDU [15:40:51]CAPDU: 80 11 00 00 [15:40:51]Write to MH i2c: E2 08 00 5D 20 80 11 00 00 00 00 00 00 F7 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:51]Read from MH i2c: E2 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 17 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: E2 17 00 5D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [15:40: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:40:51]wFMCommunicate OK [15:40:51]CreateOFDProtocolMessage done [15:40:51]OFDSenderStorePacket 104422 [15:40:51]StoreOFDPacket docnum=104422 [15:40: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 51 E6 07 01 CE 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 D2 E6 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 FC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 A2 00 00 00 00 07 04 06 00 6C FC 05 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 83 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 23 2C 28 87 AB 44 28 3C B3 0D AF BB 17 [15:40:51]CheckFolder [15:40:51]dirname=/storage/ofd_packets [15:40:51]CheckFolder done [15:40:51]ProducePacketName [15:40:51]name=ofd_packets/00104422 [15:40:51]NVStorageSaveData ofd_packets/00104422 [15:40:51]File name is /storage/ofd_packets/00104422 [15:40:51]Write 301 bytes [15:40:51]NVStorageSaveData done [15:40:51]OFDSenderStorePacket done [15:40:51]KKMCreateOFDPacket done [15:40:51]NVStorageSaveData kkm_last_timestamp [15:40:51]File name is /storage/kkm_last_timestamp [15:40:51]Write 4 bytes [15:40:51]NVStorageSaveData done [15:40:51]ExternCall_PrintAddStr [15:40:51]wPrintStart [15:40:51]Write to MH i2c: 01 00 00 5E 20 7E [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 07 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 07 00 5E 20 00 00 00 00 00 FF 0F 93 [15:40:51]RasterBufferAndPrint [15:40:51]line Счет N : (1)673979 [15:40:51]line ИНН: 02508201610067 [15:40:51]line Контрольно-Кассовый Чек [15:40:51]line ПРОДАЖА [15:40:51]line ТРК (МРК, ГНК) : 32 [15:40:51]line Товар: 2710124130 [15:40:51]line Аи-92-К-5 [15:40:51]line 59.090 * 66.40 [15:40:51]line = 3923.58 [15:40:51]line НДС 12% НСП 1% [15:40:51]line > о реализуемом товаре [15:40:51]line ОКРУГЛЕНИЕ: -0.58 [15:40:51]line ИТОГО: 3923.00 [15:40:51]line Внесено: 5000.00 [15:40:51]line СДАЧА: 1077.00 [15:40:51]line НСП 1% : 34.72 [15:40:51]line НДС 12% : 416.66 [15:40:51]line Наличными: 3923.00 [15:40:51]line Безнал.: 0.00 [15:40:51]line Место: АЗС № 120 "Партнер Нефть" [15:40:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:40:51]line СНО: Общий режим [15:40:51]line Чек 155 22.06.2024 15:40 [15:40:51]line Смена: 356 ФФД: 1.0 [15:40:51]line ЗНМ: 0300000164 [15:40:51]line РНМ: 0000000000092785 [15:40:51]line Версия ККМ: 001 [15:40:51]line ФМ: 0000000000875093 [15:40:51]line ФД: 104422 [15:40:51]line ФПД: 145286599575467 [15:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154051&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104422&fm=145286599575467&tin=02508201610067®Number=0000000000092785&sum=392300 [15:40:51]OFD Sender: Processing packet 104422 [packets to send 17, broken 16] [15:40:51]ProducePacketName [15:40:51]name=ofd_packets/00104422 [15:40:51]OFD Sender: To server: pG, [15:40:51]CommunicateWithHost lk.salyk.kg:30040 [15:40:51]ConnectInit lk.salyk.kg [15:40:51]written 0, free lines is 4095 [15:40:51]Connected sock=10 [15:40: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 51 E6 07 01 CE 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 D2 E6 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 FC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 A2 00 00 00 00 07 04 06 00 6C FC 05 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 83 F0 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 84 23 2C 28 87 AB 44 28 3C B3 0D AF BB 17 [15:40: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 A3 AC 47 00 A8 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 E6 97 01 00 F4 03 04 00 02 97 76 66 B6 04 01 00 00 83 6A D4 6A 23 F6 BE E9 [15:40:52]CommunicateWithHost err = 0 [15:40:52]CheckOFDResponse [15:40:52]1017 (14) - 77093643461234 [15:40:52]1041 (16) - 0000000000875093 [15:40:52]1040 (4) - 104422 [15:40:52]1012 (4) - 22.06.2024 09:18 [15:40:52]1206 (1) - 0 [15:40:52]OFD Sender: Remove packet 104422 [15:40:52]ProducePacketName [15:40:52]name=ofd_packets/00104422 [15:40:52]NVStorageDeleteData [15:40:52]Write to MH i2c: 01 00 00 89 20 A9 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: 01 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: 01 07 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: 01 07 00 89 20 00 00 00 00 00 EE 0C AA [15:40:52]RasterBufferAndPrint [15:40:52]line [15:40:52]line [15:40:52]line [15:40:52]line [15:40:52]line [15:40:52]written 0, free lines is 3316 [15:40:52]MH_Cut [15:40:52]Write to MH i2c: D1 01 00 90 20 01 82 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: D1 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: D1 01 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: D1 01 00 90 20 00 81 [15:40:52]Write to MH i2c: 01 00 00 91 20 B1 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]OFD Sender: No OFD packet to send [15:40:53]*** Cut start [15:40:53]*** Partial cut [15:40:53]*** CUTSNS_PIN = 1 [15:40:53]*** CUTSNS_PIN = 0 [15:40:53]*** Brake cut motor [15:40:53]Read from MH i2c: 01 [15:40:53]MH_I2C_Read... [15:40:53]*** Stop cut motor [15:40:53]*** Cut end [15:40:53]Read from MH i2c: 01 07 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: 01 07 00 91 20 00 00 00 00 00 FF 0F C6 [15:40:53]process_action close_receipt done [15:40:53]requested_data is exist [15:40:53]produce_requested_data [15:40:53]requested_item fm.sn is exist - process it [15:40:53]wFMCommunicate request_size=4 [15:40:53]MH_SAM_APDU [15:40:53]CAPDU: 80 11 00 00 [15:40:53]Write to MH i2c: E2 08 00 92 20 80 11 00 00 00 00 00 00 2C [15:40:53]Write i2c OK [15:40:53]MH_I2C_Read... [15:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:53]Read from MH i2c: E2 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 17 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 17 00 92 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [15:40: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:40:53]wFMCommunicate OK [15:40:53]requested_item fd.num is exist - process it [15:40:53]SAM_PROTO_GetFieldsCounters [15:40:53]wFMCommunicate request_size=4 [15:40:53]MH_SAM_APDU [15:40:53]CAPDU: 80 13 00 00 [15:40:53]Write to MH i2c: E2 08 00 93 20 80 13 00 00 00 00 00 00 2F [15:40:53]Write i2c OK [15:40:53]MH_I2C_Read... [15:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:53]Read from MH i2c: E2 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 62 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 62 00 93 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 0A [15:40: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 E6 97 01 00 0E 04 04 00 64 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 [15:40:53]wFMCommunicate OK [15:40:53]SAM_PROTO_GetFieldsCounters done [15:40:53]requested_item shift.num is exist - process it [15:40:53]requested_item shift.opened is exist - process it [15:40:53]req_shift_opened [15:40:53]FM_GetShiftState [15:40:53]SAM_PROTO_GetShiftState [15:40:53]wFMCommunicate request_size=4 [15:40:53]MH_SAM_APDU [15:40:53]CAPDU: 80 13 01 00 [15:40:53]Write to MH i2c: E2 08 00 94 20 80 13 01 00 00 00 00 00 31 [15:40:53]Write i2c OK [15:40:53]MH_I2C_Read... [15:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:53]Read from MH i2c: E2 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 0E 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 0E 00 94 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 23 [15:40:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:40:53]wFMCommunicate OK [15:40:53]SAM_PROTO_GetShiftState done [15:40:53]FM_GetShiftState done [15:40:53]req_shift_opened done [15:40:53]requested_item shift.open_date is exist - process it [15:40:53]req_shift_open_date [15:40:53]req_shift_open_date done [15:40:53]produce_requested_data done [15:40:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104422,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:40:53]process_action_free close_receipt [15:40:53]json_value_free [15:40:53]json_value_free done [15:40:53]process_json_proto returns [15:40:53]Send response to host [15:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104422,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:40:53]free response buf [15:40:53]execute_script done [15:40:53]execute_script returns [15:40:53]free content buf [15:40:53]Sock 7.Close socket [15:40:53]Sock 7.Thread stoped [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:00]accept exits with 9 [15:45:00]New connection [15:45:00]New thread 3066449252 created [15:45:00]Thread 3066592612 joined [15:45:00]Waiting for new connection... [15:45:00] Sock 9.Parse request [15:45:00]Sock 9.Check first char [15:45:00]Sock 9.First char is OK [15:45:00]request: POST /json_proto HTTP/1.0 [15:45:00]Method: POST [15:45:00]URL: /json_proto [15:45:00]Method is POST - this is cgi request [15:45:00]url: /json_proto [15:45:00]query_string will be loaded in cgi processing [15:45:00]execute_cgi json_proto POST (null) [15:45:00]execute_cgi path=json_proto method=POST [15:45:00]POST find Content-Length [15:45:00]Host: 172.17.38.133:8080 [15:45:00]Content-Length: 1212 [15:45:00]Content-Type: application/json [15:45:00] [15:45:00]POST finish read [15:45:00]Found Content-Length = 1212 [15:45: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673982\u000A22.06.2024 15:22\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 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A76499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:00]execute_script... [15:45: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673982\u000A22.06.2024 15:22\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 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A76499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:00]POST & json_proto [15:45:00]process_json_proto [15:45:00]json parsed OK: [15:45:00]protocol is kg_v1.0 [15:45:00]action value=print_text [15:45:00]process_action print_text [15:45:00]cmd_print_text [15:45:00]ExternCall_PrintAddStr [15:45:00]wPrintStart [15:45:00]Write to MH i2c: 01 00 00 95 20 B5 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 95 20 00 00 00 00 00 FF 0F CA [15:45:00]RasterBufferAndPrint [15:45:00]line *****ТОВАРНЫЙ ЧЕК***** [15:45:00]line АЗС 120 [15:45:00]line Партнер нефть [15:45:00]line 02508201610067 [15:45:00]line Кассир : Байбугуева Г. [15:45:00]line Счет N : (1)673982 [15:45:00]line 22.06.2024 15:22 [15:45:00]line ПРОДАЖА [15:45:00]line ТРК (МРК, ГНК): 11 [15:45:00]line Вид ГСМ : 2710194210 [15:45:00]line ДТ(л)-К-5 [15:45:00]line 68.590 x 72.90 [15:45:00]line ИТОГ: 5000.21 [15:45:00]line Тип оплаты: Талоны: Топливная Карта [15:45:00]line 76499 [15:45:00]line ______________________ [15:45:00]line (подпись) [15:45:00]written 0, free lines is 4095 [15:45:00]Write to MH i2c: 01 00 00 A9 20 C9 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: 01 07 00 A9 20 00 00 00 00 00 13 0E F1 [15:45:00]RasterBufferAndPrint [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]line [15:45:00]written 0, free lines is 3605 [15:45:00]MH_Cut [15:45:00]Write to MH i2c: D1 01 00 B0 20 01 A2 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: D1 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: D1 01 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: D1 01 00 B0 20 00 A1 [15:45:00]Write to MH i2c: 01 00 00 B1 20 D1 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:01]*** Cut start [15:45:01]*** Partial cut [15:45:01]*** CUTSNS_PIN = 1 [15:45:01]*** CUTSNS_PIN = 0 [15:45:01]*** Brake cut motor [15:45:02]Read from MH i2c: 01 [15:45:02]MH_I2C_Read... [15:45:02]*** Stop cut motor [15:45:02]*** Cut end [15:45:02]Read from MH i2c: 01 07 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 FF 0F E6 [15:45:02]process_action print_text done [15:45:02]requested_data is exist [15:45:02]produce_requested_data [15:45:02]requested_item fm.sn is exist - process it [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 11 00 00 [15:45:02]Write to MH i2c: E2 08 00 B2 20 80 11 00 00 00 00 00 00 4C [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 17 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 17 00 B2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [15: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 [15:45:02]wFMCommunicate OK [15:45:02]requested_item fd.num is exist - process it [15:45:02]SAM_PROTO_GetFieldsCounters [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 13 00 00 [15:45:02]Write to MH i2c: E2 08 00 B3 20 80 13 00 00 00 00 00 00 4F [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 62 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 62 00 B3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2A [15: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 E6 97 01 00 0E 04 04 00 64 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 [15:45:02]wFMCommunicate OK [15:45:02]SAM_PROTO_GetFieldsCounters done [15:45:02]requested_item shift.num is exist - process it [15:45:02]requested_item shift.opened is exist - process it [15:45:02]req_shift_opened [15:45:02]FM_GetShiftState [15:45:02]SAM_PROTO_GetShiftState [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 13 01 00 [15:45:02]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0E 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 43 [15:45:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:45:02]wFMCommunicate OK [15:45:02]SAM_PROTO_GetShiftState done [15:45:02]FM_GetShiftState done [15:45:02]req_shift_opened done [15:45:02]requested_item shift.open_date is exist - process it [15:45:02]req_shift_open_date [15:45:02]req_shift_open_date done [15:45:02]produce_requested_data done [15:45:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104422,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:45:02]process_action_free print_text [15:45:02]json_value_free [15:45:02]json_value_free done [15:45:02]process_json_proto returns [15:45:02]Send response to host [15:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104422,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:45:02]free response buf [15:45:02]execute_script done [15:45:02]execute_script returns [15:45:02]free content buf [15:45:02]Sock 9.Close socket [15:45:02]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:50]accept exits with 7 [15:47:50]New connection [15:47:50]New thread 3066592612 created [15:47:50]Thread 3066449252 joined [15:47:50]Waiting for new connection... [15:47:50] Sock 7.Parse request [15:47:50]Sock 7.Check first char [15:47:50]Sock 7.First char is OK [15:47:50]request: POST /json_proto HTTP/1.0 [15:47:50]Method: POST [15:47:50]URL: /json_proto [15:47:50]Method is POST - this is cgi request [15:47:50]url: /json_proto [15:47:50]query_string will be loaded in cgi processing [15:47:50]execute_cgi json_proto POST (null) [15:47:50]execute_cgi path=json_proto method=POST [15:47:50]POST find Content-Length [15:47:50]Host: 172.17.38.133:8080 [15:47:50]Content-Length: 827 [15:47:50]Content-Type: application/json [15:47:50] [15:47:50]POST finish read [15:47:50]Found Content-Length = 827 [15:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673981", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:50]execute_script... [15:47:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673981", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:50]POST & json_proto [15:47:50]process_json_proto [15:47:50]json parsed OK: [15:47:50]protocol is kg_v1.0 [15:47:50]action value=close_receipt [15:47:50]process_action close_receipt [15:47:50]cmd_close_receipt [15:47:50]MH_GetDate [15:47:50]Write to MH i2c: F0 00 00 B5 20 C4 [15:47:50]Write i2c OK [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 09 00 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 09 00 B5 20 00 28 F2 76 66 BD 8F 7C 64 EF [15:47:50]GetLastDocTimeStamp 1719070851 [15:47:50]current date 1719071272 [15:47:50]FM_GetShiftState [15:47:50]SAM_PROTO_GetShiftState [15:47:50]wFMCommunicate request_size=4 [15:47:50]MH_SAM_APDU [15:47:50]CAPDU: 80 13 01 00 [15:47:50]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [15:47:50]Write i2c OK [15:47:50]MH_I2C_Read... [15:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:50]Read from MH i2c: E2 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: E2 0E 00 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 45 [15:47:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:47:50]wFMCommunicate OK [15:47:50]SAM_PROTO_GetShiftState done [15:47:50]FM_GetShiftState done [15:47:50]opened in 1719016176 [15:47:50]opened+sec_in_day 1719102576 [15:47:50]quantity*price = 1000042 [15:47:50]sum+1 = 1000043 [15:47:50]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 СНО: Общий режим Чек 156 22.06.2024 15:47 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104423 ФПД: 205935693671709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154752&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104423&fm=205935693671709&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:47:51]StoreToDocumentArchive [15:47:51]shift 356 fd 104423 [15:47:51]save to /storage/0356/doc_00104423 [15:47:51]save last doc name /storage/0356/doc_00104423 to /storage/kkm_last_doc_name [15:47:51]save OK [15:47:51]Clear old archive folders... [15:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:47:51]tlvbuf is B6D50010 [15:47:51]SAM_PROTO_ClearQueue [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 09 00 00 [15:47:51]Write to MH i2c: E2 08 00 C3 20 80 09 00 00 00 00 00 00 55 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [15:47:51]RAPDU: 90 00 [15:47:51]wFMCommunicate OK [15:47:51]SAM_PROTO_ClearQueue done [15:47:51]KKMCreateOFDPacket [15:47:51]OFDProtocolAddRootSTLVToBuf [15:47:51]FM_MakeSignedData [15:47:51]FM_MakeSignedData [15:47:51]SAM_PROTO_SignData [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 0D 01 02 [15:47:51]Write to MH i2c: E2 08 00 C4 20 80 0D 01 02 00 00 00 00 5D [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [15:47:52]RAPDU: 90 00 [15:47:52]wFMCommunicate OK [15:47:52]wFMCommunicate request_size=255 [15:47:52]MH_SAM_APDU [15:47: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 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 9C 00 00 00 F4 03 04 00 28 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [15:47:52]Write to MH i2c: E2 02 01 C5 20 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 9C 00 00 00 F4 03 04 00 28 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 04 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [15:47:52]RAPDU: 90 00 [15:47:52]wFMCommunicate OK [15:47:52]wFMCommunicate request_size=11 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 0D 02 02 06 BB 4C 23 DE 2D 1D [15:47:52]Write to MH i2c: E2 0E 00 C6 20 80 0D 02 02 06 00 BB 4C 23 DE 2D 1D 00 00 BE [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [15:47:52]RAPDU: 90 00 [15:47:52]wFMCommunicate OK [15:47:52]wFMCommunicate request_size=4 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 0D 03 02 [15:47:52]Write to MH i2c: E2 08 00 C7 20 80 0D 03 02 00 00 00 00 62 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0B 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0B 00 C7 20 00 EE 51 75 14 92 68 63 D8 90 00 60 [15:47:52]RAPDU: EE 51 75 14 92 68 63 D8 90 00 [15:47:52]wFMCommunicate OK [15:47:52]SAM_PROTO_SignData done [15:47:52]FM_MakeSignedData done [15:47:52]CreateOFDProtocolMessage [15:47:52]wFMCommunicate request_size=4 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 11 00 00 [15:47:52]Write to MH i2c: E2 08 00 C8 20 80 11 00 00 00 00 00 00 62 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 17 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 17 00 C8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [15: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 [15:47:52]wFMCommunicate OK [15:47:52]CreateOFDProtocolMessage done [15:47:52]OFDSenderStorePacket 104423 [15:47:52]StoreOFDPacket docnum=104423 [15:47: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 10 01 00 00 19 99 08 01 ED 61 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 9C 00 00 00 F4 03 04 00 28 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BB 4C 23 DE 2D 1D EE 51 75 14 92 68 63 D8 [15:47:52]CheckFolder [15:47:52]dirname=/storage/ofd_packets [15:47:52]CheckFolder done [15:47:52]ProducePacketName [15:47:52]name=ofd_packets/00104423 [15:47:52]NVStorageSaveData ofd_packets/00104423 [15:47:52]File name is /storage/ofd_packets/00104423 [15:47:52]Write 302 bytes [15:47:52]NVStorageSaveData done [15:47:52]OFDSenderStorePacket done [15:47:52]KKMCreateOFDPacket done [15:47:52]NVStorageSaveData kkm_last_timestamp [15:47:52]File name is /storage/kkm_last_timestamp [15:47:52]Write 4 bytes [15:47:52]NVStorageSaveData done [15:47:52]ExternCall_PrintAddStr [15:47:52]wPrintStart [15:47:52]Write to MH i2c: 01 00 00 C9 20 E9 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 C9 20 00 00 00 00 00 FF 0F FE [15:47:52]RasterBufferAndPrint [15:47:52]line Счет N : (1)673981 [15:47:52]line ИНН: 02508201610067 [15:47:52]line Контрольно-Кассовый Чек [15:47:52]line ПРОДАЖА [15:47:52]line ТРК (МРК, ГНК) : 21 [15:47:52]line Товар: 2710194210 [15:47:52]line ДТ(л)-К-5 [15:47:52]line 137.180 * 72.90 [15:47:52]line = 10000.42 [15:47:52]line НДС 12% НСП 1% [15:47:52]line > о реализуемом товаре [15:47:52]line ИТОГО: 10000.42 [15:47:52]line НСП 1% : 88.50 [15:47:52]line НДС 12% : 1061.99 [15:47:52]line Наличными: 0.00 [15:47:52]line Безнал.: 10000.42 [15:47:52]line Место: АЗС № 120 "Партнер Нефть" [15:47:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:47:52]line СНО: Общий режим [15:47:52]line Чек 156 22.06.2024 15:47 [15:47:52]line Смена: 356 ФФД: 1.0 [15:47:52]line ЗНМ: 0300000164 [15:47:52]line РНМ: 0000000000092785 [15:47:52]line Версия ККМ: 001 [15:47:52]line Платежная система: Бакай Банк [15:47:52]line ФМ: 0000000000875093 [15:47:52]line ФД: 104423 [15:47:52]line ФПД: 205935693671709 [15:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154752&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104423&fm=205935693671709&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:47:52]OFD Sender: Processing packet 104423 [packets to send 17, broken 16] [15:47:52]ProducePacketName [15:47:52]name=ofd_packets/00104423 [15:47:52]OFD Sender: To server: pG, [15:47:52]CommunicateWithHost lk.salyk.kg:30040 [15:47:52]ConnectInit lk.salyk.kg [15:47:52]written 0, free lines is 4095 [15:47:52]Connected sock=10 [15:47: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 10 01 00 00 19 99 08 01 ED 61 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 9C 00 00 00 F4 03 04 00 28 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BB 4C 23 DE 2D 1D EE 51 75 14 92 68 63 D8 [15:47: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 CF F3 47 00 99 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 97 01 00 F4 03 04 00 A7 98 76 66 B6 04 01 00 00 B6 52 4C AB 8B DF 6D 47 [15:47:53]CommunicateWithHost err = 0 [15:47:53]CheckOFDResponse [15:47:53]1017 (14) - 77093643461234 [15:47:53]1041 (16) - 0000000000875093 [15:47:53]1040 (4) - 104423 [15:47:53]1012 (4) - 22.06.2024 09:25 [15:47:53]1206 (1) - 0 [15:47:53]OFD Sender: Remove packet 104423 [15:47:53]ProducePacketName [15:47:53]name=ofd_packets/00104423 [15:47:53]NVStorageDeleteData [15:47:53]Write to MH i2c: 01 00 00 F3 20 13 [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: 01 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: 01 07 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 FA 0C 20 [15:47:53]RasterBufferAndPrint [15:47:53]line [15:47:53]line [15:47:53]line [15:47:53]line [15:47:53]line [15:47:53]written 0, free lines is 3328 [15:47:53]MH_Cut [15:47:53]Write to MH i2c: D1 01 00 FA 20 01 EC [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: D1 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: D1 01 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: D1 01 00 FA 20 00 EB [15:47:53]Write to MH i2c: 01 00 00 FB 20 1B [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]OFD Sender: No OFD packet to send [15:47:54]*** Cut start [15:47:54]*** Partial cut [15:47:54]*** CUTSNS_PIN = 1 [15:47:54]*** CUTSNS_PIN = 0 [15:47:54]*** Brake cut motor [15:47:54]Read from MH i2c: 01 [15:47:54]MH_I2C_Read... [15:47:54]*** Stop cut motor [15:47:54]*** Cut end [15:47:54]Read from MH i2c: 01 07 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 FB 20 00 00 00 00 00 FF 0F 30 [15:47:54]process_action close_receipt done [15:47:54]requested_data is exist [15:47:54]produce_requested_data [15:47:54]requested_item fm.sn is exist - process it [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 11 00 00 [15:47:54]Write to MH i2c: E2 08 00 FC 20 80 11 00 00 00 00 00 00 96 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 FC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [15:47: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:47:54]wFMCommunicate OK [15:47:54]requested_item fd.num is exist - process it [15:47:54]SAM_PROTO_GetFieldsCounters [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 13 00 00 [15:47:54]Write to MH i2c: E2 08 00 FD 20 80 13 00 00 00 00 00 00 99 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 62 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 62 00 FD 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 78 [15:47: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 E7 97 01 00 0E 04 04 00 64 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 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_GetFieldsCounters done [15:47:54]requested_item shift.num is exist - process it [15:47:54]requested_item shift.opened is exist - process it [15:47:54]req_shift_opened [15:47:54]FM_GetShiftState [15:47:54]SAM_PROTO_GetShiftState [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 13 01 00 [15:47:54]Write to MH i2c: E2 08 00 FE 20 80 13 01 00 00 00 00 00 9B [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 FE 20 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8D [15:47:54]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_GetShiftState done [15:47:54]FM_GetShiftState done [15:47:54]req_shift_opened done [15:47:54]requested_item shift.open_date is exist - process it [15:47:54]req_shift_open_date [15:47:54]req_shift_open_date done [15:47:54]produce_requested_data done [15:47:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104423,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:47:54]process_action_free close_receipt [15:47:54]json_value_free [15:47:54]json_value_free done [15:47:54]process_json_proto returns [15:47:54]Send response to host [15:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104423,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:47:54]free response buf [15:47:54]execute_script done [15:47:54]execute_script returns [15:47:54]free content buf [15:47:54]Sock 7.Close socket [15:47:54]Sock 7.Thread stoped [15:47:55]accept exits with 9 [15:47:55]New connection [15:47:55]New thread 3066449252 created [15:47:55]Thread 3066592612 joined [15:47:55]Waiting for new connection... [15:47:55] Sock 9.Parse request [15:47:55]Sock 9.Check first char [15:47:55]Sock 9.First char is OK [15:47:55]request: POST /json_proto HTTP/1.0 [15:47:55]Method: POST [15:47:55]URL: /json_proto [15:47:55]Method is POST - this is cgi request [15:47:55]url: /json_proto [15:47:55]query_string will be loaded in cgi processing [15:47:55]execute_cgi json_proto POST (null) [15:47:55]execute_cgi path=json_proto method=POST [15:47:55]POST find Content-Length [15:47:55]Host: 172.17.38.133:8080 [15:47:55]Content-Length: 677 [15:47:55]Content-Type: application/json [15:47:55] [15:47:55]POST finish read [15:47:55]Found Content-Length = 677 [15:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673985", "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.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:55]execute_script... [15:47: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)673985", "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.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:55]POST & json_proto [15:47:55]process_json_proto [15:47:55]json parsed OK: [15:47:55]protocol is kg_v1.0 [15:47:55]action value=close_receipt [15:47:55]process_action close_receipt [15:47:55]cmd_close_receipt [15:47:55]MH_GetDate [15:47:55]Write to MH i2c: F0 00 00 FF 20 0E [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: F0 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: F0 09 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: F0 09 00 FF 20 00 2D F2 76 66 BD 8F 7C 64 3E [15:47:55]GetLastDocTimeStamp 1719071272 [15:47:55]current date 1719071277 [15:47:55]FM_GetShiftState [15:47:55]SAM_PROTO_GetShiftState [15:47:55]wFMCommunicate request_size=4 [15:47:55]MH_SAM_APDU [15:47:55]CAPDU: 80 13 01 00 [15:47:55]Write to MH i2c: E2 08 00 00 21 80 13 01 00 00 00 00 00 9E [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 0E 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 0E 00 00 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 90 [15:47:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:47:55]wFMCommunicate OK [15:47:55]SAM_PROTO_GetShiftState done [15:47:55]FM_GetShiftState done [15:47:55]opened in 1719016176 [15:47:55]opened+sec_in_day 1719102576 [15:47:55]quantity*price = 66001 [15:47:55]sum+1 = 66003 [15:47:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 157 22.06.2024 15:47 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104424 ФПД: 253074874315215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154757&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104424&fm=253074874315215&tin=02508201610067®Number=0000000000092785&sum=66000 [15:47:56]StoreToDocumentArchive [15:47:56]shift 356 fd 104424 [15:47:56]save to /storage/0356/doc_00104424 [15:47:56]save last doc name /storage/0356/doc_00104424 to /storage/kkm_last_doc_name [15:47:56]save OK [15:47:56]Clear old archive folders... [15:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:56]tlvbuf is 00FB6E40 [15:47:56]SAM_PROTO_ClearQueue [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 09 00 00 [15:47:56]Write to MH i2c: E2 08 00 0D 21 80 09 00 00 00 00 00 00 A0 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [15:47:56]RAPDU: 90 00 [15:47:56]wFMCommunicate OK [15:47:56]SAM_PROTO_ClearQueue done [15:47:56]KKMCreateOFDPacket [15:47:56]OFDProtocolAddRootSTLVToBuf [15:47:56]FM_MakeSignedData [15:47:56]FM_MakeSignedData [15:47:56]SAM_PROTO_SignData [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 0D 01 02 [15:47:56]Write to MH i2c: E2 08 00 0E 21 80 0D 01 02 00 00 00 00 A8 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [15:47:56]RAPDU: 90 00 [15:47:56]wFMCommunicate OK [15:47:56]wFMCommunicate request_size=255 [15:47:56]MH_SAM_APDU [15:47: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 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2D F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E6 [15:47:56]Write to MH i2c: E2 02 01 0F 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2D F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E6 00 00 5C [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]wFMCommunicate request_size=10 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 02 02 05 2B 95 FC 31 CF [15:47:57]Write to MH i2c: E2 0D 00 10 21 80 0D 02 02 05 00 2B 95 FC 31 CF 00 00 71 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 03 02 [15:47:57]Write to MH i2c: E2 08 00 11 21 80 0D 03 02 00 00 00 00 AD [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0B 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0B 00 11 21 00 9F 43 57 90 CD 7B 6F 9E 90 00 CC [15:47:57]RAPDU: 9F 43 57 90 CD 7B 6F 9E 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_SignData done [15:47:57]FM_MakeSignedData done [15:47:57]CreateOFDProtocolMessage [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 11 00 00 [15:47:57]Write to MH i2c: E2 08 00 12 21 80 11 00 00 00 00 00 00 AD [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 12 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [15:47: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:47:57]wFMCommunicate OK [15:47:57]CreateOFDProtocolMessage done [15:47:57]OFDSenderStorePacket 104424 [15:47:57]StoreOFDPacket docnum=104424 [15:47: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 85 D9 07 01 A8 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2D F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E6 2B 95 FC 31 CF 9F 43 57 90 CD 7B 6F 9E [15:47:57]CheckFolder [15:47:57]dirname=/storage/ofd_packets [15:47:57]CheckFolder done [15:47:57]ProducePacketName [15:47:57]name=ofd_packets/00104424 [15:47:57]NVStorageSaveData ofd_packets/00104424 [15:47:57]File name is /storage/ofd_packets/00104424 [15:47:57]Write 301 bytes [15:47:57]NVStorageSaveData done [15:47:57]OFDSenderStorePacket done [15:47:57]KKMCreateOFDPacket done [15:47:57]NVStorageSaveData kkm_last_timestamp [15:47:57]File name is /storage/kkm_last_timestamp [15:47:57]Write 4 bytes [15:47:57]NVStorageSaveData done [15:47:57]OFD Sender: Processing packet 104424 [packets to send 17, broken 16] [15:47:57]ProducePacketName [15:47:57]ExternCall_PrintAddStr [15:47:57]name=ofd_packets/00104424 [15:47:57]wPrintStart [15:47:57]OFD Sender: To server: pG, [15:47:57]CommunicateWithHost lk.salyk.kg:30040 [15:47:57]Write to MH i2c: ConnectInit lk.salyk.kg [15:47:57]01 00 00 13 21 34 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 FF 0F 49 [15:47:57]RasterBufferAndPrint [15:47:57]line Счет N : (1)673985 [15:47:57]line ИНН: 02508201610067 [15:47:57]line Контрольно-Кассовый Чек [15:47:57]line ПРОДАЖА [15:47:57]line ТРК (МРК, ГНК) : 32 [15:47:57]line Товар: 2710124130 [15:47:57]line Аи-92-К-5 [15:47:57]line 9.940 * 66.40 [15:47:57]line = 660.02 [15:47:57]line НДС 12% НСП 1% [15:47:57]line > о реализуемом товаре [15:47:57]line ОКРУГЛЕНИЕ: -0.02 [15:47:57]line ИТОГО: 660.00 [15:47:57]line Внесено: 660.00 [15:47:57]line СДАЧА: 0.00 [15:47:57]line НСП 1% : 5.84 [15:47:57]line НДС 12% : 70.09 [15:47:57]line Наличными: 660.00 [15:47:57]line Безнал.: 0.00 [15:47:57]line Место: АЗС № 120 "Партнер Нефть" [15:47:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:47:57]line СНО: Общий режим [15:47:57]line Чек 157 22.06.2024 15:47 [15:47:57]line Смена: 356 ФФД: 1.0 [15:47:57]line ЗНМ: 0300000164 [15:47:57]line РНМ: 0000000000092785 [15:47:57]line Версия ККМ: 001 [15:47:57]line ФМ: 0000000000875093 [15:47:57]line ФД: 104424 [15:47:57]line ФПД: 253074874315215 [15:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154757&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104424&fm=253074874315215&tin=02508201610067®Number=0000000000092785&sum=66000 [15:47:57]Connected sock=11 [15:47: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 85 D9 07 01 A8 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 written 0, free lines is 4095 [15:47:57]00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2D F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E6 2B 95 FC 31 CF 9F 43 57 90 CD 7B 6F 9E [15:47: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 3B 2F 47 00 9F 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 E8 97 01 00 F4 03 04 00 AC 98 76 66 B6 04 01 00 00 D8 BA 51 65 89 2A 26 11 [15:47:57]CommunicateWithHost err = 0 [15:47:57]CheckOFDResponse [15:47:57]1017 (14) - 77093643461234 [15:47:57]1041 (16) - 0000000000875093 [15:47:57]1040 (4) - 104424 [15:47:57]1012 (4) - 22.06.2024 09:26 [15:47:57]1206 (1) - 0 [15:47:57]OFD Sender: Remove packet 104424 [15:47:57]ProducePacketName [15:47:57]name=ofd_packets/00104424 [15:47:57]NVStorageDeleteData [15:47:58]Write to MH i2c: 01 00 00 3E 21 5F [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 3E 21 00 00 00 00 00 E8 0C 5A [15:47:58]RasterBufferAndPrint [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]written 0, free lines is 3319 [15:47:58]MH_Cut [15:47:58]Write to MH i2c: D1 01 00 45 21 01 38 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: D1 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: D1 01 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: D1 01 00 45 21 00 37 [15:47:58]Write to MH i2c: 01 00 00 46 21 67 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]OFD Sender: No OFD packet to send [15:47:58]*** Cut start [15:47:58]*** Partial cut [15:47:58]*** CUTSNS_PIN = 1 [15:47:58]*** CUTSNS_PIN = 0 [15:47:59]*** Brake cut motor [15:47:59]Read from MH i2c: 01 [15:47:59]MH_I2C_Read... [15:47:59]*** Stop cut motor [15:47:59]*** Cut end [15:47:59]Read from MH i2c: 01 07 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [15:47:59]process_action close_receipt done [15:47:59]requested_data is exist [15:47:59]produce_requested_data [15:47:59]requested_item fm.sn is exist - process it [15:47:59]wFMCommunicate request_size=4 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 11 00 00 [15:47:59]Write to MH i2c: E2 08 00 47 21 80 11 00 00 00 00 00 00 E2 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 17 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 17 00 47 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [15:47:59]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:59]wFMCommunicate OK [15:47:59]requested_item fd.num is exist - process it [15:47:59]SAM_PROTO_GetFieldsCounters [15:47:59]wFMCommunicate request_size=4 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 13 00 00 [15:47:59]Write to MH i2c: E2 08 00 48 21 80 13 00 00 00 00 00 00 E5 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 62 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 62 00 48 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C8 [15:47: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 E8 97 01 00 0E 04 04 00 64 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 [15:47:59]wFMCommunicate OK [15:47:59]SAM_PROTO_GetFieldsCounters done [15:47:59]requested_item shift.num is exist - process it [15:47:59]requested_item shift.opened is exist - process it [15:47:59]req_shift_opened [15:47:59]FM_GetShiftState [15:47:59]SAM_PROTO_GetShiftState [15:47:59]wFMCommunicate request_size=4 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 13 01 00 [15:47:59]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 0E 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D9 [15:47:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:47:59]wFMCommunicate OK [15:47:59]SAM_PROTO_GetShiftState done [15:47:59]FM_GetShiftState done [15:47:59]req_shift_opened done [15:47:59]requested_item shift.open_date is exist - process it [15:47:59]req_shift_open_date [15:47:59]req_shift_open_date done [15:47:59]produce_requested_data done [15:47:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104424,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:47:59]process_action_free close_receipt [15:47:59]json_value_free [15:47:59]json_value_free done [15:47:59]process_json_proto returns [15:47:59]Send response to host [15:47:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104424,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:47:59]free response buf [15:47:59]execute_script done [15:47:59]execute_script returns [15:47:59]free content buf [15:47:59]Sock 9.Close socket [15:47:59]Sock 9.Thread stoped [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:16]accept exits with 7 [15:49:16]New connection [15:49:16]New thread 3066592612 created [15:49:16]Thread 3066449252 joined [15:49:16]Waiting for new connection... [15:49:16] Sock 7.Parse request [15:49:16]Sock 7.Check first char [15:49:16]Sock 7.First char is OK [15:49:16]request: POST /json_proto HTTP/1.0 [15:49:16]Method: POST [15:49:16]URL: /json_proto [15:49:16]Method is POST - this is cgi request [15:49:16]url: /json_proto [15:49:16]query_string will be loaded in cgi processing [15:49:16]execute_cgi json_proto POST (null) [15:49:16]execute_cgi path=json_proto method=POST [15:49:16]POST find Content-Length [15:49:16]Host: 172.17.38.133:8080 [15:49:16]Content-Length: 824 [15:49:16]Content-Type: application/json [15:49:16] [15:49:16]POST finish read [15:49:16]Found Content-Length = 824 [15:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673984", "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 }]} ], "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" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:16]execute_script... [15:49:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673984", "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 }]} ], "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" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:16]POST & json_proto [15:49:16]process_json_proto [15:49:16]json parsed OK: [15:49:16]protocol is kg_v1.0 [15:49:16]action value=close_receipt [15:49:16]process_action close_receipt [15:49:16]cmd_close_receipt [15:49:16]MH_GetDate [15:49:16]Write to MH i2c: F0 00 00 4A 21 5A [15:49:16]Write i2c OK [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 09 00 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: F0 09 00 4A 21 00 7E F2 76 66 BD 8F 7C 64 DB [15:49:16]GetLastDocTimeStamp 1719071277 [15:49:16]current date 1719071358 [15:49:16]FM_GetShiftState [15:49:16]SAM_PROTO_GetShiftState [15:49:16]wFMCommunicate request_size=4 [15:49:16]MH_SAM_APDU [15:49:16]CAPDU: 80 13 01 00 [15:49:16]Write to MH i2c: E2 08 00 4B 21 80 13 01 00 00 00 00 00 E9 [15:49:16]Write i2c OK [15:49:16]MH_I2C_Read... [15:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:16]Read from MH i2c: E2 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: E2 0E 00 [15:49:16]MH_I2C_Read... [15:49:16]Read from MH i2c: E2 0E 00 4B 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DB [15:49:16]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:49:16]wFMCommunicate OK [15:49:16]SAM_PROTO_GetShiftState done [15:49:16]FM_GetShiftState done [15:49:16]opened in 1719016176 [15:49:16]opened+sec_in_day 1719102576 [15:49:16]quantity*price = 500021 [15:49:16]sum+1 = 500022 [15:49:16]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 СНО: Общий режим Чек 158 22.06.2024 15:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104425 ФПД: 40107156614796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154918&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104425&fm=40107156614796&tin=02508201610067®Number=0000000000092785&sum=500021 [15:49:17]StoreToDocumentArchive [15:49:17]shift 356 fd 104425 [15:49:17]save to /storage/0356/doc_00104425 [15:49:17]save last doc name /storage/0356/doc_00104425 to /storage/kkm_last_doc_name [15:49:17]save OK [15:49:17]Clear old archive folders... [15:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:49:17]tlvbuf is 00FB6AF0 [15:49:17]SAM_PROTO_ClearQueue [15:49:17]wFMCommunicate request_size=4 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 09 00 00 [15:49:17]Write to MH i2c: E2 08 00 58 21 80 09 00 00 00 00 00 00 EB [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]SAM_PROTO_ClearQueue done [15:49:17]KKMCreateOFDPacket [15:49:17]OFDProtocolAddRootSTLVToBuf [15:49:17]FM_MakeSignedData [15:49:17]FM_MakeSignedData [15:49:17]SAM_PROTO_SignData [15:49:17]wFMCommunicate request_size=4 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 0D 01 02 [15:49:17]Write to MH i2c: E2 08 00 59 21 80 0D 01 02 00 00 00 00 F3 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]wFMCommunicate request_size=255 [15:49:17]MH_SAM_APDU [15:49:17]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 9E 00 00 00 F4 03 04 00 7E F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [15:49:17]Write to MH i2c: E2 02 01 5A 21 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 9E 00 00 00 F4 03 04 00 7E F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 CA [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [15:49:17]RAPDU: 90 00 [15:49:17]wFMCommunicate OK [15:49:17]wFMCommunicate request_size=11 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 0D 02 02 06 24 7A 2C D2 AE 8C [15:49:17]Write to MH i2c: E2 0E 00 5B 21 80 0D 02 02 06 00 24 7A 2C D2 AE 8C 00 00 D8 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 03 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [15:49:18]RAPDU: 90 00 [15:49:18]wFMCommunicate OK [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 0D 03 02 [15:49:18]Write to MH i2c: E2 08 00 5C 21 80 0D 03 02 00 00 00 00 F8 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 0B 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 0B 00 5C 21 00 BB EF 1D 2A 37 89 F1 B0 90 00 4B [15:49:18]RAPDU: BB EF 1D 2A 37 89 F1 B0 90 00 [15:49:18]wFMCommunicate OK [15:49:18]SAM_PROTO_SignData done [15:49:18]FM_MakeSignedData done [15:49:18]CreateOFDProtocolMessage [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 11 00 00 [15:49:18]Write to MH i2c: E2 08 00 5D 21 80 11 00 00 00 00 00 00 F8 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:18]Read from MH i2c: E2 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: E2 17 00 5D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [15:49: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:49:18]wFMCommunicate OK [15:49:18]CreateOFDProtocolMessage done [15:49:18]OFDSenderStorePacket 104425 [15:49:18]StoreOFDPacket docnum=104425 [15:49: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 10 01 00 00 3A FB 08 01 36 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 9E 00 00 00 F4 03 04 00 7E F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 24 7A 2C D2 AE 8C BB EF 1D 2A 37 89 F1 B0 [15:49:18]CheckFolder [15:49:18]dirname=/storage/ofd_packets [15:49:18]CheckFolder done [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00104425 [15:49:18]NVStorageSaveData ofd_packets/00104425 [15:49:18]File name is /storage/ofd_packets/00104425 [15:49:18]Write 302 bytes [15:49:18]NVStorageSaveData done [15:49:18]OFDSenderStorePacket done [15:49:18]KKMCreateOFDPacket done [15:49:18]NVStorageSaveData kkm_last_timestamp [15:49:18]File name is /storage/kkm_last_timestamp [15:49:18]Write 4 bytes [15:49:18]NVStorageSaveData done [15:49:18]ExternCall_PrintAddStr [15:49:18]wPrintStart [15:49:18]Write to MH i2c: 01 00 00 5E 21 7F [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 5E 21 00 00 00 00 00 FF 0F 94 [15:49:18]RasterBufferAndPrint [15:49:18]line Счет N : (1)673984 [15:49:18]line ИНН: 02508201610067 [15:49:18]line Контрольно-Кассовый Чек [15:49:18]line ПРОДАЖА [15:49:18]line ТРК (МРК, ГНК) : 11 [15:49:18]line Товар: 2710194210 [15:49:18]line ДТ(л)-К-5 [15:49:18]line 68.590 * 72.90 [15:49:18]line = 5000.21 [15:49:18]line НДС 12% НСП 1% [15:49:18]line > о реализуемом товаре [15:49:18]line ИТОГО: 5000.21 [15:49:18]line НСП 1% : 44.25 [15:49:18]line НДС 12% : 531.00 [15:49:18]line Наличными: 0.00 [15:49:18]line Безнал.: 5000.21 [15:49:18]line Место: АЗС № 120 "Партнер Нефть" [15:49:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:49:18]line СНО: Общий режим [15:49:18]line Чек 158 22.06.2024 15:49 [15:49:18]line Смена: 356 ФФД: 1.0 [15:49:18]line ЗНМ: 0300000164 [15:49:18]line РНМ: 0000000000092785 [15:49:18]line Версия ККМ: 001 [15:49:18]line Платежная система: Бакай Банк [15:49:18]line ФМ: 0000000000875093 [15:49:18]line ФД: 104425 [15:49:18]line ФПД: 40107156614796 [15:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154918&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104425&fm=40107156614796&tin=02508201610067®Number=0000000000092785&sum=500021 [15:49:18]OFD Sender: Processing packet 104425 [packets to send 17, broken 16] [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00104425 [15:49:18]OFD Sender: To server: pG, [15:49:18]CommunicateWithHost lk.salyk.kg:30040 [15:49:18]ConnectInit lk.salyk.kg [15:49:18]written 0, free lines is 4095 [15:49:18]Connected sock=10 [15:49: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 10 01 00 00 3A FB 08 01 36 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 9E 00 00 00 F4 03 04 00 7E F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 24 7A 2C D2 AE 8C BB EF 1D 2A 37 89 F1 B0 [15:49: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 76 19 47 00 BB 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 E9 97 01 00 F4 03 04 00 FD 98 76 66 B6 04 01 00 00 71 B8 3F E5 9F EF 89 BD [15:49:18]CommunicateWithHost err = 0 [15:49:18]CheckOFDResponse [15:49:18]1017 (14) - 77093643461234 [15:49:18]1041 (16) - 0000000000875093 [15:49:18]1040 (4) - 104425 [15:49:18]1012 (4) - 22.06.2024 09:27 [15:49:18]1206 (1) - 0 [15:49:18]OFD Sender: Remove packet 104425 [15:49:18]ProducePacketName [15:49:18]name=ofd_packets/00104425 [15:49:18]NVStorageDeleteData [15:49:18]Write to MH i2c: 01 00 00 88 21 A9 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 F2 0C AE [15:49:18]RasterBufferAndPrint [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]line [15:49:18]written 0, free lines is 3320 [15:49:18]MH_Cut [15:49:18]Write to MH i2c: D1 01 00 8F 21 01 82 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: D1 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: D1 01 00 [15:49:18]MH_I2C_Read... [15:49:18]Read from MH i2c: D1 01 00 8F 21 00 81 [15:49:18]Write to MH i2c: 01 00 00 90 21 B1 [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:19]OFD Sender: No OFD packet to send [15:49:19]*** Cut start [15:49:19]*** Partial cut [15:49:19]*** CUTSNS_PIN = 1 [15:49:19]*** CUTSNS_PIN = 0 [15:49:19]*** Brake cut motor [15:49:20]Read from MH i2c: 01 [15:49:20]MH_I2C_Read... [15:49:20]*** Stop cut motor [15:49:20]*** Cut end [15:49:20]Read from MH i2c: 01 07 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 FF 0F C6 [15:49:20]process_action close_receipt done [15:49:20]requested_data is exist [15:49:20]produce_requested_data [15:49:20]requested_item fm.sn is exist - process it [15:49:20]wFMCommunicate request_size=4 [15:49:20]MH_SAM_APDU [15:49:20]CAPDU: 80 11 00 00 [15:49:20]Write to MH i2c: E2 08 00 91 21 80 11 00 00 00 00 00 00 2C [15:49:20]Write i2c OK [15:49:20]MH_I2C_Read... [15:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:20]Read from MH i2c: E2 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 17 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 17 00 91 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [15:49: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:49:20]wFMCommunicate OK [15:49:20]requested_item fd.num is exist - process it [15:49:20]SAM_PROTO_GetFieldsCounters [15:49:20]wFMCommunicate request_size=4 [15:49:20]MH_SAM_APDU [15:49:20]CAPDU: 80 13 00 00 [15:49:20]Write to MH i2c: E2 08 00 92 21 80 13 00 00 00 00 00 00 2F [15:49:20]Write i2c OK [15:49:20]MH_I2C_Read... [15:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:20]Read from MH i2c: E2 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 62 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 62 00 92 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [15:49: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 E9 97 01 00 0E 04 04 00 64 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 [15:49:20]wFMCommunicate OK [15:49:20]SAM_PROTO_GetFieldsCounters done [15:49:20]requested_item shift.num is exist - process it [15:49:20]requested_item shift.opened is exist - process it [15:49:20]req_shift_opened [15:49:20]FM_GetShiftState [15:49:20]SAM_PROTO_GetShiftState [15:49:20]wFMCommunicate request_size=4 [15:49:20]MH_SAM_APDU [15:49:20]CAPDU: 80 13 01 00 [15:49:20]Write to MH i2c: E2 08 00 93 21 80 13 01 00 00 00 00 00 31 [15:49:20]Write i2c OK [15:49:20]MH_I2C_Read... [15:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:20]Read from MH i2c: E2 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 0E 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 0E 00 93 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 23 [15:49:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:49:20]wFMCommunicate OK [15:49:20]SAM_PROTO_GetShiftState done [15:49:20]FM_GetShiftState done [15:49:20]req_shift_opened done [15:49:20]requested_item shift.open_date is exist - process it [15:49:20]req_shift_open_date [15:49:20]req_shift_open_date done [15:49:20]produce_requested_data done [15:49:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104425,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:49:20]process_action_free close_receipt [15:49:20]json_value_free [15:49:20]json_value_free done [15:49:20]process_json_proto returns [15:49:20]Send response to host [15:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104425,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:49:20]free response buf [15:49:20]execute_script done [15:49:20]execute_script returns [15:49:20]free content buf [15:49:20]Sock 7.Close socket [15:49:20]Sock 7.Thread stoped [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]accept exits with 9 [15:49:34]New connection [15:49:34]New thread 3066449252 created [15:49:34]Thread 3066592612 joined [15:49:34]Waiting for new connection... [15:49:34] Sock 9.Parse request [15:49:34]Sock 9.Check first char [15:49:34]Sock 9.First char is OK [15:49:34]request: POST /json_proto HTTP/1.0 [15:49:34]Method: POST [15:49:34]URL: /json_proto [15:49:34]Method is POST - this is cgi request [15:49:34]url: /json_proto [15:49:34]query_string will be loaded in cgi processing [15:49:34]execute_cgi json_proto POST (null) [15:49:34]execute_cgi path=json_proto method=POST [15:49:34]POST find Content-Length [15:49:34]Host: 172.17.38.133:8080 [15:49:34]Content-Length: 1207 [15:49:34]Content-Type: application/json [15:49:34] [15:49:34]POST finish read [15:49:34]Found Content-Length = 1207 [15:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673987\u000A22.06.2024 15: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.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\u000A103795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:34]execute_script... [15:49: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673987\u000A22.06.2024 15: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.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\u000A103795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:34]POST & json_proto [15:49:34]process_json_proto [15:49:34]json parsed OK: [15:49:34]protocol is kg_v1.0 [15:49:34]action value=print_text [15:49:34]process_action print_text [15:49:34]cmd_print_text [15:49:34]ExternCall_PrintAddStr [15:49:34]wPrintStart [15:49:34]Write to MH i2c: 01 00 00 94 21 B5 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [15:49:34]RasterBufferAndPrint [15:49:34]line *****ТОВАРНЫЙ ЧЕК***** [15:49:34]line АЗС 120 [15:49:34]line Партнер нефть [15:49:34]line 02508201610067 [15:49:34]line Кассир : Байбугуева Г. [15:49:34]line Счет N : (1)673987 [15:49:34]line 22.06.2024 15:26 [15:49:34]line ПРОДАЖА [15:49:34]line ТРК (МРК, ГНК): 42 [15:49:34]line Вид ГСМ : 2710124130 [15:49:34]line Аи-92-К-5 [15:49:34]line 15.060 x 66.40 [15:49:34]line ИТОГ: 999.98 [15:49:34]line Тип оплаты: Талоны: Топливная Карта [15:49:34]line 103795 [15:49:34]line ______________________ [15:49:34]line (подпись) [15:49:34]written 0, free lines is 4095 [15:49:34]Write to MH i2c: 01 00 00 A8 21 C9 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 13 0E F1 [15:49:34]RasterBufferAndPrint [15:49:34]line [15:49:34]line [15:49:34]line [15:49:34]line [15:49:34]line [15:49:34]written 0, free lines is 3605 [15:49:34]MH_Cut [15:49:34]Write to MH i2c: D1 01 00 AF 21 01 A2 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: D1 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: D1 01 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: D1 01 00 AF 21 00 A1 [15:49:34]Write to MH i2c: 01 00 00 B0 21 D1 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]OFD Sender: No OFD packet to send [15:49:34]*** Cut start [15:49:34]*** Partial cut [15:49:34]*** CUTSNS_PIN = 1 [15:49:34]*** CUTSNS_PIN = 0 [15:49:35]*** Brake cut motor [15:49:35]Read from MH i2c: 01 [15:49:35]MH_I2C_Read... [15:49:35]*** Stop cut motor [15:49:35]*** Cut end [15:49:35]Read from MH i2c: 01 07 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [15:49:35]process_action print_text done [15:49:35]requested_data is exist [15:49:35]produce_requested_data [15:49:35]requested_item fm.sn is exist - process it [15:49:35]wFMCommunicate request_size=4 [15:49:35]MH_SAM_APDU [15:49:35]CAPDU: 80 11 00 00 [15:49:35]Write to MH i2c: E2 08 00 B1 21 80 11 00 00 00 00 00 00 4C [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:35]Read from MH i2c: E2 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 17 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 17 00 B1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [15:49: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:49:35]wFMCommunicate OK [15:49:35]requested_item fd.num is exist - process it [15:49:35]SAM_PROTO_GetFieldsCounters [15:49:35]wFMCommunicate request_size=4 [15:49:35]MH_SAM_APDU [15:49:35]CAPDU: 80 13 00 00 [15:49:35]Write to MH i2c: E2 08 00 B2 21 80 13 00 00 00 00 00 00 4F [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:35]Read from MH i2c: E2 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 62 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 62 00 B2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 36 [15:49: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 E9 97 01 00 0E 04 04 00 64 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 [15:49:35]wFMCommunicate OK [15:49:35]SAM_PROTO_GetFieldsCounters done [15:49:35]requested_item shift.num is exist - process it [15:49:35]requested_item shift.opened is exist - process it [15:49:35]req_shift_opened [15:49:35]FM_GetShiftState [15:49:35]SAM_PROTO_GetShiftState [15:49:35]wFMCommunicate request_size=4 [15:49:35]MH_SAM_APDU [15:49:35]CAPDU: 80 13 01 00 [15:49:35]Write to MH i2c: E2 08 00 B3 21 80 13 01 00 00 00 00 00 51 [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:35]Read from MH i2c: E2 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 0E 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: E2 0E 00 B3 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 43 [15:49:35]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:49:35]wFMCommunicate OK [15:49:35]SAM_PROTO_GetShiftState done [15:49:35]FM_GetShiftState done [15:49:35]req_shift_opened done [15:49:35]requested_item shift.open_date is exist - process it [15:49:35]req_shift_open_date [15:49:35]req_shift_open_date done [15:49:35]produce_requested_data done [15:49:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104425,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:49:35]process_action_free print_text [15:49:35]json_value_free [15:49:35]json_value_free done [15:49:35]process_json_proto returns [15:49:35]Send response to host [15:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104425,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:49:35]free response buf [15:49:35]execute_script done [15:49:35]execute_script returns [15:49:35]free content buf [15:49:35]Sock 9.Close socket [15:49:35]Sock 9.Thread stoped [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:55]accept exits with 7 [15:50:55]New connection [15:50:55]New thread 3066592612 created [15:50:55]Thread 3066449252 joined [15:50:55]Waiting for new connection... [15:50:55] Sock 7.Parse request [15:50:55]Sock 7.Check first char [15:50:55]Sock 7.First char is OK [15:50:55]request: POST /json_proto HTTP/1.0 [15:50:55]Method: POST [15:50:55]URL: /json_proto [15:50:55]Method is POST - this is cgi request [15:50:55]url: /json_proto [15:50:55]query_string will be loaded in cgi processing [15:50:55]execute_cgi json_proto POST (null) [15:50:55]execute_cgi path=json_proto method=POST [15:50:55]POST find Content-Length [15:50:55]Host: 172.17.38.133:8080 [15:50:55]Content-Length: 639 [15:50:55]Content-Type: application/json [15:50:55] [15:50:55]POST finish read [15:50:55]Found Content-Length = 639 [15:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673988", "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.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:55]execute_script... [15:50: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)673988", "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.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:55]POST & json_proto [15:50:55]process_json_proto [15:50:55]json parsed OK: [15:50:55]protocol is kg_v1.0 [15:50:55]action value=close_receipt [15:50:55]process_action close_receipt [15:50:55]cmd_close_receipt [15:50:55]MH_GetDate [15:50:55]Write to MH i2c: F0 00 00 B4 21 C4 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: F0 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: F0 09 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: F0 09 00 B4 21 00 E1 F2 76 66 BD 8F 7C 64 A8 [15:50:55]GetLastDocTimeStamp 1719071358 [15:50:55]current date 1719071457 [15:50:55]FM_GetShiftState [15:50:55]SAM_PROTO_GetShiftState [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 13 01 00 [15:50:55]Write to MH i2c: E2 08 00 B5 21 80 13 01 00 00 00 00 00 53 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 B5 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 45 [15:50:56]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_GetShiftState done [15:50:56]FM_GetShiftState done [15:50:56]opened in 1719016176 [15:50:56]opened+sec_in_day 1719102576 [15:50:56]quantity*price = 33200 [15:50:56]sum+1 = 33201 [15:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 159 22.06.2024 15:50 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104426 ФПД: 237987568996174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155057&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104426&fm=237987568996174&tin=02508201610067®Number=0000000000092785&sum=33200 [15:50:57]StoreToDocumentArchive [15:50:57]shift 356 fd 104426 [15:50:57]save to /storage/0356/doc_00104426 [15:50:57]save last doc name /storage/0356/doc_00104426 to /storage/kkm_last_doc_name [15:50:57]save OK [15:50:57]Clear old archive folders... [15:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:57]tlvbuf is 00FB68D0 [15:50:57]SAM_PROTO_ClearQueue [15:50:57]wFMCommunicate request_size=4 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 09 00 00 [15:50:57]Write to MH i2c: E2 08 00 C2 21 80 09 00 00 00 00 00 00 55 [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [15:50:57]RAPDU: 90 00 [15:50:57]wFMCommunicate OK [15:50:57]SAM_PROTO_ClearQueue done [15:50:57]KKMCreateOFDPacket [15:50:57]OFDProtocolAddRootSTLVToBuf [15:50:57]FM_MakeSignedData [15:50:57]FM_MakeSignedData [15:50:57]SAM_PROTO_SignData [15:50:57]wFMCommunicate request_size=4 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 0D 01 02 [15:50:57]Write to MH i2c: E2 08 00 C3 21 80 0D 01 02 00 00 00 00 5D [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 C3 21 00 90 00 58 [15:50:57]RAPDU: 90 00 [15:50:57]wFMCommunicate OK [15:50:57]wFMCommunicate request_size=255 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 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 9F 00 00 00 F4 03 04 00 E1 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 [15:50:57]Write to MH i2c: E2 02 01 C4 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9F 00 00 00 F4 03 04 00 E1 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 00 00 AB [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 C4 21 00 90 00 59 [15:50:57]RAPDU: 90 00 [15:50:57]wFMCommunicate OK [15:50:57]wFMCommunicate request_size=10 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 0D 02 02 05 72 CC 82 CF 4E [15:50:57]Write to MH i2c: E2 0D 00 C5 21 80 0D 02 02 05 00 72 CC 82 CF 4E 00 00 47 [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [15:50:57]RAPDU: 90 00 [15:50:57]wFMCommunicate OK [15:50:57]wFMCommunicate request_size=4 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 0D 03 02 [15:50:57]Write to MH i2c: E2 08 00 C6 21 80 0D 03 02 00 00 00 00 62 [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 0B 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 0B 00 C6 21 00 79 D5 D1 6F CB 2D 23 09 90 00 15 [15:50:57]RAPDU: 79 D5 D1 6F CB 2D 23 09 90 00 [15:50:57]wFMCommunicate OK [15:50:57]SAM_PROTO_SignData done [15:50:57]FM_MakeSignedData done [15:50:57]CreateOFDProtocolMessage [15:50:57]wFMCommunicate request_size=4 [15:50:57]MH_SAM_APDU [15:50:57]CAPDU: 80 11 00 00 [15:50:57]Write to MH i2c: E2 08 00 C7 21 80 11 00 00 00 00 00 00 62 [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:57]Read from MH i2c: E2 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 17 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: E2 17 00 C7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [15:50: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:50:57]wFMCommunicate OK [15:50:57]CreateOFDProtocolMessage done [15:50:57]OFDSenderStorePacket 104426 [15:50:57]StoreOFDPacket docnum=104426 [15:50: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 85 0D 07 01 61 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 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 9F 00 00 00 F4 03 04 00 E1 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 72 CC 82 CF 4E 79 D5 D1 6F CB 2D 23 09 [15:50:57]CheckFolder [15:50:57]dirname=/storage/ofd_packets [15:50:57]CheckFolder done [15:50:57]ProducePacketName [15:50:57]name=ofd_packets/00104426 [15:50:57]NVStorageSaveData ofd_packets/00104426 [15:50:57]File name is /storage/ofd_packets/00104426 [15:50:57]Write 301 bytes [15:50:57]NVStorageSaveData done [15:50:57]OFDSenderStorePacket done [15:50:57]KKMCreateOFDPacket done [15:50:57]NVStorageSaveData kkm_last_timestamp [15:50:57]File name is /storage/kkm_last_timestamp [15:50:57]Write 4 bytes [15:50:57]NVStorageSaveData done [15:50:57]ExternCall_PrintAddStr [15:50:57]wPrintStart [15:50:57]Write to MH i2c: 01 00 00 C8 21 E9 [15:50:57]Write i2c OK [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: 01 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: 01 07 00 [15:50:57]MH_I2C_Read... [15:50:57]Read from MH i2c: 01 07 00 C8 21 00 00 00 00 00 FF 0F FE [15:50:57]RasterBufferAndPrint [15:50:57]line Счет N : (1)673988 [15:50:57]line ИНН: 02508201610067 [15:50:57]line Контрольно-Кассовый Чек [15:50:57]line ПРОДАЖА [15:50:57]line ТРК (МРК, ГНК) : 32 [15:50:57]line Товар: 2710124130 [15:50:57]line Аи-92-К-5 [15:50:57]line 5.000 * 66.40 [15:50:57]line = 332.00 [15:50:57]line НДС 12% НСП 1% [15:50:57]line > о реализуемом товаре [15:50:57]line ИТОГО: 332.00 [15:50:57]line НСП 1% : 2.94 [15:50:57]line НДС 12% : 35.26 [15:50:57]line Наличными: 332.00 [15:50:57]line Безнал.: 0.00 [15:50:57]line Место: АЗС № 120 "Партнер Нефть" [15:50:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:50:57]line СНО: Общий режим [15:50:57]line Чек 159 22.06.2024 15:50 [15:50:57]line Смена: 356 ФФД: 1.0 [15:50:57]line ЗНМ: 0300000164 [15:50:57]line РНМ: 0000000000092785 [15:50:57]line Версия ККМ: 001 [15:50:57]line ФМ: 0000000000875093 [15:50:57]line ФД: 104426 [15:50:57]line ФПД: 237987568996174 [15:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155057&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104426&fm=237987568996174&tin=02508201610067®Number=0000000000092785&sum=33200 [15:50:57]OFD Sender: Processing packet 104426 [packets to send 17, broken 16] [15:50:57]ProducePacketName [15:50:57]name=ofd_packets/00104426 [15:50:57]OFD Sender: To server: pG, [15:50:57]CommunicateWithHost lk.salyk.kg:30040 [15:50:57]ConnectInit lk.salyk.kg [15:50:57]written 0, free lines is 4095 [15:50:58]Connected sock=9 [15:50: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 85 0D 07 01 61 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 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 9F 00 00 00 F4 03 04 00 E1 F2 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 D8 72 CC 82 CF 4E 79 D5 D1 6F CB 2D 23 09 [15:50: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 7B 7E 47 00 4F 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 97 01 00 F4 03 04 00 60 99 76 66 B6 04 01 00 00 C8 92 89 81 B9 35 CE C7 [15:50:58]CommunicateWithHost err = 0 [15:50:58]CheckOFDResponse [15:50:58]1017 (14) - 77093643461234 [15:50:58]1041 (16) - 0000000000875093 [15:50:58]1040 (4) - 104426 [15:50:58]1012 (4) - 22.06.2024 09:29 [15:50:58]1206 (1) - 0 [15:50:58]OFD Sender: Remove packet 104426 [15:50:58]ProducePacketName [15:50:58]name=ofd_packets/00104426 [15:50:58]NVStorageDeleteData [15:50:58]Write to MH i2c: 01 00 00 F0 21 11 [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: 01 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: 01 07 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 18 0D 3D [15:50:58]RasterBufferAndPrint [15:50:58]line [15:50:58]line [15:50:58]line [15:50:58]line [15:50:58]line [15:50:58]written 0, free lines is 3358 [15:50:58]MH_Cut [15:50:58]Write to MH i2c: D1 01 00 F7 21 01 EA [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: D1 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: D1 01 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: D1 01 00 F7 21 00 E9 [15:50:58]Write to MH i2c: 01 00 00 F8 21 19 [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]OFD Sender: No OFD packet to send [15:50:59]*** Cut start [15:50:59]*** Partial cut [15:50:59]*** CUTSNS_PIN = 1 [15:50:59]*** CUTSNS_PIN = 0 [15:50:59]*** Brake cut motor [15:50:59]Read from MH i2c: 01 [15:50:59]MH_I2C_Read... [15:50:59]*** Stop cut motor [15:50:59]*** Cut end [15:50:59]Read from MH i2c: 01 07 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: 01 07 00 F8 21 00 00 00 00 00 FF 0F 2E [15:50:59]process_action close_receipt done [15:50:59]requested_data is exist [15:50:59]produce_requested_data [15:50:59]requested_item fm.sn is exist - process it [15:50:59]wFMCommunicate request_size=4 [15:50:59]MH_SAM_APDU [15:50:59]CAPDU: 80 11 00 00 [15:50:59]Write to MH i2c: E2 08 00 F9 21 80 11 00 00 00 00 00 00 94 [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:59]Read from MH i2c: E2 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 17 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 17 00 F9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [15:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:50:59]wFMCommunicate OK [15:50:59]requested_item fd.num is exist - process it [15:50:59]SAM_PROTO_GetFieldsCounters [15:50:59]wFMCommunicate request_size=4 [15:50:59]MH_SAM_APDU [15:50:59]CAPDU: 80 13 00 00 [15:50:59]Write to MH i2c: E2 08 00 FA 21 80 13 00 00 00 00 00 00 97 [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:59]Read from MH i2c: E2 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 62 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 62 00 FA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 82 [15:50: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 EA 97 01 00 0E 04 04 00 64 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 [15:50:59]wFMCommunicate OK [15:50:59]SAM_PROTO_GetFieldsCounters done [15:50:59]requested_item shift.num is exist - process it [15:50:59]requested_item shift.opened is exist - process it [15:50:59]req_shift_opened [15:50:59]FM_GetShiftState [15:50:59]SAM_PROTO_GetShiftState [15:50:59]wFMCommunicate request_size=4 [15:50:59]MH_SAM_APDU [15:50:59]CAPDU: 80 13 01 00 [15:50:59]Write to MH i2c: E2 08 00 FB 21 80 13 01 00 00 00 00 00 99 [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:00]Read from MH i2c: E2 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 FB 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8B [15:51:00]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:51:00]wFMCommunicate OK [15:51:00]SAM_PROTO_GetShiftState done [15:51:00]FM_GetShiftState done [15:51:00]req_shift_opened done [15:51:00]requested_item shift.open_date is exist - process it [15:51:00]req_shift_open_date [15:51:00]req_shift_open_date done [15:51:00]produce_requested_data done [15:51:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104426,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:51:00]process_action_free close_receipt [15:51:00]json_value_free [15:51:00]json_value_free done [15:51:00]process_json_proto returns [15:51:00]Send response to host [15:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104426,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:51:00]free response buf [15:51:00]execute_script done [15:51:00]execute_script returns [15:51:00]free content buf [15:51:00]Sock 7.Close socket [15:51:00]Sock 7.Thread stoped [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:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:09]accept exits with 10 [15:55:09]New connection [15:55:09]New thread 3066449252 created [15:55:09]Thread 3066592612 joined [15:55:09]Waiting for new connection... [15:55:09] Sock 10.Parse request [15:55:09]Sock 10.Check first char [15:55:09]Sock 10.First char is OK [15:55:09]request: POST /json_proto HTTP/1.0 [15:55:09]Method: POST [15:55:09]URL: /json_proto [15:55:09]Method is POST - this is cgi request [15:55:09]url: /json_proto [15:55:09]query_string will be loaded in cgi processing [15:55:09]execute_cgi json_proto POST (null) [15:55:09]execute_cgi path=json_proto method=POST [15:55:09]POST find Content-Length [15:55:09]Host: 172.17.38.133:8080 [15:55:09]Content-Length: 827 [15:55:09]Content-Type: application/json [15:55:09] [15:55:09]POST finish read [15:55:09]Found Content-Length = 827 [15:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673986", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:09]execute_script... [15:55: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)673986", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:09]POST & json_proto [15:55:09]process_json_proto [15:55:09]json parsed OK: [15:55:09]protocol is kg_v1.0 [15:55:09]action value=close_receipt [15:55:09]process_action close_receipt [15:55:09]cmd_close_receipt [15:55:09]MH_GetDate [15:55:09]Write to MH i2c: F0 00 00 FC 21 0C [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 FC 21 00 DF F3 76 66 BD 8F 7C 64 EF [15:55:09]GetLastDocTimeStamp 1719071457 [15:55:09]current date 1719071711 [15:55:09]FM_GetShiftState [15:55:09]SAM_PROTO_GetShiftState [15:55:09]wFMCommunicate request_size=4 [15:55:09]MH_SAM_APDU [15:55:09]CAPDU: 80 13 01 00 [15:55:09]Write to MH i2c: E2 08 00 FD 21 80 13 01 00 00 00 00 00 9B [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:09]Read from MH i2c: E2 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 FD 21 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8D [15:55:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:55:09]wFMCommunicate OK [15:55:09]SAM_PROTO_GetShiftState done [15:55:09]FM_GetShiftState done [15:55:09]opened in 1719016176 [15:55:09]opened+sec_in_day 1719102576 [15:55:09]quantity*price = 1000042 [15:55:09]sum+1 = 1000043 [15:55:09]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 СНО: Общий режим Чек 160 22.06.2024 15:55 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104427 ФПД: 6205459382444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104427&fm=6205459382444&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:55:10]StoreToDocumentArchive [15:55:10]shift 356 fd 104427 [15:55:10]save to /storage/0356/doc_00104427 [15:55:10]save last doc name /storage/0356/doc_00104427 to /storage/kkm_last_doc_name [15:55:10]save OK [15:55:10]Clear old archive folders... [15:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:55:10]tlvbuf is 01043230 [15:55:10]SAM_PROTO_ClearQueue [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 09 00 00 [15:55:10]Write to MH i2c: E2 08 00 0A 22 80 09 00 00 00 00 00 00 9E [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 0A 22 00 90 00 A0 [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]SAM_PROTO_ClearQueue done [15:55:10]KKMCreateOFDPacket [15:55:10]OFDProtocolAddRootSTLVToBuf [15:55:10]FM_MakeSignedData [15:55:10]FM_MakeSignedData [15:55:10]SAM_PROTO_SignData [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 0D 01 02 [15:55:10]Write to MH i2c: E2 08 00 0B 22 80 0D 01 02 00 00 00 00 A6 [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 0B 22 00 90 00 A1 [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]wFMCommunicate request_size=255 [15:55:10]MH_SAM_APDU [15:55: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 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 A0 00 00 00 F4 03 04 00 DF F3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [15:55:10]Write to MH i2c: E2 02 01 0C 22 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 A0 00 00 00 F4 03 04 00 DF F3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 0D [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 0C 22 00 90 00 A2 [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]wFMCommunicate request_size=11 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 0D 02 02 06 05 A4 D2 33 C0 AC [15:55:10]Write to MH i2c: E2 0E 00 0D 22 80 0D 02 02 06 00 05 A4 D2 33 C0 AC 00 00 CF [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 0D 22 00 90 00 A3 [15:55:11]RAPDU: 90 00 [15:55:11]wFMCommunicate OK [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 0D 03 02 [15:55:11]Write to MH i2c: E2 08 00 0E 22 80 0D 03 02 00 00 00 00 AB [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 0E 22 00 E2 9E BA A9 99 99 33 EE 90 00 E2 [15:55:11]RAPDU: E2 9E BA A9 99 99 33 EE 90 00 [15:55:11]wFMCommunicate OK [15:55:11]SAM_PROTO_SignData done [15:55:11]FM_MakeSignedData done [15:55:11]CreateOFDProtocolMessage [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 11 00 00 [15:55:11]Write to MH i2c: E2 08 00 0F 22 80 11 00 00 00 00 00 00 AB [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 0F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [15:55: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:55:11]wFMCommunicate OK [15:55:11]CreateOFDProtocolMessage done [15:55:11]OFDSenderStorePacket 104427 [15:55:11]StoreOFDPacket docnum=104427 [15:55: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 10 01 00 00 4B F8 08 01 36 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 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 A0 00 00 00 F4 03 04 00 DF F3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 05 A4 D2 33 C0 AC E2 9E BA A9 99 99 33 EE [15:55:11]CheckFolder [15:55:11]dirname=/storage/ofd_packets [15:55:11]CheckFolder done [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00104427 [15:55:11]NVStorageSaveData ofd_packets/00104427 [15:55:11]File name is /storage/ofd_packets/00104427 [15:55:11]Write 302 bytes [15:55:11]NVStorageSaveData done [15:55:11]OFDSenderStorePacket done [15:55:11]KKMCreateOFDPacket done [15:55:11]NVStorageSaveData kkm_last_timestamp [15:55:11]File name is /storage/kkm_last_timestamp [15:55:11]Write 4 bytes [15:55:11]NVStorageSaveData done [15:55:11]ExternCall_PrintAddStr [15:55:11]wPrintStart [15:55:11]Write to MH i2c: 01 00 00 10 22 32 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 FF 0F 47 [15:55:11]RasterBufferAndPrint [15:55:11]line Счет N : (1)673986 [15:55:11]line ИНН: 02508201610067 [15:55:11]line Контрольно-Кассовый Чек [15:55:11]line ПРОДАЖА [15:55:11]line ТРК (МРК, ГНК) : 21 [15:55:11]line Товар: 2710194210 [15:55:11]line ДТ(л)-К-5 [15:55:11]line 137.180 * 72.90 [15:55:11]line = 10000.42 [15:55:11]line НДС 12% НСП 1% [15:55:11]line > о реализуемом товаре [15:55:11]line ИТОГО: 10000.42 [15:55:11]line НСП 1% : 88.50 [15:55:11]line НДС 12% : 1061.99 [15:55:11]line Наличными: 0.00 [15:55:11]line Безнал.: 10000.42 [15:55:11]line Место: АЗС № 120 "Партнер Нефть" [15:55:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:55:11]line СНО: Общий режим [15:55:11]line Чек 160 22.06.2024 15:55 [15:55:11]line Смена: 356 ФФД: 1.0 [15:55:11]line ЗНМ: 0300000164 [15:55:11]line РНМ: 0000000000092785 [15:55:11]line Версия ККМ: 001 [15:55:11]line Платежная система: Бакай Банк [15:55:11]line ФМ: 0000000000875093 [15:55:11]line ФД: 104427 [15:55:11]line ФПД: 6205459382444 [15:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155511&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104427&fm=6205459382444&tin=02508201610067®Number=0000000000092785&sum=1000042 [15:55:11]OFD Sender: Processing packet 104427 [packets to send 17, broken 16] [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00104427 [15:55:11]OFD Sender: To server: pG, [15:55:11]CommunicateWithHost lk.salyk.kg:30040 [15:55:11]ConnectInit lk.salyk.kg [15:55:11]written 0, free lines is 4095 [15:55:11]Connected sock=9 [15:55: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 10 01 00 00 4B F8 08 01 36 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 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 A0 00 00 00 F4 03 04 00 DF F3 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 05 A4 D2 33 C0 AC E2 9E BA A9 99 99 33 EE [15:55: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 1D 59 47 00 0F 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 97 01 00 F4 03 04 00 5E 9A 76 66 B6 04 01 00 00 C7 82 3A 5A 7C 9E DF 0B [15:55:11]CommunicateWithHost err = 0 [15:55:11]CheckOFDResponse [15:55:11]1017 (14) - 77093643461234 [15:55:11]1041 (16) - 0000000000875093 [15:55:11]1040 (4) - 104427 [15:55:11]1012 (4) - 22.06.2024 09:33 [15:55:11]1206 (1) - 0 [15:55:11]OFD Sender: Remove packet 104427 [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00104427 [15:55:11]NVStorageDeleteData [15:55:11]Write to MH i2c: 01 00 00 3A 22 5C [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 3A 22 00 00 00 00 00 F0 0C 5F [15:55:11]RasterBufferAndPrint [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]written 0, free lines is 3318 [15:55:11]MH_Cut [15:55:11]Write to MH i2c: D1 01 00 41 22 01 35 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 41 22 00 34 [15:55:11]Write to MH i2c: 01 00 00 42 22 64 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:12]OFD Sender: No OFD packet to send [15:55:12]*** Cut start [15:55:12]*** Partial cut [15:55:12]*** CUTSNS_PIN = 1 [15:55:12]*** CUTSNS_PIN = 0 [15:55:12]*** Brake cut motor [15:55:13]Read from MH i2c: 01 [15:55:13]MH_I2C_Read... [15:55:13]*** Stop cut motor [15:55:13]*** Cut end [15:55:13]Read from MH i2c: 01 07 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: 01 07 00 42 22 00 00 00 00 00 FF 0F 79 [15:55:13]process_action close_receipt done [15:55:13]requested_data is exist [15:55:13]produce_requested_data [15:55:13]requested_item fm.sn is exist - process it [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 11 00 00 [15:55:13]Write to MH i2c: E2 08 00 43 22 80 11 00 00 00 00 00 00 DF [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:13]Read from MH i2c: E2 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 17 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 17 00 43 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [15:55: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:55:13]wFMCommunicate OK [15:55:13]requested_item fd.num is exist - process it [15:55:13]SAM_PROTO_GetFieldsCounters [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 13 00 00 [15:55:13]Write to MH i2c: E2 08 00 44 22 80 13 00 00 00 00 00 00 E2 [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:13]Read from MH i2c: E2 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 62 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 62 00 44 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D1 [15:55: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 EB 97 01 00 0E 04 04 00 64 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 [15:55:13]wFMCommunicate OK [15:55:13]SAM_PROTO_GetFieldsCounters done [15:55:13]requested_item shift.num is exist - process it [15:55:13]requested_item shift.opened is exist - process it [15:55:13]req_shift_opened [15:55:13]FM_GetShiftState [15:55:13]SAM_PROTO_GetShiftState [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 13 01 00 [15:55:13]Write to MH i2c: E2 08 00 45 22 80 13 01 00 00 00 00 00 E4 [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:13]Read from MH i2c: E2 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 0E 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 0E 00 45 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D6 [15:55:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [15:55:13]wFMCommunicate OK [15:55:13]SAM_PROTO_GetShiftState done [15:55:13]FM_GetShiftState done [15:55:13]req_shift_opened done [15:55:13]requested_item shift.open_date is exist - process it [15:55:13]req_shift_open_date [15:55:13]req_shift_open_date done [15:55:13]produce_requested_data done [15:55:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104427,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [15:55:13]process_action_free close_receipt [15:55:13]json_value_free [15:55:13]json_value_free done [15:55:13]process_json_proto returns [15:55:13]Send response to host [15:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104427,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [15:55:13]free response buf [15:55:13]execute_script done [15:55:13]execute_script returns [15:55:13]free content buf [15:55:13]Sock 10.Close socket [15:55:13]Sock 10.Thread stoped [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:01]accept exits with 7 [16:00:01]New connection [16:00:01]New thread 3066592612 created [16:00:01]Thread 3066449252 joined [16:00:01]Waiting for new connection... [16:00:01] Sock 7.Parse request [16:00:01]Sock 7.Check first char [16:00:01]Sock 7.First char is OK [16:00:01]request: POST /json_proto HTTP/1.0 [16:00:01]Method: POST [16:00:01]URL: /json_proto [16:00:01]Method is POST - this is cgi request [16:00:01]url: /json_proto [16:00:01]query_string will be loaded in cgi processing [16:00:01]execute_cgi json_proto POST (null) [16:00:01]execute_cgi path=json_proto method=POST [16:00:01]POST find Content-Length [16:00:01]Host: 172.17.38.133:8080 [16:00:01]Content-Length: 677 [16:00:01]Content-Type: application/json [16:00:01] [16:00:01]POST finish read [16:00:01]Found Content-Length = 677 [16:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673993", "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" ] } } [16:00:01]execute_script... [16:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673993", "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" ] } } [16:00:01]POST & json_proto [16:00:01]process_json_proto [16:00:01]json parsed OK: [16:00:01]protocol is kg_v1.0 [16:00:01]action value=close_receipt [16:00:01]process_action close_receipt [16:00:01]cmd_close_receipt [16:00:01]MH_GetDate [16:00:01]Write to MH i2c: F0 00 00 46 22 57 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: F0 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: F0 09 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: F0 09 00 46 22 00 03 F5 76 66 BD 8F 7C 64 60 [16:00:01]GetLastDocTimeStamp 1719071711 [16:00:01]current date 1719072003 [16:00:01]FM_GetShiftState [16:00:01]SAM_PROTO_GetShiftState [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 13 01 00 [16:00:01]Write to MH i2c: E2 08 00 47 22 80 13 01 00 00 00 00 00 E6 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 0E 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 0E 00 47 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D8 [16:00:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:00:01]wFMCommunicate OK [16:00:01]SAM_PROTO_GetShiftState done [16:00:01]FM_GetShiftState done [16:00:01]opened in 1719016176 [16:00:01]opened+sec_in_day 1719102576 [16:00:01]quantity*price = 60025 [16:00:01]sum+1 = 60027 [16:00:01]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 СНО: Общий режим Чек 161 22.06.2024 16:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104428 ФПД: 34151822351235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160003&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104428&fm=34151822351235&tin=02508201610067®Number=0000000000092785&sum=60000 [16:00:02]StoreToDocumentArchive [16:00:02]shift 356 fd 104428 [16:00:02]save to /storage/0356/doc_00104428 [16:00:02]save last doc name /storage/0356/doc_00104428 to /storage/kkm_last_doc_name [16:00:02]save OK [16:00:02]Clear old archive folders... [16:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:02]tlvbuf is B6F007B0 [16:00:02]SAM_PROTO_ClearQueue [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 09 00 00 [16:00:02]Write to MH i2c: E2 08 00 54 22 80 09 00 00 00 00 00 00 E8 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 54 22 00 90 00 EA [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]SAM_PROTO_ClearQueue done [16:00:02]KKMCreateOFDPacket [16:00:02]OFDProtocolAddRootSTLVToBuf [16:00:02]FM_MakeSignedData [16:00:02]FM_MakeSignedData [16:00:02]SAM_PROTO_SignData [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 01 02 [16:00:02]Write to MH i2c: E2 08 00 55 22 80 0D 01 02 00 00 00 00 F0 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 55 22 00 90 00 EB [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]wFMCommunicate request_size=255 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 03 F5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1F [16:00:02]Write to MH i2c: E2 02 01 56 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A1 00 00 00 F4 03 04 00 03 F5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1F 00 00 04 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]OFD Sender: No OFD packet to send [16:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 56 22 00 90 00 EC [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]wFMCommunicate request_size=10 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 02 02 05 0F 97 3D 5B 83 [16:00:02]Write to MH i2c: E2 0D 00 57 22 80 0D 02 02 05 00 0F 97 3D 5B 83 00 00 BE [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 03 00 57 22 00 90 00 ED [16:00:02]RAPDU: 90 00 [16:00:02]wFMCommunicate OK [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 0D 03 02 [16:00:02]Write to MH i2c: E2 08 00 58 22 80 0D 03 02 00 00 00 00 F5 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0B 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0B 00 58 22 00 3E B6 52 21 C7 EA 58 F6 90 00 5C [16:00:02]RAPDU: 3E B6 52 21 C7 EA 58 F6 90 00 [16:00:02]wFMCommunicate OK [16:00:02]SAM_PROTO_SignData done [16:00:02]FM_MakeSignedData done [16:00:02]CreateOFDProtocolMessage [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 11 00 00 [16:00:02]Write to MH i2c: E2 08 00 59 22 80 11 00 00 00 00 00 00 F5 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 17 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 17 00 59 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [16:00: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:00:02]wFMCommunicate OK [16:00:02]CreateOFDProtocolMessage done [16:00:02]OFDSenderStorePacket 104428 [16:00:02]StoreOFDPacket docnum=104428 [16:00: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 69 96 07 01 D9 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 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 A1 00 00 00 F4 03 04 00 03 F5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1F 0F 97 3D 5B 83 3E B6 52 21 C7 EA 58 F6 [16:00:02]CheckFolder [16:00:02]dirname=/storage/ofd_packets [16:00:02]CheckFolder done [16:00:02]ProducePacketName [16:00:02]name=ofd_packets/00104428 [16:00:02]NVStorageSaveData ofd_packets/00104428 [16:00:02]File name is /storage/ofd_packets/00104428 [16:00:02]Write 301 bytes [16:00:02]NVStorageSaveData done [16:00:02]OFDSenderStorePacket done [16:00:02]KKMCreateOFDPacket done [16:00:02]NVStorageSaveData kkm_last_timestamp [16:00:02]File name is /storage/kkm_last_timestamp [16:00:02]Write 4 bytes [16:00:02]NVStorageSaveData done [16:00:02]ExternCall_PrintAddStr [16:00:02]wPrintStart [16:00:02]Write to MH i2c: 01 00 00 5A 22 7C [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 5A 22 00 00 00 00 00 FF 0F 91 [16:00:02]RasterBufferAndPrint [16:00:02]line Счет N : (1)673993 [16:00:02]line ИНН: 02508201610067 [16:00:02]line Контрольно-Кассовый Чек [16:00:02]line ПРОДАЖА [16:00:02]line ТРК (МРК, ГНК) : 32 [16:00:02]line Товар: 2710124130 [16:00:02]line Аи-92-К-5 [16:00:02]line 9.040 * 66.40 [16:00:02]line = 600.26 [16:00:02]line НДС 12% НСП 1% [16:00:02]line > о реализуемом товаре [16:00:02]line ОКРУГЛЕНИЕ: -0.26 [16:00:02]line ИТОГО: 600.00 [16:00:02]line Внесено: 600.00 [16:00:02]line СДАЧА: 0.00 [16:00:02]line НСП 1% : 5.31 [16:00:02]line НДС 12% : 63.74 [16:00:02]line Наличными: 600.00 [16:00:02]line Безнал.: 0.00 [16:00:02]line Место: АЗС № 120 "Партнер Нефть" [16:00:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:00:02]line СНО: Общий режим [16:00:02]line Чек 161 22.06.2024 16:00 [16:00:02]line Смена: 356 ФФД: 1.0 [16:00:02]line ЗНМ: 0300000164 [16:00:02]line РНМ: 0000000000092785 [16:00:02]line Версия ККМ: 001 [16:00:02]line ФМ: 0000000000875093 [16:00:02]line ФД: 104428 [16:00:02]line ФПД: 34151822351235 [16:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160003&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104428&fm=34151822351235&tin=02508201610067®Number=0000000000092785&sum=60000 [16:00:02]written 0, free lines is 4095 [16:00:02]OFD Sender: Processing packet 104428 [packets to send 17, broken 16] [16:00:02]ProducePacketName [16:00:02]name=ofd_packets/00104428 [16:00:02]OFD Sender: To server: pG, [16:00:02]CommunicateWithHost lk.salyk.kg:30040 [16:00:02]ConnectInit lk.salyk.kg [16:00:03]Connected sock=10 [16:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 69 96 07 01 D9 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 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 A1 00 00 00 F4 03 04 00 03 F5 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 1F 0F 97 3D 5B 83 3E B6 52 21 C7 EA 58 F6 [16:00:03]Write to MH i2c: 01 00 00 85 22 A7 [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: 01 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: 01 07 00 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: 01 07 00 85 22 00 00 00 00 00 E4 0C 9E [16:00:03]RasterBufferAndPrint [16:00:03]line [16:00:03]line [16:00:03]line [16:00:03]line [16:00:03]line [16:00:03]written 0, free lines is 3306 [16:00: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 AD 46 47 00 D6 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 EC 97 01 00 F4 03 04 00 81 9B 76 66 B6 04 01 00 00 59 73 EF AE AD 72 15 4C [16:00:03]CommunicateWithHost err = 0 [16:00:03]CheckOFDResponse [16:00:03]1017 (14) - 77093643461234 [16:00:03]1041 (16) - 0000000000875093 [16:00:03]1040 (4) - 104428 [16:00:03]1012 (4) - 22.06.2024 09:38 [16:00:03]1206 (1) - 0 [16:00:03]OFD Sender: Remove packet 104428 [16:00:03]ProducePacketName [16:00:03]name=ofd_packets/00104428 [16:00:03]NVStorageDeleteData [16:00:03]MH_Cut [16:00:03]Write to MH i2c: D1 01 00 8C 22 01 80 [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: D1 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: D1 01 00 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: D1 01 00 8C 22 00 7F [16:00:03]Write to MH i2c: 01 00 00 8D 22 AF [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]OFD Sender: No OFD packet to send [16:00:04]*** Cut start [16:00:04]*** Partial cut [16:00:04]*** CUTSNS_PIN = 1 [16:00:04]*** CUTSNS_PIN = 0 [16:00:04]*** Brake cut motor [16:00:04]Read from MH i2c: 01 [16:00:04]MH_I2C_Read... [16:00:04]*** Stop cut motor [16:00:04]Read from MH i2c: 01 07 00 [16:00:04]MH_I2C_Read... [16:00:04]*** Cut end [16:00:04]Read from MH i2c: 01 07 00 8D 22 00 00 00 00 00 FF 0F C4 [16:00:04]process_action close_receipt done [16:00:04]requested_data is exist [16:00:04]produce_requested_data [16:00:04]requested_item fm.sn is exist - process it [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 11 00 00 [16:00:04]Write to MH i2c: E2 08 00 8E 22 80 11 00 00 00 00 00 00 2A [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 17 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 17 00 8E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [16: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 [16:00:04]wFMCommunicate OK [16:00:04]requested_item fd.num is exist - process it [16:00:04]SAM_PROTO_GetFieldsCounters [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 13 00 00 [16:00:04]Write to MH i2c: E2 08 00 8F 22 80 13 00 00 00 00 00 00 2D [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 62 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 62 00 8F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 20 [16:00: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 EC 97 01 00 0E 04 04 00 64 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:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_GetFieldsCounters done [16:00:04]requested_item shift.num is exist - process it [16:00:04]requested_item shift.opened is exist - process it [16:00:04]req_shift_opened [16:00:04]FM_GetShiftState [16:00:04]SAM_PROTO_GetShiftState [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 13 01 00 [16:00:04]Write to MH i2c: E2 08 00 90 22 80 13 01 00 00 00 00 00 2F [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0E 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0E 00 90 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 21 [16:00:04]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_GetShiftState done [16:00:04]FM_GetShiftState done [16:00:04]req_shift_opened done [16:00:04]requested_item shift.open_date is exist - process it [16:00:04]req_shift_open_date [16:00:04]req_shift_open_date done [16:00:04]produce_requested_data done [16:00:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:00:04]process_action_free close_receipt [16:00:04]json_value_free [16:00:04]json_value_free done [16:00:04]process_json_proto returns [16:00:04]Send response to host [16:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:00:04]free response buf [16:00:04]execute_script done [16:00:04]execute_script returns [16:00:04]free content buf [16:00:04]Sock 7.Close socket [16:00:04]Sock 7.Thread stoped [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [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:36]accept exits with 9 [16:00:36]New connection [16:00:36]New thread 3066449252 created [16:00:36]Thread 3066592612 joined [16:00:36]Waiting for new connection... [16:00:36] Sock 9.Parse request [16:00:36]Sock 9.Check first char [16:00:36]Sock 9.First char is OK [16:00:36]request: POST /json_proto HTTP/1.0 [16:00:36]Method: POST [16:00:36]URL: /json_proto [16:00:36]Method is POST - this is cgi request [16:00:36]url: /json_proto [16:00:36]query_string will be loaded in cgi processing [16:00:36]execute_cgi json_proto POST (null) [16:00:36]execute_cgi path=json_proto method=POST [16:00:36]POST find Content-Length [16:00:36]Host: 172.17.38.133:8080 [16:00:36]Content-Length: 1174 [16:00:36]Content-Type: application/json [16:00:36] [16:00:36]POST finish read [16:00:36]Found Content-Length = 1174 [16:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673990\u000A22.06.2024 15:37\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 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:36]execute_script... [16:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673990\u000A22.06.2024 15:37\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 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:36]POST & json_proto [16:00:36]process_json_proto [16:00:36]json parsed OK: [16:00:36]protocol is kg_v1.0 [16:00:36]action value=print_text [16:00:36]process_action print_text [16:00:36]cmd_print_text [16:00:36]ExternCall_PrintAddStr [16:00:36]wPrintStart [16:00:36]Write to MH i2c: 01 00 00 91 22 B3 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 FF 0F C8 [16:00:36]RasterBufferAndPrint [16:00:36]line *****ТОВАРНЫЙ ЧЕК***** [16:00:36]line АЗС 120 [16:00:36]line Партнер нефть [16:00:36]line 02508201610067 [16:00:36]line Кассир : Байбугуева Г. [16:00:36]line Счет N : (1)673990 [16:00:36]line 22.06.2024 15:37 [16:00:36]line ПРОДАЖА [16:00:36]line ТРК (МРК, ГНК): 21 [16:00:36]line Вид ГСМ : 2710194210 [16:00:36]line ДТ(л)-К-5 [16:00:36]line 40.000 x 72.90 [16:00:36]line ИТОГ: 2916.00 [16:00:36]line Тип оплаты: Талоны: ТК ГПНА Online [16:00:36]line 30144226 [16:00:36]line ______________________ [16:00:36]line (подпись) [16:00:36]written 0, free lines is 4095 [16:00:36]Write to MH i2c: 01 00 00 A5 22 C7 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 A5 22 00 00 00 00 00 12 0E EE [16:00:36]RasterBufferAndPrint [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]written 0, free lines is 3604 [16:00:36]MH_Cut [16:00:36]Write to MH i2c: D1 01 00 AC 22 01 A0 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 01 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 01 00 AC 22 00 9F [16:00:36]Write to MH i2c: 01 00 00 AD 22 CF [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:37]*** Cut start [16:00:37]*** Partial cut [16:00:37]*** CUTSNS_PIN = 1 [16:00:37]*** CUTSNS_PIN = 0 [16:00:37]*** Brake cut motor [16:00:37]Read from MH i2c: 01 [16:00:37]MH_I2C_Read... [16:00:37]*** Stop cut motor [16:00:37]*** Cut end [16:00:37]Read from MH i2c: 01 07 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [16:00:37]process_action print_text done [16:00:37]requested_data is exist [16:00:37]produce_requested_data [16:00:37]requested_item fm.sn is exist - process it [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 11 00 00 [16:00:37]Write to MH i2c: E2 08 00 AE 22 80 11 00 00 00 00 00 00 4A [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 17 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 17 00 AE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [16:00:37]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:37]wFMCommunicate OK [16:00:37]requested_item fd.num is exist - process it [16:00:37]SAM_PROTO_GetFieldsCounters [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 13 00 00 [16:00:37]Write to MH i2c: E2 08 00 AF 22 80 13 00 00 00 00 00 00 4D [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 62 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 62 00 AF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 40 [16:00: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 97 01 00 0E 04 04 00 64 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:00:37]wFMCommunicate OK [16:00:37]SAM_PROTO_GetFieldsCounters done [16:00:37]requested_item shift.num is exist - process it [16:00:37]requested_item shift.opened is exist - process it [16:00:37]req_shift_opened [16:00:37]FM_GetShiftState [16:00:37]SAM_PROTO_GetShiftState [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 13 01 00 [16:00:37]Write to MH i2c: E2 08 00 B0 22 80 13 01 00 00 00 00 00 4F [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 B0 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 41 [16:00:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:00:37]wFMCommunicate OK [16:00:37]SAM_PROTO_GetShiftState done [16:00:37]FM_GetShiftState done [16:00:37]req_shift_opened done [16:00:37]requested_item shift.open_date is exist - process it [16:00:37]req_shift_open_date [16:00:37]req_shift_open_date done [16:00:37]produce_requested_data done [16:00:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:00:37]process_action_free print_text [16:00:37]json_value_free [16:00:37]json_value_free done [16:00:37]process_json_proto returns [16:00:37]Send response to host [16:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:00:37]free response buf [16:00:37]execute_script done [16:00:37]execute_script returns [16:00:37]free content buf [16:00:37]Sock 9.Close socket [16:00:37]Sock 9.Thread stoped [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:41]accept exits with 7 [16:02:41]New connection [16:02:41]New thread 3066592612 created [16:02:41]Thread 3066449252 joined [16:02:41]Waiting for new connection... [16:02:41] Sock 7.Parse request [16:02:41]Sock 7.Check first char [16:02:41]Sock 7.First char is OK [16:02:41]request: POST /json_proto HTTP/1.0 [16:02:41]Method: POST [16:02:41]URL: /json_proto [16:02:41]Method is POST - this is cgi request [16:02:41]url: /json_proto [16:02:41]query_string will be loaded in cgi processing [16:02:41]execute_cgi json_proto POST (null) [16:02:41]execute_cgi path=json_proto method=POST [16:02:41]POST find Content-Length [16:02:41]Host: 172.17.38.133:8080 [16:02:41]Content-Length: 1208 [16:02:41]Content-Type: application/json [16:02:41] [16:02:41]POST finish read [16:02:41]Found Content-Length = 1208 [16:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673994\u000A22.06.2024 15: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 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\u000A103795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:41]execute_script... [16:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673994\u000A22.06.2024 15: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 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\u000A103795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:41]POST & json_proto [16:02:41]process_json_proto [16:02:41]json parsed OK: [16:02:41]protocol is kg_v1.0 [16:02:41]action value=print_text [16:02:41]process_action print_text [16:02:41]cmd_print_text [16:02:41]ExternCall_PrintAddStr [16:02:41]wPrintStart [16:02:41]Write to MH i2c: 01 00 00 B1 22 D3 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [16:02:41]RasterBufferAndPrint [16:02:41]line *****ТОВАРНЫЙ ЧЕК***** [16:02:41]line АЗС 120 [16:02:41]line Партнер нефть [16:02:41]line 02508201610067 [16:02:41]line Кассир : Байбугуева Г. [16:02:41]line Счет N : (1)673994 [16:02:41]line 22.06.2024 15:39 [16:02:41]line ПРОДАЖА [16:02:41]line ТРК (МРК, ГНК): 42 [16:02:41]line Вид ГСМ : 2710124130 [16:02:41]line Аи-92-К-5 [16:02:41]line 15.070 x 66.40 [16:02:41]line ИТОГ: 1000.65 [16:02:41]line Тип оплаты: Талоны: Топливная Карта [16:02:41]line 103795 [16:02:41]line ______________________ [16:02:41]line (подпись) [16:02:41]written 0, free lines is 4095 [16:02:41]Write to MH i2c: 01 00 00 C5 22 E7 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 13 0E 0F [16:02:41]RasterBufferAndPrint [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]written 0, free lines is 3605 [16:02:41]MH_Cut [16:02:41]Write to MH i2c: D1 01 00 CC 22 01 C0 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 01 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 01 00 CC 22 00 BF [16:02:41]Write to MH i2c: 01 00 00 CD 22 EF [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** Cut start [16:02:41]*** Partial cut [16:02:41]*** CUTSNS_PIN = 1 [16:02:41]*** CUTSNS_PIN = 0 [16:02:42]*** Brake cut motor [16:02:42]Read from MH i2c: 01 [16:02:42]MH_I2C_Read... [16:02:42]*** Stop cut motor [16:02:42]*** Cut end [16:02:42]Read from MH i2c: 01 07 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 FF 0F 04 [16:02:42]process_action print_text done [16:02:42]requested_data is exist [16:02:42]produce_requested_data [16:02:42]requested_item fm.sn is exist - process it [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 11 00 00 [16:02:42]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [16: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 [16:02:42]wFMCommunicate OK [16:02:42]requested_item fd.num is exist - process it [16:02:42]SAM_PROTO_GetFieldsCounters [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 00 00 [16:02:42]Write to MH i2c: E2 08 00 CF 22 80 13 00 00 00 00 00 00 6D [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 62 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 62 00 CF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 60 [16:02: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 EC 97 01 00 0E 04 04 00 64 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:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetFieldsCounters done [16:02:42]requested_item shift.num is exist - process it [16:02:42]requested_item shift.opened is exist - process it [16:02:42]req_shift_opened [16:02:42]FM_GetShiftState [16:02:42]SAM_PROTO_GetShiftState [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 01 00 [16:02:42]Write to MH i2c: E2 08 00 D0 22 80 13 01 00 00 00 00 00 6F [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 D0 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 61 [16:02:42]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetShiftState done [16:02:42]FM_GetShiftState done [16:02:42]req_shift_opened done [16:02:42]requested_item shift.open_date is exist - process it [16:02:42]req_shift_open_date [16:02:42]req_shift_open_date done [16:02:42]produce_requested_data done [16:02:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:02:42]process_action_free print_text [16:02:42]json_value_free [16:02:42]json_value_free done [16:02:42]process_json_proto returns [16:02:42]Send response to host [16:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104428,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:02:42]free response buf [16:02:42]execute_script done [16:02:42]execute_script returns [16:02:42]free content buf [16:02:42]Sock 7.Close socket [16:02:42]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:08]accept exits with 9 [16:11:08]New connection [16:11:08]New thread 3066449252 created [16:11:08]Thread 3066592612 joined [16:11:08]Waiting for new connection... [16:11:08] Sock 9.Parse request [16:11:08]Sock 9.Check first char [16:11:08]Sock 9.First char is OK [16:11:08]request: POST /json_proto HTTP/1.0 [16:11:08]Method: POST [16:11:08]URL: /json_proto [16:11:08]Method is POST - this is cgi request [16:11:08]url: /json_proto [16:11:08]query_string will be loaded in cgi processing [16:11:08]execute_cgi json_proto POST (null) [16:11:08]execute_cgi path=json_proto method=POST [16:11:08]POST find Content-Length [16:11:08]Host: 172.17.38.133:8080 [16:11:08]Content-Length: 677 [16:11:08]Content-Type: application/json [16:11:08] [16:11:08]POST finish read [16:11:08]Found Content-Length = 677 [16:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673995", "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:11:08]execute_script... [16:11: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)673995", "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:11:08]POST & json_proto [16:11:08]process_json_proto [16:11:08]json parsed OK: [16:11:08]protocol is kg_v1.0 [16:11:08]action value=close_receipt [16:11:08]process_action close_receipt [16:11:08]cmd_close_receipt [16:11:08]MH_GetDate [16:11:08]Write to MH i2c: F0 00 00 D1 22 E2 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 09 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 09 00 D1 22 00 9E F7 76 66 BD 8F 7C 64 88 [16:11:08]GetLastDocTimeStamp 1719072003 [16:11:08]current date 1719072670 [16:11:08]FM_GetShiftState [16:11:08]SAM_PROTO_GetShiftState [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 13 01 00 [16:11:08]Write to MH i2c: E2 08 00 D2 22 80 13 01 00 00 00 00 00 71 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 D2 22 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 63 [16:11:08]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_GetShiftState done [16:11:08]FM_GetShiftState done [16:11:08]opened in 1719016176 [16:11:08]opened+sec_in_day 1719102576 [16:11:08]quantity*price = 50065 [16:11:08]sum+1 = 50067 [16:11:08]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 СНО: Общий режим Чек 162 22.06.2024 16:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104429 ФПД: 170307334971666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104429&fm=170307334971666&tin=02508201610067®Number=0000000000092785&sum=50000 [16:11:09]StoreToDocumentArchive [16:11:09]shift 356 fd 104429 [16:11:09]save to /storage/0356/doc_00104429 [16:11:09]save last doc name /storage/0356/doc_00104429 to /storage/kkm_last_doc_name [16:11:09]save OK [16:11:09]Clear old archive folders... [16:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:09]tlvbuf is 00FC54E0 [16:11:09]SAM_PROTO_ClearQueue [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 09 00 00 [16:11:09]Write to MH i2c: E2 08 00 DF 22 80 09 00 00 00 00 00 00 73 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:09]OFD Sender: No OFD packet to send [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [16:11:09]RAPDU: 90 00 [16:11:09]wFMCommunicate OK [16:11:09]SAM_PROTO_ClearQueue done [16:11:09]KKMCreateOFDPacket [16:11:09]OFDProtocolAddRootSTLVToBuf [16:11:09]FM_MakeSignedData [16:11:09]FM_MakeSignedData [16:11:09]SAM_PROTO_SignData [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 0D 01 02 [16:11:09]Write to MH i2c: E2 08 00 E0 22 80 0D 01 02 00 00 00 00 7B [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 E0 22 00 90 00 76 [16:11:09]RAPDU: 90 00 [16:11:09]wFMCommunicate OK [16:11:09]wFMCommunicate request_size=255 [16:11:09]MH_SAM_APDU [16:11: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 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 A2 00 00 00 F4 03 04 00 9E F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A [16:11:09]Write to MH i2c: E2 02 01 E1 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A2 00 00 00 F4 03 04 00 9E F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A 00 00 CC [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 E1 22 00 90 00 77 [16:11:09]RAPDU: 90 00 [16:11:09]wFMCommunicate OK [16:11:09]wFMCommunicate request_size=10 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 0D 02 02 05 E4 C4 34 21 12 [16:11:09]Write to MH i2c: E2 0D 00 E2 22 80 0D 02 02 05 00 E4 C4 34 21 12 00 00 97 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 03 00 E2 22 00 90 00 78 [16:11:09]RAPDU: 90 00 [16:11:09]wFMCommunicate OK [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 0D 03 02 [16:11:09]Write to MH i2c: E2 08 00 E3 22 80 0D 03 02 00 00 00 00 80 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 0B 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 0B 00 E3 22 00 4A 84 12 C3 8B FB 64 9B 90 00 A9 [16:11:09]RAPDU: 4A 84 12 C3 8B FB 64 9B 90 00 [16:11:09]wFMCommunicate OK [16:11:09]SAM_PROTO_SignData done [16:11:09]FM_MakeSignedData done [16:11:09]CreateOFDProtocolMessage [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 11 00 00 [16:11:09]Write to MH i2c: E2 08 00 E4 22 80 11 00 00 00 00 00 00 80 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 17 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 17 00 E4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [16: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 [16:11:09]wFMCommunicate OK [16:11:09]CreateOFDProtocolMessage done [16:11:09]OFDSenderStorePacket 104429 [16:11:09]StoreOFDPacket docnum=104429 [16:11: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 A6 9C 07 01 E6 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 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 A2 00 00 00 F4 03 04 00 9E F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A E4 C4 34 21 12 4A 84 12 C3 8B FB 64 9B [16:11:09]CheckFolder [16:11:09]dirname=/storage/ofd_packets [16:11:09]CheckFolder done [16:11:09]ProducePacketName [16:11:09]name=ofd_packets/00104429 [16:11:09]NVStorageSaveData ofd_packets/00104429 [16:11:09]File name is /storage/ofd_packets/00104429 [16:11:09]Write 301 bytes [16:11:09]NVStorageSaveData done [16:11:09]OFDSenderStorePacket done [16:11:09]KKMCreateOFDPacket done [16:11:09]NVStorageSaveData kkm_last_timestamp [16:11:09]File name is /storage/kkm_last_timestamp [16:11:09]Write 4 bytes [16:11:09]NVStorageSaveData done [16:11:09]ExternCall_PrintAddStr [16:11:09]wPrintStart [16:11:09]Write to MH i2c: 01 00 00 E5 22 07 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 07 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 07 00 E5 22 00 00 00 00 00 FF 0F 1C [16:11:09]RasterBufferAndPrint [16:11:09]line Счет N : (1)673995 [16:11:09]line ИНН: 02508201610067 [16:11:09]line Контрольно-Кассовый Чек [16:11:09]line ПРОДАЖА [16:11:09]line ТРК (МРК, ГНК) : 32 [16:11:09]line Товар: 2710124130 [16:11:09]line Аи-92-К-5 [16:11:09]line 7.540 * 66.40 [16:11:09]line = 500.66 [16:11:09]line НДС 12% НСП 1% [16:11:09]line > о реализуемом товаре [16:11:09]line ОКРУГЛЕНИЕ: -0.66 [16:11:09]line ИТОГО: 500.00 [16:11:09]line Внесено: 500.00 [16:11:09]line СДАЧА: 0.00 [16:11:09]line НСП 1% : 4.43 [16:11:09]line НДС 12% : 53.17 [16:11:09]line Наличными: 500.00 [16:11:09]line Безнал.: 0.00 [16:11:09]line Место: АЗС № 120 "Партнер Нефть" [16:11:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:11:09]line СНО: Общий режим [16:11:09]line Чек 162 22.06.2024 16:11 [16:11:09]line Смена: 356 ФФД: 1.0 [16:11:09]line ЗНМ: 0300000164 [16:11:09]line РНМ: 0000000000092785 [16:11:09]line Версия ККМ: 001 [16:11:09]line ФМ: 0000000000875093 [16:11:09]line ФД: 104429 [16:11:09]line ФПД: 170307334971666 [16:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104429&fm=170307334971666&tin=02508201610067®Number=0000000000092785&sum=50000 [16:11:10]OFD Sender: Processing packet 104429 [packets to send 17, broken 16] [16:11:10]ProducePacketName [16:11:10]name=ofd_packets/00104429 [16:11:10]OFD Sender: To server: pG, [16:11:10]CommunicateWithHost lk.salyk.kg:30040 [16:11:10]ConnectInit lk.salyk.kg [16:11:10]written 0, free lines is 4095 [16:11:10]Connected sock=10 [16:11: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 A6 9C 07 01 E6 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 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 A2 00 00 00 F4 03 04 00 9E F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 9A E4 C4 34 21 12 4A 84 12 C3 8B FB 64 9B [16:11: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 F0 9F 47 00 31 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 ED 97 01 00 F4 03 04 00 1C 9E 76 66 B6 04 01 00 00 F7 BC 1E 05 F9 F5 24 90 [16:11:10]CommunicateWithHost err = 0 [16:11:10]CheckOFDResponse [16:11:10]1017 (14) - 77093643461234 [16:11:10]1041 (16) - 0000000000875093 [16:11:10]1040 (4) - 104429 [16:11:10]1012 (4) - 22.06.2024 09:49 [16:11:10]1206 (1) - 0 [16:11:10]OFD Sender: Remove packet 104429 [16:11:10]ProducePacketName [16:11:10]name=ofd_packets/00104429 [16:11:10]NVStorageDeleteData [16:11:10]Write to MH i2c: 01 00 00 10 23 33 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 10 23 00 00 00 00 00 E4 0C 2A [16:11:10]RasterBufferAndPrint [16:11:10]line [16:11:10]line [16:11:10]line [16:11:10]line [16:11:10]line [16:11:10]written 0, free lines is 3306 [16:11:10]MH_Cut [16:11:10]Write to MH i2c: D1 01 00 17 23 01 0C [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: D1 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: D1 01 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: D1 01 00 17 23 00 0B [16:11:10]Write to MH i2c: 01 00 00 18 23 3B [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:11]OFD Sender: No OFD packet to send [16:11:11]*** Cut start [16:11:11]*** Partial cut [16:11:11]*** CUTSNS_PIN = 1 [16:11:11]*** CUTSNS_PIN = 0 [16:11:11]*** Brake cut motor [16:11:12]Read from MH i2c: 01 [16:11:12]MH_I2C_Read... [16:11:12]*** Stop cut motor [16:11:12]*** Cut end [16:11:12]Read from MH i2c: 01 07 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: 01 07 00 18 23 00 00 00 00 00 FF 0F 50 [16:11:12]process_action close_receipt done [16:11:12]requested_data is exist [16:11:12]produce_requested_data [16:11:12]requested_item fm.sn is exist - process it [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 11 00 00 [16:11:12]Write to MH i2c: E2 08 00 19 23 80 11 00 00 00 00 00 00 B6 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 17 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 17 00 19 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [16:11: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:11:12]wFMCommunicate OK [16:11:12]requested_item fd.num is exist - process it [16:11:12]SAM_PROTO_GetFieldsCounters [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 13 00 00 [16:11:12]Write to MH i2c: E2 08 00 1A 23 80 13 00 00 00 00 00 00 B9 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 62 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 62 00 1A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B0 [16:11: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 ED 97 01 00 0E 04 04 00 64 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:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_GetFieldsCounters done [16:11:12]requested_item shift.num is exist - process it [16:11:12]requested_item shift.opened is exist - process it [16:11:12]req_shift_opened [16:11:12]FM_GetShiftState [16:11:12]SAM_PROTO_GetShiftState [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 13 01 00 [16:11:12]Write to MH i2c: E2 08 00 1B 23 80 13 01 00 00 00 00 00 BB [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0E 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0E 00 1B 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AD [16:11:12]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_GetShiftState done [16:11:12]FM_GetShiftState done [16:11:12]req_shift_opened done [16:11:12]requested_item shift.open_date is exist - process it [16:11:12]req_shift_open_date [16:11:12]req_shift_open_date done [16:11:12]produce_requested_data done [16:11:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104429,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:11:12]process_action_free close_receipt [16:11:12]json_value_free [16:11:12]json_value_free done [16:11:12]process_json_proto returns [16:11:12]Send response to host [16:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104429,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:11:12]free response buf [16:11:12]execute_script done [16:11:12]execute_script returns [16:11:12]free content buf [16:11:12]Sock 9.Close socket [16:11:12]Sock 9.Thread stoped [16:11:12]accept exits with 7 [16:11:12]New connection [16:11:12]New thread 3066592612 created [16:11:12]Thread 3066449252 joined [16:11:12]Waiting for new connection... [16:11:12] Sock 7.Parse request [16:11:12]Sock 7.Check first char [16:11:12]Sock 7.First char is OK [16:11:12]request: POST /json_proto HTTP/1.0 [16:11:12]Method: POST [16:11:12]URL: /json_proto [16:11:12]Method is POST - this is cgi request [16:11:12]url: /json_proto [16:11:12]query_string will be loaded in cgi processing [16:11:12]execute_cgi json_proto POST (null) [16:11:12]execute_cgi path=json_proto method=POST [16:11:12]POST find Content-Length [16:11:12]Host: 172.17.38.133:8080 [16:11:12]Content-Length: 682 [16:11:12]Content-Type: application/json [16:11:12] [16:11:12]POST finish read [16:11:12]Found Content-Length = 682 [16:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673997", "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:11:12]execute_script... [16:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673997", "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:11:12]POST & json_proto [16:11:12]process_json_proto [16:11:12]json parsed OK: [16:11:12]protocol is kg_v1.0 [16:11:12]action value=close_receipt [16:11:12]process_action close_receipt [16:11:12]cmd_close_receipt [16:11:12]MH_GetDate [16:11:12]Write to MH i2c: F0 00 00 1C 23 2E [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: F0 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: F0 09 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: F0 09 00 1C 23 00 A2 F7 76 66 BD 8F 7C 64 D8 [16:11:12]GetLastDocTimeStamp 1719072670 [16:11:12]current date 1719072674 [16:11:12]FM_GetShiftState [16:11:12]SAM_PROTO_GetShiftState [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 13 01 00 [16:11:12]Write to MH i2c: E2 08 00 1D 23 80 13 01 00 00 00 00 00 BD [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0E 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0E 00 1D 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 AF [16:11:12]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_GetShiftState done [16:11:12]FM_GetShiftState done [16:11:12]opened in 1719016176 [16:11:12]opened+sec_in_day 1719102576 [16:11:12]quantity*price = 100064 [16:11:12]sum+1 = 100066 [16:11: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 СНО: Общий режим Чек 163 22.06.2024 16:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104430 ФПД: 158123242937253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161114&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104430&fm=158123242937253&tin=02508201610067®Number=0000000000092785&sum=100000 [16:11:14]StoreToDocumentArchive [16:11:14]shift 356 fd 104430 [16:11:14]save to /storage/0356/doc_00104430 [16:11:14]save last doc name /storage/0356/doc_00104430 to /storage/kkm_last_doc_name [16:11:14]save OK [16:11:14]Clear old archive folders... [16:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:14]tlvbuf is 01055720 [16:11:14]SAM_PROTO_ClearQueue [16:11:14]wFMCommunicate request_size=4 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 09 00 00 [16:11:14]Write to MH i2c: E2 08 00 2A 23 80 09 00 00 00 00 00 00 BF [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 2A 23 00 90 00 C1 [16:11:14]RAPDU: 90 00 [16:11:14]wFMCommunicate OK [16:11:14]SAM_PROTO_ClearQueue done [16:11:14]KKMCreateOFDPacket [16:11:14]OFDProtocolAddRootSTLVToBuf [16:11:14]FM_MakeSignedData [16:11:14]FM_MakeSignedData [16:11:14]SAM_PROTO_SignData [16:11:14]wFMCommunicate request_size=4 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 0D 01 02 [16:11:14]Write to MH i2c: E2 08 00 2B 23 80 0D 01 02 00 00 00 00 C7 [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 2B 23 00 90 00 C2 [16:11:14]RAPDU: 90 00 [16:11:14]wFMCommunicate OK [16:11:14]wFMCommunicate request_size=255 [16:11:14]MH_SAM_APDU [16:11: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 A3 00 00 00 F4 03 04 00 A2 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F [16:11:14]Write to MH i2c: E2 02 01 2C 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 00 00 00 F4 03 04 00 A2 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F 00 00 63 [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 2C 23 00 90 00 C3 [16:11:14]RAPDU: 90 00 [16:11:14]wFMCommunicate OK [16:11:14]wFMCommunicate request_size=10 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 0D 02 02 05 CF EF B9 DB A5 [16:11:14]Write to MH i2c: E2 0D 00 2D 23 80 0D 02 02 05 00 CF EF B9 DB A5 00 00 CB [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 03 00 2D 23 00 90 00 C4 [16:11:14]RAPDU: 90 00 [16:11:14]wFMCommunicate OK [16:11:14]wFMCommunicate request_size=4 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 0D 03 02 [16:11:14]Write to MH i2c: E2 08 00 2E 23 80 0D 03 02 00 00 00 00 CC [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 0B 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 0B 00 2E 23 00 71 99 34 D3 6E 4B 32 38 90 00 01 [16:11:14]RAPDU: 71 99 34 D3 6E 4B 32 38 90 00 [16:11:14]wFMCommunicate OK [16:11:14]SAM_PROTO_SignData done [16:11:14]FM_MakeSignedData done [16:11:14]CreateOFDProtocolMessage [16:11:14]wFMCommunicate request_size=4 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 11 00 00 [16:11:14]Write to MH i2c: E2 08 00 2F 23 80 11 00 00 00 00 00 00 CC [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 17 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 17 00 2F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [16:11: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:11:14]wFMCommunicate OK [16:11:14]CreateOFDProtocolMessage done [16:11:14]OFDSenderStorePacket 104430 [16:11:14]StoreOFDPacket docnum=104430 [16:11: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 50 30 07 01 A4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A3 00 00 00 F4 03 04 00 A2 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F CF EF B9 DB A5 71 99 34 D3 6E 4B 32 38 [16:11:14]CheckFolder [16:11:14]dirname=/storage/ofd_packets [16:11:14]CheckFolder done [16:11:14]ProducePacketName [16:11:14]name=ofd_packets/00104430 [16:11:14]NVStorageSaveData ofd_packets/00104430 [16:11:14]File name is /storage/ofd_packets/00104430 [16:11:14]Write 301 bytes [16:11:14]NVStorageSaveData done [16:11:14]OFDSenderStorePacket done [16:11:14]KKMCreateOFDPacket done [16:11:14]NVStorageSaveData kkm_last_timestamp [16:11:14]File name is /storage/kkm_last_timestamp [16:11:14]Write 4 bytes [16:11:14]NVStorageSaveData done [16:11:14]ExternCall_PrintAddStr [16:11:14]wPrintStart [16:11:14]Write to MH i2c: 01 00 00 30 23 53 [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: 01 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: 01 07 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: 01 07 00 30 23 00 00 00 00 00 FF 0F 68 [16:11:14]RasterBufferAndPrint [16:11:14]line Счет N : (1)673997 [16:11:14]line ИНН: 02508201610067 [16:11:14]line Контрольно-Кассовый Чек [16:11:14]line ПРОДАЖА [16:11:14]line ТРК (МРК, ГНК) : 42 [16:11:14]line Товар: 2710124130 [16:11:14]line Аи-92-К-5 [16:11:14]line 15.070 * 66.40 [16:11:14]line = 1000.65 [16:11:14]line НДС 12% НСП 1% [16:11:14]line > о реализуемом товаре [16:11:14]line ОКРУГЛЕНИЕ: -0.65 [16:11:14]line ИТОГО: 1000.00 [16:11:14]line Внесено: 1000.00 [16:11:14]line СДАЧА: 0.00 [16:11:14]line НСП 1% : 8.85 [16:11:14]line НДС 12% : 106.26 [16:11:14]line Наличными: 1000.00 [16:11:14]line Безнал.: 0.00 [16:11:15]line Место: АЗС № 120 "Партнер Нефть" [16:11:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:11:15]line СНО: Общий режим [16:11:15]line Чек 163 22.06.2024 16:11 [16:11:15]line Смена: 356 ФФД: 1.0 [16:11:15]line ЗНМ: 0300000164 [16:11:15]line РНМ: 0000000000092785 [16:11:15]line Версия ККМ: 001 [16:11:15]line ФМ: 0000000000875093 [16:11:15]line ФД: 104430 [16:11:15]line ФПД: 158123242937253 [16:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161114&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104430&fm=158123242937253&tin=02508201610067®Number=0000000000092785&sum=100000 [16:11:15]OFD Sender: Processing packet 104430 [packets to send 17, broken 16] [16:11:15]ProducePacketName [16:11:15]name=ofd_packets/00104430 [16:11:15]OFD Sender: To server: pG, [16:11:15]CommunicateWithHost lk.salyk.kg:30040 [16:11:15]ConnectInit lk.salyk.kg [16:11:15]written 0, free lines is 4095 [16:11:15]Connected sock=10 [16:11: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 50 30 07 01 A4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A3 00 00 00 F4 03 04 00 A2 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 8F CF EF B9 DB A5 71 99 34 D3 6E 4B 32 38 [16:11: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 56 72 47 00 0F 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 EE 97 01 00 F4 03 04 00 21 9E 76 66 B6 04 01 00 00 CE C5 43 CB 25 0A C6 F0 [16:11:15]CommunicateWithHost err = 0 [16:11:15]CheckOFDResponse [16:11:15]1017 (14) - 77093643461234 [16:11:15]1041 (16) - 0000000000875093 [16:11:15]1040 (4) - 104430 [16:11:15]1012 (4) - 22.06.2024 09:49 [16:11:15]1206 (1) - 0 [16:11:15]OFD Sender: Remove packet 104430 [16:11:15]ProducePacketName [16:11:15]name=ofd_packets/00104430 [16:11:15]NVStorageDeleteData [16:11:15]Write to MH i2c: 01 00 00 5B 23 7E [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: 01 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: 01 07 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 E8 0C 79 [16:11:15]RasterBufferAndPrint [16:11:15]line [16:11:15]line [16:11:15]line [16:11:15]line [16:11:15]line [16:11:15]written 0, free lines is 3319 [16:11:15]MH_Cut [16:11:15]Write to MH i2c: D1 01 00 62 23 01 57 [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: D1 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: D1 01 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: D1 01 00 62 23 00 56 [16:11:15]Write to MH i2c: 01 00 00 63 23 86 [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]OFD Sender: No OFD packet to send [16:11:16]*** Cut start [16:11:16]*** Partial cut [16:11:16]*** CUTSNS_PIN = 1 [16:11:16]*** CUTSNS_PIN = 0 [16:11:16]*** Brake cut motor [16:11:16]Read from MH i2c: 01 [16:11:16]MH_I2C_Read... [16:11:16]*** Stop cut motor [16:11:16]*** Cut end [16:11:16]Read from MH i2c: 01 07 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: 01 07 00 63 23 00 00 00 00 00 FF 0F 9B [16:11:16]process_action close_receipt done [16:11:16]requested_data is exist [16:11:16]produce_requested_data [16:11:16]requested_item fm.sn is exist - process it [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 11 00 00 [16:11:16]Write to MH i2c: E2 08 00 64 23 80 11 00 00 00 00 00 00 01 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 17 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 17 00 64 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [16:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:11:16]wFMCommunicate OK [16:11:16]requested_item fd.num is exist - process it [16:11:16]SAM_PROTO_GetFieldsCounters [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 13 00 00 [16:11:16]Write to MH i2c: E2 08 00 65 23 80 13 00 00 00 00 00 00 04 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:17]Read from MH i2c: E2 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 62 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 62 00 65 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 FF [16:11: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 EE 97 01 00 0E 04 04 00 64 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:11:17]wFMCommunicate OK [16:11:17]SAM_PROTO_GetFieldsCounters done [16:11:17]requested_item shift.num is exist - process it [16:11:17]requested_item shift.opened is exist - process it [16:11:17]req_shift_opened [16:11:17]FM_GetShiftState [16:11:17]SAM_PROTO_GetShiftState [16:11:17]wFMCommunicate request_size=4 [16:11:17]MH_SAM_APDU [16:11:17]CAPDU: 80 13 01 00 [16:11:17]Write to MH i2c: E2 08 00 66 23 80 13 01 00 00 00 00 00 06 [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:17]Read from MH i2c: E2 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 0E 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 0E 00 66 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F8 [16:11:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:17]wFMCommunicate OK [16:11:17]SAM_PROTO_GetShiftState done [16:11:17]FM_GetShiftState done [16:11:17]req_shift_opened done [16:11:17]requested_item shift.open_date is exist - process it [16:11:17]req_shift_open_date [16:11:17]req_shift_open_date done [16:11:17]produce_requested_data done [16:11:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104430,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:11:17]process_action_free close_receipt [16:11:17]json_value_free [16:11:17]json_value_free done [16:11:17]process_json_proto returns [16:11:17]Send response to host [16:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104430,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:11:17]free response buf [16:11:17]execute_script done [16:11:17]execute_script returns [16:11:17]free content buf [16:11:17]Sock 7.Close socket [16:11:17]Sock 7.Thread stoped [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:28]accept exits with 9 [16:11:28]New connection [16:11:28]New thread 3066449252 created [16:11:28]Thread 3066592612 joined [16:11:28]Waiting for new connection... [16:11:28] Sock 9.Parse request [16:11:28]Sock 9.Check first char [16:11:28]Sock 9.First char is OK [16:11:28]request: POST /json_proto HTTP/1.0 [16:11:28]Method: POST [16:11:28]URL: /json_proto [16:11:28]Method is POST - this is cgi request [16:11:28]url: /json_proto [16:11:28]query_string will be loaded in cgi processing [16:11:28]execute_cgi json_proto POST (null) [16:11:28]execute_cgi path=json_proto method=POST [16:11:28]POST find Content-Length [16:11:28]Host: 172.17.38.133:8080 [16:11:28]Content-Length: 687 [16:11:28]Content-Type: application/json [16:11:28] [16:11:28]POST finish read [16:11:28]Found Content-Length = 687 [16:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673996", "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" ] } } [16:11:28]execute_script... [16:11: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)673996", "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" ] } } [16:11:28]POST & json_proto [16:11:28]process_json_proto [16:11:28]json parsed OK: [16:11:28]protocol is kg_v1.0 [16:11:28]action value=close_receipt [16:11:28]process_action close_receipt [16:11:28]cmd_close_receipt [16:11:28]MH_GetDate [16:11:28]Write to MH i2c: F0 00 00 67 23 79 [16:11:28]Write i2c OK [16:11:28]MH_I2C_Read... [16:11:28]Read from MH i2c: F0 [16:11:28]MH_I2C_Read... [16:11:28]Read from MH i2c: F0 09 00 [16:11:28]MH_I2C_Read... [16:11:28]Read from MH i2c: F0 09 00 67 23 00 B2 F7 76 66 BD 8F 7C 64 33 [16:11:28]GetLastDocTimeStamp 1719072674 [16:11:28]current date 1719072690 [16:11:28]FM_GetShiftState [16:11:28]SAM_PROTO_GetShiftState [16:11:28]wFMCommunicate request_size=4 [16:11:28]MH_SAM_APDU [16:11:28]CAPDU: 80 13 01 00 [16:11:28]Write to MH i2c: E2 08 00 68 23 80 13 01 00 00 00 00 00 08 [16:11:28]Write i2c OK [16:11:28]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 0E 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 0E 00 68 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 FA [16:11:29]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:29]wFMCommunicate OK [16:11:29]SAM_PROTO_GetShiftState done [16:11:29]FM_GetShiftState done [16:11:29]opened in 1719016176 [16:11:29]opened+sec_in_day 1719102576 [16:11:29]quantity*price = 100018 [16:11:29]sum+1 = 100020 [16:11:29]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 СНО: Общий режим Чек 164 22.06.2024 16:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104431 ФПД: 96516681417960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104431&fm=96516681417960&tin=02508201610067®Number=0000000000092785&sum=100000 [16:11:30]StoreToDocumentArchive [16:11:30]shift 356 fd 104431 [16:11:30]save to /storage/0356/doc_00104431 [16:11:30]save last doc name /storage/0356/doc_00104431 to /storage/kkm_last_doc_name [16:11:30]save OK [16:11:30]Clear old archive folders... [16:11:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:11:30]tlvbuf is B6E69D50 [16:11:30]SAM_PROTO_ClearQueue [16:11:30]wFMCommunicate request_size=4 [16:11:30]MH_SAM_APDU [16:11:30]CAPDU: 80 09 00 00 [16:11:30]Write to MH i2c: E2 08 00 75 23 80 09 00 00 00 00 00 00 0A [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 75 23 00 90 00 0C [16:11:30]RAPDU: 90 00 [16:11:30]wFMCommunicate OK [16:11:30]SAM_PROTO_ClearQueue done [16:11:30]KKMCreateOFDPacket [16:11:30]OFDProtocolAddRootSTLVToBuf [16:11:30]FM_MakeSignedData [16:11:30]FM_MakeSignedData [16:11:30]SAM_PROTO_SignData [16:11:30]wFMCommunicate request_size=4 [16:11:30]MH_SAM_APDU [16:11:30]CAPDU: 80 0D 01 02 [16:11:30]Write to MH i2c: E2 08 00 76 23 80 0D 01 02 00 00 00 00 12 [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [16:11:30]RAPDU: 90 00 [16:11:30]wFMCommunicate OK [16:11:30]wFMCommunicate request_size=255 [16:11:30]MH_SAM_APDU [16:11:30]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 A4 00 00 00 F4 03 04 00 B3 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:11:30]Write to MH i2c: E2 02 01 77 23 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 A4 00 00 00 F4 03 04 00 B3 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 7C [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 77 23 00 90 00 0E [16:11:30]RAPDU: 90 00 [16:11:30]wFMCommunicate OK [16:11:30]wFMCommunicate request_size=11 [16:11:30]MH_SAM_APDU [16:11:30]CAPDU: 80 0D 02 02 06 57 C8 0A 82 C4 E8 [16:11:30]Write to MH i2c: E2 0E 00 78 23 80 0D 02 02 06 00 57 C8 0A 82 C4 E8 00 00 78 [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 03 00 78 23 00 90 00 0F [16:11:30]RAPDU: 90 00 [16:11:30]wFMCommunicate OK [16:11:30]wFMCommunicate request_size=4 [16:11:30]MH_SAM_APDU [16:11:30]CAPDU: 80 0D 03 02 [16:11:30]Write to MH i2c: E2 08 00 79 23 80 0D 03 02 00 00 00 00 17 [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 0B 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 0B 00 79 23 00 52 ED 5E 90 0E DD 29 38 90 00 91 [16:11:30]RAPDU: 52 ED 5E 90 0E DD 29 38 90 00 [16:11:30]wFMCommunicate OK [16:11:30]SAM_PROTO_SignData done [16:11:30]FM_MakeSignedData done [16:11:30]CreateOFDProtocolMessage [16:11:30]wFMCommunicate request_size=4 [16:11:30]MH_SAM_APDU [16:11:30]CAPDU: 80 11 00 00 [16:11:30]Write to MH i2c: E2 08 00 7A 23 80 11 00 00 00 00 00 00 17 [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 17 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 17 00 7A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6A [16: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 [16:11:30]wFMCommunicate OK [16:11:30]CreateOFDProtocolMessage done [16:11:30]OFDSenderStorePacket 104431 [16:11:30]StoreOFDPacket docnum=104431 [16:11: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 6B 8B 08 01 36 B5 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 A4 00 00 00 F4 03 04 00 B3 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 57 C8 0A 82 C4 E8 52 ED 5E 90 0E DD 29 38 [16:11:30]CheckFolder [16:11:30]dirname=/storage/ofd_packets [16:11:30]CheckFolder done [16:11:30]ProducePacketName [16:11:30]name=ofd_packets/00104431 [16:11:30]NVStorageSaveData ofd_packets/00104431 [16:11:30]File name is /storage/ofd_packets/00104431 [16:11:30]Write 302 bytes [16:11:30]NVStorageSaveData done [16:11:30]OFDSenderStorePacket done [16:11:30]KKMCreateOFDPacket done [16:11:30]NVStorageSaveData kkm_last_timestamp [16:11:30]File name is /storage/kkm_last_timestamp [16:11:30]Write 4 bytes [16:11:30]NVStorageSaveData done [16:11:30]ExternCall_PrintAddStr [16:11:30]wPrintStart [16:11:30]Write to MH i2c: 01 00 00 7B 23 9E [16:11:30]Write i2c OK [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 07 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: 01 07 00 7B 23 00 00 00 00 00 FF 0F B3 [16:11:30]RasterBufferAndPrint [16:11:30]line Счет N : (1)673996 [16:11:30]line ИНН: 02508201610067 [16:11:30]line Контрольно-Кассовый Чек [16:11:30]line ПРОДАЖА [16:11:30]line ТРК (МРК, ГНК) : 21 [16:11:30]line Товар: 2710194210 [16:11:30]line ДТ(л)-К-5 [16:11:30]line 13.720 * 72.90 [16:11:30]line = 1000.19 [16:11:30]line НДС 12% НСП 1% [16:11:30]line > о реализуемом товаре [16:11:30]line ОКРУГЛЕНИЕ: -0.19 [16:11:30]line ИТОГО: 1000.00 [16:11:30]line Внесено: 1000.00 [16:11:30]line СДАЧА: 0.00 [16:11:30]line НСП 1% : 8.85 [16:11:30]line НДС 12% : 106.21 [16:11:30]line Наличными: 1000.00 [16:11:30]line Безнал.: 0.00 [16:11:30]line Место: АЗС № 120 "Партнер Нефть" [16:11:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:11:30]line СНО: Общий режим [16:11:30]line Чек 164 22.06.2024 16:11 [16:11:30]line Смена: 356 ФФД: 1.0 [16:11:30]line ЗНМ: 0300000164 [16:11:30]line РНМ: 0000000000092785 [16:11:30]line Версия ККМ: 001 [16:11:30]line ФМ: 0000000000875093 [16:11:30]line ФД: 104431 [16:11:30]line ФПД: 96516681417960 [16:11:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104431&fm=96516681417960&tin=02508201610067®Number=0000000000092785&sum=100000 [16:11:30]written 0, free lines is 4095 [16:11:30]OFD Sender: Processing packet 104431 [packets to send 17, broken 16] [16:11:30]ProducePacketName [16:11:30]name=ofd_packets/00104431 [16:11:30]OFD Sender: To server: pG, [16:11:30]CommunicateWithHost lk.salyk.kg:30040 [16:11:30]ConnectInit lk.salyk.kg [16:11:30]Connected sock=10 [16:11: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 6B 8B 08 01 36 B5 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 A4 00 00 00 F4 03 04 00 B3 F7 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 57 C8 0A 82 C4 E8 52 ED 5E 90 0E DD 29 38 [16:11: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 97 BA 47 00 96 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 97 01 00 F4 03 04 00 31 9E 76 66 B6 04 01 00 00 00 08 18 BD 16 FC 50 B8 [16:11:31]CommunicateWithHost err = 0 [16:11:31]CheckOFDResponse [16:11:31]1017 (14) - 77093643461234 [16:11:31]1041 (16) - 0000000000875093 [16:11:31]1040 (4) - 104431 [16:11:31]1012 (4) - 22.06.2024 09:49 [16:11:31]1206 (1) - 0 [16:11:31]OFD Sender: Remove packet 104431 [16:11:31]ProducePacketName [16:11:31]name=ofd_packets/00104431 [16:11:31]NVStorageDeleteData [16:11:31]Write to MH i2c: 01 00 00 A6 23 C9 [16:11:31]Write i2c OK [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: 01 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: 01 07 00 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: 01 07 00 A6 23 00 00 00 00 00 F0 0C CC [16:11:31]RasterBufferAndPrint [16:11:31]line [16:11:31]line [16:11:31]line [16:11:31]line [16:11:31]line [16:11:31]written 0, free lines is 3328 [16:11:31]MH_Cut [16:11:31]Write to MH i2c: D1 01 00 AD 23 01 A2 [16:11:31]Write i2c OK [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: D1 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: D1 01 00 [16:11:31]MH_I2C_Read... [16:11:31]Read from MH i2c: D1 01 00 AD 23 00 A1 [16:11:31]Write to MH i2c: 01 00 00 AE 23 D1 [16:11:31]Write i2c OK [16:11:31]MH_I2C_Read... [16:11:31]OFD Sender: No OFD packet to send [16:11:32]*** Cut start [16:11:32]*** Partial cut [16:11:32]*** CUTSNS_PIN = 1 [16:11:32]*** CUTSNS_PIN = 0 [16:11:32]*** Brake cut motor [16:11:32]Read from MH i2c: 01 [16:11:32]MH_I2C_Read... [16:11:32]*** Stop cut motor [16:11:32]*** Cut end [16:11:32]Read from MH i2c: 01 07 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: 01 07 00 AE 23 00 00 00 00 00 FF 0F E6 [16:11:32]process_action close_receipt done [16:11:32]requested_data is exist [16:11:32]produce_requested_data [16:11:32]requested_item fm.sn is exist - process it [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 11 00 00 [16:11:32]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 17 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [16:11: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:11:32]wFMCommunicate OK [16:11:32]requested_item fd.num is exist - process it [16:11:32]SAM_PROTO_GetFieldsCounters [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 00 00 [16:11:32]Write to MH i2c: E2 08 00 B0 23 80 13 00 00 00 00 00 00 4F [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 62 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 62 00 B0 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 4E [16:11: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 EF 97 01 00 0E 04 04 00 64 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:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetFieldsCounters done [16:11:32]requested_item shift.num is exist - process it [16:11:32]requested_item shift.opened is exist - process it [16:11:32]req_shift_opened [16:11:32]FM_GetShiftState [16:11:32]SAM_PROTO_GetShiftState [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 01 00 [16:11:32]Write to MH i2c: E2 08 00 B1 23 80 13 01 00 00 00 00 00 51 [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 B1 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 43 [16:11:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetShiftState done [16:11:32]FM_GetShiftState done [16:11:32]req_shift_opened done [16:11:32]requested_item shift.open_date is exist - process it [16:11:32]req_shift_open_date [16:11:32]req_shift_open_date done [16:11:32]produce_requested_data done [16:11:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104431,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:11:32]process_action_free close_receipt [16:11:32]json_value_free [16:11:32]json_value_free done [16:11:32]process_json_proto returns [16:11:32]Send response to host [16:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104431,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:11:32]free response buf [16:11:32]execute_script done [16:11:32]execute_script returns [16:11:32]free content buf [16:11:32]Sock 9.Close socket [16:11:32]Sock 9.Thread stoped [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:28]accept exits with 7 [16:17:28]New connection [16:17:28]New thread 3066592612 created [16:17:28]Thread 3066449252 joined [16:17:28]Waiting for new connection... [16:17:28] Sock 7.Parse request [16:17:28]Sock 7.Check first char [16:17:28]Sock 7.First char is OK [16:17:28]request: POST /json_proto HTTP/1.0 [16:17:28]Method: POST [16:17:28]URL: /json_proto [16:17:28]Method is POST - this is cgi request [16:17:28]url: /json_proto [16:17:28]query_string will be loaded in cgi processing [16:17:28]execute_cgi json_proto POST (null) [16:17:28]execute_cgi path=json_proto method=POST [16:17:28]POST find Content-Length [16:17:28]Host: 172.17.38.133:8080 [16:17:28]Content-Length: 647 [16:17:28]Content-Type: application/json [16:17:28] [16:17:28]POST finish read [16:17:28]Found Content-Length = 647 [16:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673999", "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" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:28]execute_script... [16:17: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)673999", "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" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:28]POST & json_proto [16:17:28]process_json_proto [16:17:28]json parsed OK: [16:17:28]protocol is kg_v1.0 [16:17:28]action value=close_receipt [16:17:28]process_action close_receipt [16:17:28]cmd_close_receipt [16:17:28]MH_GetDate [16:17:28]Write to MH i2c: F0 00 00 B2 23 C4 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 09 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: F0 09 00 B2 23 00 1A F9 76 66 BD 8F 7C 64 E8 [16:17:28]GetLastDocTimeStamp 1719072691 [16:17:28]current date 1719073050 [16:17:28]FM_GetShiftState [16:17:28]SAM_PROTO_GetShiftState [16:17:28]wFMCommunicate request_size=4 [16:17:28]MH_SAM_APDU [16:17:28]CAPDU: 80 13 01 00 [16:17:28]Write to MH i2c: E2 08 00 B3 23 80 13 01 00 00 00 00 00 53 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 B3 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 45 [16:17:28]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:17:28]wFMCommunicate OK [16:17:28]SAM_PROTO_GetShiftState done [16:17:28]FM_GetShiftState done [16:17:28]opened in 1719016176 [16:17:28]opened+sec_in_day 1719102576 [16:17:28]quantity*price = 218700 [16:17:28]sum+1 = 218701 [16:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 2187.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 165 22.06.2024 16:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104432 ФПД: 91988549457151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161730&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104432&fm=91988549457151&tin=02508201610067®Number=0000000000092785&sum=218700 [16:17:30]StoreToDocumentArchive [16:17:30]shift 356 fd 104432 [16:17:30]save to /storage/0356/doc_00104432 [16:17:30]save last doc name /storage/0356/doc_00104432 to /storage/kkm_last_doc_name [16:17:30]save OK [16:17:30]Clear old archive folders... [16:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:17:30]tlvbuf is 01034200 [16:17:30]SAM_PROTO_ClearQueue [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 09 00 00 [16:17:30]Write to MH i2c: E2 08 00 C0 23 80 09 00 00 00 00 00 00 55 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 C0 23 00 90 00 57 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_ClearQueue done [16:17:30]KKMCreateOFDPacket [16:17:30]OFDProtocolAddRootSTLVToBuf [16:17:30]FM_MakeSignedData [16:17:30]FM_MakeSignedData [16:17:30]SAM_PROTO_SignData [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 01 02 [16:17:30]Write to MH i2c: E2 08 00 C1 23 80 0D 01 02 00 00 00 00 5D [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 C1 23 00 90 00 58 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=255 [16:17:30]MH_SAM_APDU [16:17:30]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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 1A F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:17:30]Write to MH i2c: E2 02 01 C2 23 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 1A F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 FC [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 C2 23 00 90 00 59 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=11 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 02 02 06 53 A9 C0 D0 54 FF [16:17:30]Write to MH i2c: E2 0E 00 C3 23 80 0D 02 02 06 00 53 A9 C0 D0 54 FF 00 00 4B [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 C3 23 00 90 00 5A [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 03 02 [16:17:30]Write to MH i2c: E2 08 00 C4 23 80 0D 03 02 00 00 00 00 62 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 C4 23 00 BE 31 45 EA E3 33 80 79 90 00 90 [16:17:30]RAPDU: BE 31 45 EA E3 33 80 79 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_SignData done [16:17:30]FM_MakeSignedData done [16:17:30]CreateOFDProtocolMessage [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 11 00 00 [16:17:30]Write to MH i2c: E2 08 00 C5 23 80 11 00 00 00 00 00 00 62 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 C5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [16:17: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:17:30]wFMCommunicate OK [16:17:30]CreateOFDProtocolMessage done [16:17:30]OFDSenderStorePacket 104432 [16:17:30]StoreOFDPacket docnum=104432 [16:17: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 E5 82 08 01 A5 10 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 1A F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 53 A9 C0 D0 54 FF BE 31 45 EA E3 33 80 79 [16:17:30]CheckFolder [16:17:30]dirname=/storage/ofd_packets [16:17:30]CheckFolder done [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00104432 [16:17:30]NVStorageSaveData ofd_packets/00104432 [16:17:30]File name is /storage/ofd_packets/00104432 [16:17:30]Write 302 bytes [16:17:30]NVStorageSaveData done [16:17:30]OFDSenderStorePacket done [16:17:30]KKMCreateOFDPacket done [16:17:30]NVStorageSaveData kkm_last_timestamp [16:17:30]File name is /storage/kkm_last_timestamp [16:17:30]Write 4 bytes [16:17:30]NVStorageSaveData done [16:17:30]ExternCall_PrintAddStr [16:17:30]wPrintStart [16:17:30]Write to MH i2c: 01 00 00 C6 23 E9 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 C6 23 00 00 00 00 00 FF 0F FE [16:17:30]RasterBufferAndPrint [16:17:30]line Счет N : (1)673999 [16:17:30]line ИНН: 02508201610067 [16:17:30]line Контрольно-Кассовый Чек [16:17:30]line ПРОДАЖА [16:17:30]line ТРК (МРК, ГНК) : 21 [16:17:30]line Товар: 2710194210 [16:17:30]line ДТ(л)-К-5 [16:17:30]line 30.000 * 72.90 [16:17:30]line = 2187.00 [16:17:30]line НДС 12% НСП 1% [16:17:30]line > о реализуемом товаре [16:17:30]line ИТОГО: 2187.00 [16:17:30]line НСП 1% : 19.35 [16:17:30]line НДС 12% : 232.25 [16:17:30]line Наличными: 2187.00 [16:17:30]line Безнал.: 0.00 [16:17:30]line Место: АЗС № 120 "Партнер Нефть" [16:17:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:17:30]line СНО: Общий режим [16:17:30]line Чек 165 22.06.2024 16:17 [16:17:30]line Смена: 356 ФФД: 1.0 [16:17:30]line ЗНМ: 0300000164 [16:17:30]line РНМ: 0000000000092785 [16:17:30]line Версия ККМ: 001 [16:17:30]line ФМ: 0000000000875093 [16:17:30]line ФД: 104432 [16:17:30]line ФПД: 91988549457151 [16:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161730&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104432&fm=91988549457151&tin=02508201610067®Number=0000000000092785&sum=218700 [16:17:30]OFD Sender: Processing packet 104432 [packets to send 17, broken 16] [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00104432 [16:17:30]OFD Sender: To server: pG, [16:17:30]CommunicateWithHost lk.salyk.kg:30040 [16:17:30]ConnectInit lk.salyk.kg [16:17:30]written 0, free lines is 4095 [16:17:31]Connected sock=10 [16:17: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 10 01 00 00 E5 82 08 01 A5 10 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 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 1A F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 53 A9 C0 D0 54 FF BE 31 45 EA E3 33 80 79 [16:17: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 90 5F 47 00 1F 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 F0 97 01 00 F4 03 04 00 99 9F 76 66 B6 04 01 00 00 B6 D0 A7 FA F0 4A 83 54 [16:17:31]CommunicateWithHost err = 0 [16:17:31]CheckOFDResponse [16:17:31]1017 (14) - 77093643461234 [16:17:31]1041 (16) - 0000000000875093 [16:17:31]1040 (4) - 104432 [16:17:31]1012 (4) - 22.06.2024 09:55 [16:17:31]1206 (1) - 0 [16:17:31]OFD Sender: Remove packet 104432 [16:17:31]ProducePacketName [16:17:31]name=ofd_packets/00104432 [16:17:31]NVStorageDeleteData [16:17:31]Write to MH i2c: 01 00 00 EE 23 11 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 EE 23 00 00 00 00 00 0D 0D 32 [16:17:31]RasterBufferAndPrint [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]written 0, free lines is 3346 [16:17:31]MH_Cut [16:17:31]Write to MH i2c: D1 01 00 F5 23 01 EA [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 01 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 01 00 F5 23 00 E9 [16:17:31]Write to MH i2c: 01 00 00 F6 23 19 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]OFD Sender: No OFD packet to send [16:17:32]*** Cut start [16:17:32]*** Partial cut [16:17:32]*** CUTSNS_PIN = 1 [16:17:32]*** CUTSNS_PIN = 0 [16:17:32]*** Brake cut motor [16:17:32]Read from MH i2c: 01 [16:17:32]MH_I2C_Read... [16:17:32]*** Stop cut motor [16:17:32]*** Cut end [16:17:32]Read from MH i2c: 01 07 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: 01 07 00 F6 23 00 00 00 00 00 FF 0F 2E [16:17:32]process_action close_receipt done [16:17:32]requested_data is exist [16:17:32]produce_requested_data [16:17:32]requested_item fm.sn is exist - process it [16:17:32]wFMCommunicate request_size=4 [16:17:32]MH_SAM_APDU [16:17:32]CAPDU: 80 11 00 00 [16:17:32]Write to MH i2c: E2 08 00 F7 23 80 11 00 00 00 00 00 00 94 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:32]Read from MH i2c: E2 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 17 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 17 00 F7 23 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:17: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:17:32]wFMCommunicate OK [16:17:32]requested_item fd.num is exist - process it [16:17:32]SAM_PROTO_GetFieldsCounters [16:17:32]wFMCommunicate request_size=4 [16:17:32]MH_SAM_APDU [16:17:32]CAPDU: 80 13 00 00 [16:17:32]Write to MH i2c: E2 08 00 F8 23 80 13 00 00 00 00 00 00 97 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:32]Read from MH i2c: E2 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 62 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 62 00 F8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 9A [16:17: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 F0 97 01 00 0E 04 04 00 64 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:17:32]wFMCommunicate OK [16:17:32]SAM_PROTO_GetFieldsCounters done [16:17:32]requested_item shift.num is exist - process it [16:17:32]requested_item shift.opened is exist - process it [16:17:32]req_shift_opened [16:17:32]FM_GetShiftState [16:17:32]SAM_PROTO_GetShiftState [16:17:32]wFMCommunicate request_size=4 [16:17:32]MH_SAM_APDU [16:17:32]CAPDU: 80 13 01 00 [16:17:32]Write to MH i2c: E2 08 00 F9 23 80 13 01 00 00 00 00 00 99 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:32]Read from MH i2c: E2 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 0E 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: E2 0E 00 F9 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8B [16:17:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:17:32]wFMCommunicate OK [16:17:32]SAM_PROTO_GetShiftState done [16:17:32]FM_GetShiftState done [16:17:32]req_shift_opened done [16:17:32]requested_item shift.open_date is exist - process it [16:17:32]req_shift_open_date [16:17:32]req_shift_open_date done [16:17:32]produce_requested_data done [16:17:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104432,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:17:32]process_action_free close_receipt [16:17:32]json_value_free [16:17:32]json_value_free done [16:17:32]process_json_proto returns [16:17:32]Send response to host [16:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104432,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:17:32]free response buf [16:17:32]execute_script done [16:17:32]execute_script returns [16:17:32]free content buf [16:17:32]Sock 7.Close socket [16:17:32]Sock 7.Thread stoped [16:17:36]OFD Sender: No OFD packet to send [16:17:39]accept exits with 9 [16:17:39]New connection [16:17:39]New thread 3066449252 created [16:17:39]Thread 3066592612 joined [16:17:39]Waiting for new connection... [16:17:39] Sock 9.Parse request [16:17:39]Sock 9.Check first char [16:17:39]Sock 9.First char is OK [16:17:39]request: POST /json_proto HTTP/1.0 [16:17:39]Method: POST [16:17:39]URL: /json_proto [16:17:39]Method is POST - this is cgi request [16:17:39]url: /json_proto [16:17:39]query_string will be loaded in cgi processing [16:17:39]execute_cgi json_proto POST (null) [16:17:39]execute_cgi path=json_proto method=POST [16:17:39]POST find Content-Length [16:17:39]Host: 172.17.38.133:8080 [16:17:39]Content-Length: 678 [16:17:39]Content-Type: application/json [16:17:39] [16:17:39]POST finish read [16:17:39]Found Content-Length = 678 [16:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673998", "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:17:39]execute_script... [16:17: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)673998", "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:17:39]POST & json_proto [16:17:39]process_json_proto [16:17:39]json parsed OK: [16:17:39]protocol is kg_v1.0 [16:17:39]action value=close_receipt [16:17:39]process_action close_receipt [16:17:39]cmd_close_receipt [16:17:39]MH_GetDate [16:17:39]Write to MH i2c: F0 00 00 FA 23 0C [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: F0 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: F0 09 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: F0 09 00 FA 23 00 25 F9 76 66 BD 8F 7C 64 3B [16:17:39]GetLastDocTimeStamp 1719073050 [16:17:39]current date 1719073061 [16:17:39]FM_GetShiftState [16:17:39]SAM_PROTO_GetShiftState [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 01 00 [16:17:39]Write to MH i2c: E2 08 00 FB 23 80 13 01 00 00 00 00 00 9B [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 FB 23 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 8D [16:17:39]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetShiftState done [16:17:39]FM_GetShiftState done [16:17:39]opened in 1719016176 [16:17:39]opened+sec_in_day 1719102576 [16:17:39]quantity*price = 80012 [16:17:39]sum+1 = 80013 [16:17:39]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 22.06.2024 16:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104433 ФПД: 209822645576339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161741&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104433&fm=209822645576339&tin=02508201610067®Number=0000000000092785&sum=80000 [16:17:40]StoreToDocumentArchive [16:17:40]shift 356 fd 104433 [16:17:40]save to /storage/0356/doc_00104433 [16:17:40]save last doc name /storage/0356/doc_00104433 to /storage/kkm_last_doc_name [16:17:40]save OK [16:17:40]Clear old archive folders... [16:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:40]tlvbuf is 01033EF0 [16:17:40]SAM_PROTO_ClearQueue [16:17:40]wFMCommunicate request_size=4 [16:17:40]MH_SAM_APDU [16:17:40]CAPDU: 80 09 00 00 [16:17:40]Write to MH i2c: E2 08 00 08 24 80 09 00 00 00 00 00 00 9E [16:17:40]Write i2c OK [16:17:40]MH_I2C_Read... [16:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:40]Read from MH i2c: E2 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 03 00 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [16:17:40]RAPDU: 90 00 [16:17:40]wFMCommunicate OK [16:17:40]SAM_PROTO_ClearQueue done [16:17:40]KKMCreateOFDPacket [16:17:40]OFDProtocolAddRootSTLVToBuf [16:17:40]FM_MakeSignedData [16:17:40]FM_MakeSignedData [16:17:40]SAM_PROTO_SignData [16:17:40]wFMCommunicate request_size=4 [16:17:40]MH_SAM_APDU [16:17:40]CAPDU: 80 0D 01 02 [16:17:40]Write to MH i2c: E2 08 00 09 24 80 0D 01 02 00 00 00 00 A6 [16:17:40]Write i2c OK [16:17:40]MH_I2C_Read... [16:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:40]Read from MH i2c: E2 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 03 00 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [16:17:40]RAPDU: 90 00 [16:17:40]wFMCommunicate OK [16:17:40]wFMCommunicate request_size=255 [16:17:40]MH_SAM_APDU [16: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 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 25 F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE [16:17:40]Write to MH i2c: E2 02 01 0A 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 25 F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE 00 00 9B [16:17:40]Write i2c OK [16:17:40]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 03 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [16:17:41]RAPDU: 90 00 [16:17:41]wFMCommunicate OK [16:17:41]wFMCommunicate request_size=10 [16:17:41]MH_SAM_APDU [16:17:41]CAPDU: 80 0D 02 02 05 D5 24 41 62 93 [16:17:41]Write to MH i2c: E2 0D 00 0B 24 80 0D 02 02 05 00 D5 24 41 62 93 00 00 E2 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 03 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 03 00 0B 24 00 90 00 A3 [16:17:41]RAPDU: 90 00 [16:17:41]wFMCommunicate OK [16:17:41]wFMCommunicate request_size=4 [16:17:41]MH_SAM_APDU [16:17:41]CAPDU: 80 0D 03 02 [16:17:41]Write to MH i2c: E2 08 00 0C 24 80 0D 03 02 00 00 00 00 AB [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 0B 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 0B 00 0C 24 00 F7 47 44 14 1E AB 3F 8E 90 00 D8 [16:17:41]RAPDU: F7 47 44 14 1E AB 3F 8E 90 00 [16:17:41]wFMCommunicate OK [16:17:41]SAM_PROTO_SignData done [16:17:41]FM_MakeSignedData done [16:17:41]CreateOFDProtocolMessage [16:17:41]wFMCommunicate request_size=4 [16:17:41]MH_SAM_APDU [16:17:41]CAPDU: 80 11 00 00 [16:17:41]Write to MH i2c: E2 08 00 0D 24 80 11 00 00 00 00 00 00 AB [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 17 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 17 00 0D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [16:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:17:41]wFMCommunicate OK [16:17:41]CreateOFDProtocolMessage done [16:17:41]OFDSenderStorePacket 104433 [16:17:41]StoreOFDPacket docnum=104433 [16:17: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 9A F0 07 01 C5 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 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 25 F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE D5 24 41 62 93 F7 47 44 14 1E AB 3F 8E [16:17:41]CheckFolder [16:17:41]dirname=/storage/ofd_packets [16:17:41]CheckFolder done [16:17:41]ProducePacketName [16:17:41]name=ofd_packets/00104433 [16:17:41]NVStorageSaveData ofd_packets/00104433 [16:17:41]File name is /storage/ofd_packets/00104433 [16:17:41]Write 301 bytes [16:17:41]NVStorageSaveData done [16:17:41]OFDSenderStorePacket done [16:17:41]KKMCreateOFDPacket done [16:17:41]NVStorageSaveData kkm_last_timestamp [16:17:41]File name is /storage/kkm_last_timestamp [16:17:41]Write 4 bytes [16:17:41]NVStorageSaveData done [16:17:41]ExternCall_PrintAddStr [16:17:41]wPrintStart [16:17:41]Write to MH i2c: 01 00 00 0E 24 32 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [16:17:41]RasterBufferAndPrint [16:17:41]line Счет N : (1)673998 [16:17:41]line ИНН: 02508201610067 [16:17:41]line Контрольно-Кассовый Чек [16:17:41]line ПРОДАЖА [16:17:41]line ТРК (МРК, ГНК) : 42 [16:17:41]line Товар: 2710124130 [16:17:41]line Аи-92-К-5 [16:17:41]line 12.050 * 66.40 [16:17:41]line = 800.12 [16:17:41]line НДС 12% НСП 1% [16:17:41]line > о реализуемом товаре [16:17:41]line ОКРУГЛЕНИЕ: -0.12 [16:17:41]line ИТОГО: 800.00 [16:17:41]line Внесено: 800.00 [16:17:41]line СДАЧА: 0.00 [16:17:41]line НСП 1% : 7.08 [16:17:41]line НДС 12% : 84.97 [16:17:41]line Наличными: 800.00 [16:17:41]line Безнал.: 0.00 [16:17:41]line Место: АЗС № 120 "Партнер Нефть" [16:17:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:17:41]line СНО: Общий режим [16:17:41]line Чек 166 22.06.2024 16:17 [16:17:41]line Смена: 356 ФФД: 1.0 [16:17:41]line ЗНМ: 0300000164 [16:17:41]line РНМ: 0000000000092785 [16:17:41]line Версия ККМ: 001 [16:17:41]line ФМ: 0000000000875093 [16:17:41]line ФД: 104433 [16:17:41]line ФПД: 209822645576339 [16:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161741&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104433&fm=209822645576339&tin=02508201610067®Number=0000000000092785&sum=80000 [16:17:41]written 0, free lines is 4095 [16:17:41]OFD Sender: Processing packet 104433 [packets to send 17, broken 16] [16:17:41]ProducePacketName [16:17:41]name=ofd_packets/00104433 [16:17:41]OFD Sender: To server: pG, [16:17:41]CommunicateWithHost lk.salyk.kg:30040 [16:17:41]ConnectInit lk.salyk.kg [16:17:41]Connected sock=11 [16: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 9A F0 07 01 C5 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 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 25 F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 BE D5 24 41 62 93 F7 47 44 14 1E AB 3F 8E [16:17:41]Write to MH i2c: 01 00 00 39 24 5D [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 39 24 00 00 00 00 00 DC 0C 4C [16:17:41]RasterBufferAndPrint [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]written 0, free lines is 3298 [16: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 71 06 47 00 5B EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 97 01 00 F4 03 04 00 A4 9F 76 66 B6 04 01 00 00 7E 64 EE AD B4 6E A0 6D [16:17:41]CommunicateWithHost err = 0 [16:17:41]CheckOFDResponse [16:17:41]1017 (14) - 77093643461234 [16:17:41]1041 (16) - 0000000000875093 [16:17:41]1040 (4) - 104433 [16:17:41]1012 (4) - 22.06.2024 09:55 [16:17:41]1206 (1) - 0 [16:17:41]OFD Sender: Remove packet 104433 [16:17:41]ProducePacketName [16:17:41]name=ofd_packets/00104433 [16:17:41]NVStorageDeleteData [16:17:41]MH_Cut [16:17:41]Write to MH i2c: D1 01 00 40 24 01 36 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 01 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 01 00 40 24 00 35 [16:17:41]Write to MH i2c: 01 00 00 41 24 65 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:42]OFD Sender: No OFD packet to send [16:17:42]*** Cut start [16:17:42]*** Partial cut [16:17:42]*** CUTSNS_PIN = 1 [16:17:42]*** CUTSNS_PIN = 0 [16:17:42]*** Brake cut motor [16:17:43]Read from MH i2c: 01 [16:17:43]MH_I2C_Read... [16:17:43]*** Stop cut motor [16:17:43]*** Cut end [16:17:43]Read from MH i2c: 01 07 00 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 FF 0F 7A [16:17:43]process_action close_receipt done [16:17:43]requested_data is exist [16:17:43]produce_requested_data [16:17:43]requested_item fm.sn is exist - process it [16:17:43]wFMCommunicate request_size=4 [16:17:43]MH_SAM_APDU [16:17:43]CAPDU: 80 11 00 00 [16:17:43]Write to MH i2c: E2 08 00 42 24 80 11 00 00 00 00 00 00 E0 [16:17:43]Write i2c OK [16:17:43]MH_I2C_Read... [16:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:43]Read from MH i2c: E2 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 17 00 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 17 00 42 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [16:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:17:43]wFMCommunicate OK [16:17:43]requested_item fd.num is exist - process it [16:17:43]SAM_PROTO_GetFieldsCounters [16:17:43]wFMCommunicate request_size=4 [16:17:43]MH_SAM_APDU [16:17:43]CAPDU: 80 13 00 00 [16:17:43]Write to MH i2c: E2 08 00 43 24 80 13 00 00 00 00 00 00 E3 [16:17:43]Write i2c OK [16:17:43]MH_I2C_Read... [16:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:43]Read from MH i2c: E2 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 62 00 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 62 00 43 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 EA [16:17: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 F1 97 01 00 0E 04 04 00 64 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:17:43]wFMCommunicate OK [16:17:43]SAM_PROTO_GetFieldsCounters done [16:17:43]requested_item shift.num is exist - process it [16:17:43]requested_item shift.opened is exist - process it [16:17:43]req_shift_opened [16:17:43]FM_GetShiftState [16:17:43]SAM_PROTO_GetShiftState [16:17:43]wFMCommunicate request_size=4 [16:17:43]MH_SAM_APDU [16:17:43]CAPDU: 80 13 01 00 [16:17:43]Write to MH i2c: E2 08 00 44 24 80 13 01 00 00 00 00 00 E5 [16:17:43]Write i2c OK [16:17:43]MH_I2C_Read... [16:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:43]Read from MH i2c: E2 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 0E 00 [16:17:43]MH_I2C_Read... [16:17:43]Read from MH i2c: E2 0E 00 44 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D7 [16:17:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:17:43]wFMCommunicate OK [16:17:43]SAM_PROTO_GetShiftState done [16:17:43]FM_GetShiftState done [16:17:43]req_shift_opened done [16:17:43]requested_item shift.open_date is exist - process it [16:17:43]req_shift_open_date [16:17:43]req_shift_open_date done [16:17:43]produce_requested_data done [16:17:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104433,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:17:43]process_action_free close_receipt [16:17:43]json_value_free [16:17:43]json_value_free done [16:17:43]process_json_proto returns [16:17:43]Send response to host [16:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104433,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:17:43]free response buf [16:17:43]execute_script done [16:17:43]execute_script returns [16:17:43]free content buf [16:17:43]Sock 9.Close socket [16:17:43]Sock 9.Thread stoped [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:13]accept exits with 7 [16:20:13]New connection [16:20:13]New thread 3066592612 created [16:20:13]Thread 3066449252 joined [16:20:13]Waiting for new connection... [16:20:13] Sock 7.Parse request [16:20:13]Sock 7.Check first char [16:20:13]Sock 7.First char is OK [16:20:13]request: POST /json_proto HTTP/1.0 [16:20:13]Method: POST [16:20:13]URL: /json_proto [16:20:13]Method is POST - this is cgi request [16:20:13]url: /json_proto [16:20:13]query_string will be loaded in cgi processing [16:20:13]execute_cgi json_proto POST (null) [16:20:13]execute_cgi path=json_proto method=POST [16:20:13]POST find Content-Length [16:20:13]Host: 172.17.38.133:8080 [16:20:13]Content-Length: 817 [16:20:13]Content-Type: application/json [16:20:13] [16:20:13]POST finish read [16:20:13]Found Content-Length = 817 [16:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674000", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:13]execute_script... [16:20: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)674000", "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 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:13]POST & json_proto [16:20:13]process_json_proto [16:20:13]json parsed OK: [16:20:13]protocol is kg_v1.0 [16:20:13]action value=close_receipt [16:20:13]process_action close_receipt [16:20:13]cmd_close_receipt [16:20:13]MH_GetDate [16:20:13]Write to MH i2c: F0 00 00 45 24 58 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: F0 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: F0 09 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: F0 09 00 45 24 00 BF F9 76 66 BD 8F 7C 64 21 [16:20:13]GetLastDocTimeStamp 1719073061 [16:20:13]current date 1719073215 [16:20:13]FM_GetShiftState [16:20:13]SAM_PROTO_GetShiftState [16:20:13]wFMCommunicate request_size=4 [16:20:13]MH_SAM_APDU [16:20:13]CAPDU: 80 13 01 00 [16:20:13]Write to MH i2c: E2 08 00 46 24 80 13 01 00 00 00 00 00 E7 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:13]Read from MH i2c: E2 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 0E 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 0E 00 46 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D9 [16:20:13]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:20:13]wFMCommunicate OK [16:20:13]SAM_PROTO_GetShiftState done [16:20:13]FM_GetShiftState done [16:20:13]opened in 1719016176 [16:20:13]opened+sec_in_day 1719102576 [16:20:13]quantity*price = 80012 [16:20:13]sum+1 = 80013 [16:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 167 22.06.2024 16:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104434 ФПД: 57288960437434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162015&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104434&fm=57288960437434&tin=02508201610067®Number=0000000000092785&sum=80012 [16:20:14]StoreToDocumentArchive [16:20:14]shift 356 fd 104434 [16:20:14]save to /storage/0356/doc_00104434 [16:20:14]save last doc name /storage/0356/doc_00104434 to /storage/kkm_last_doc_name [16:20:14]save OK [16:20:14]Clear old archive folders... [16:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:14]tlvbuf is 01036BB0 [16:20:14]SAM_PROTO_ClearQueue [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 09 00 00 [16:20:14]Write to MH i2c: E2 08 00 53 24 80 09 00 00 00 00 00 00 E9 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 [16:20:14]MH_I2C_Read... [16:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:14]Read from MH i2c: E2 03 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [16:20:14]RAPDU: 90 00 [16:20:14]wFMCommunicate OK [16:20:14]SAM_PROTO_ClearQueue done [16:20:14]KKMCreateOFDPacket [16:20:14]OFDProtocolAddRootSTLVToBuf [16:20:14]FM_MakeSignedData [16:20:14]FM_MakeSignedData [16:20:14]SAM_PROTO_SignData [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 0D 01 02 [16:20:14]Write to MH i2c: E2 08 00 54 24 80 0D 01 02 00 00 00 00 F1 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:14]Read from MH i2c: E2 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 03 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [16:20:14]RAPDU: 90 00 [16:20:14]wFMCommunicate OK [16:20:14]wFMCommunicate request_size=255 [16:20:14]MH_SAM_APDU [16:20: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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 34 [16:20:14]Write to MH i2c: E2 02 01 55 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 34 00 00 10 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 03 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 03 00 55 24 00 90 00 ED [16:20:15]RAPDU: 90 00 [16:20:15]wFMCommunicate OK [16:20:15]wFMCommunicate request_size=10 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 0D 02 02 05 1A A0 22 EC BA [16:20:15]Write to MH i2c: E2 0D 00 56 24 80 0D 02 02 05 00 1A A0 22 EC BA 00 00 80 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 03 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 03 00 56 24 00 90 00 EE [16:20:15]RAPDU: 90 00 [16:20:15]wFMCommunicate OK [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 0D 03 02 [16:20:15]Write to MH i2c: E2 08 00 57 24 80 0D 03 02 00 00 00 00 F6 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0B 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0B 00 57 24 00 7A 7D C2 5A 4E 84 17 46 90 00 39 [16:20:15]RAPDU: 7A 7D C2 5A 4E 84 17 46 90 00 [16:20:15]wFMCommunicate OK [16:20:15]SAM_PROTO_SignData done [16:20:15]FM_MakeSignedData done [16:20:15]CreateOFDProtocolMessage [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 11 00 00 [16:20:15]Write to MH i2c: E2 08 00 58 24 80 11 00 00 00 00 00 00 F6 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 58 24 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:20: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:20:15]wFMCommunicate OK [16:20:15]CreateOFDProtocolMessage done [16:20:15]OFDSenderStorePacket 104434 [16:20:15]StoreOFDPacket docnum=104434 [16:20: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 49 37 07 01 D7 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 34 1A A0 22 EC BA 7A 7D C2 5A 4E 84 17 46 [16:20:15]CheckFolder [16:20:15]dirname=/storage/ofd_packets [16:20:15]CheckFolder done [16:20:15]ProducePacketName [16:20:15]name=ofd_packets/00104434 [16:20:15]NVStorageSaveData ofd_packets/00104434 [16:20:15]File name is /storage/ofd_packets/00104434 [16:20:15]Write 301 bytes [16:20:15]NVStorageSaveData done [16:20:15]OFDSenderStorePacket done [16:20:15]KKMCreateOFDPacket done [16:20:15]NVStorageSaveData kkm_last_timestamp [16:20:15]File name is /storage/kkm_last_timestamp [16:20:15]Write 4 bytes [16:20:15]NVStorageSaveData done [16:20:15]ExternCall_PrintAddStr [16:20:15]wPrintStart [16:20:15]Write to MH i2c: 01 00 00 59 24 7D [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 07 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [16:20:15]RasterBufferAndPrint [16:20:15]line Счет N : (1)674000 [16:20:15]line ИНН: 02508201610067 [16:20:15]line Контрольно-Кассовый Чек [16:20:15]line ПРОДАЖА [16:20:15]line ТРК (МРК, ГНК) : 32 [16:20:15]line Товар: 2710124130 [16:20:15]line Аи-92-К-5 [16:20:15]line 12.050 * 66.40 [16:20:15]line = 800.12 [16:20:15]line НДС 12% НСП 1% [16:20:15]line > о реализуемом товаре [16:20:15]line ИТОГО: 800.12 [16:20:15]line НСП 1% : 7.08 [16:20:15]line НДС 12% : 84.97 [16:20:15]line Наличными: 0.00 [16:20:15]line Безнал.: 800.12 [16:20:15]line Место: АЗС № 120 "Партнер Нефть" [16:20:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:20:15]line СНО: Общий режим [16:20:15]line Чек 167 22.06.2024 16:20 [16:20:15]line Смена: 356 ФФД: 1.0 [16:20:15]line ЗНМ: 0300000164 [16:20:15]line РНМ: 0000000000092785 [16:20:15]line Версия ККМ: 001 [16:20:15]line Платежная система: Бакай Банк [16:20:15]line ФМ: 0000000000875093 [16:20:15]line ФД: 104434 [16:20:15]line ФПД: 57288960437434 [16:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162015&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104434&fm=57288960437434&tin=02508201610067®Number=0000000000092785&sum=80012 [16:20:15]written 0, free lines is 4095 [16:20:15]OFD Sender: Processing packet 104434 [packets to send 17, broken 16] [16:20:15]ProducePacketName [16:20:15]name=ofd_packets/00104434 [16:20:15]OFD Sender: To server: pG, [16:20:15]CommunicateWithHost lk.salyk.kg:30040 [16:20:15]ConnectInit lk.salyk.kg [16:20:15]Connected sock=10 [16:20: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 49 37 07 01 D7 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 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 34 1A A0 22 EC BA 7A 7D C2 5A 4E 84 17 46 [16:20: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 65 CA 47 00 AB 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 97 01 00 F4 03 04 00 3E A0 76 66 B6 04 01 00 00 37 B5 48 67 5F D2 5E 13 [16:20:15]CommunicateWithHost err = 0 [16:20:15]CheckOFDResponse [16:20:15]1017 (14) - 77093643461234 [16:20:15]1041 (16) - 0000000000875093 [16:20:15]1040 (4) - 104434 [16:20:15]1012 (4) - 22.06.2024 09:58 [16:20:15]1206 (1) - 0 [16:20:15]OFD Sender: Remove packet 104434 [16:20:15]ProducePacketName [16:20:15]name=ofd_packets/00104434 [16:20:15]NVStorageDeleteData [16:20:15]Write to MH i2c: 01 00 00 83 24 A7 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 07 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 07 00 83 24 00 00 00 00 00 E7 0C A1 [16:20:15]RasterBufferAndPrint [16:20:15]line [16:20:15]line [16:20:15]line [16:20:15]line [16:20:15]line [16:20:15]written 0, free lines is 3310 [16:20:15]MH_Cut [16:20:15]Write to MH i2c: D1 01 00 8A 24 01 80 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: D1 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: D1 01 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: D1 01 00 8A 24 00 7F [16:20:15]Write to MH i2c: 01 00 00 8B 24 AF [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:16]OFD Sender: No OFD packet to send [16:20:16]*** Cut start [16:20:16]*** Partial cut [16:20:16]*** CUTSNS_PIN = 1 [16:20:16]*** CUTSNS_PIN = 0 [16:20:16]*** Brake cut motor [16:20:17]Read from MH i2c: 01 [16:20:17]MH_I2C_Read... [16:20:17]*** Stop cut motor [16:20:17]*** Cut end [16:20:17]Read from MH i2c: 01 07 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: 01 07 00 8B 24 00 00 00 00 00 FF 0F C4 [16:20:17]process_action close_receipt done [16:20:17]requested_data is exist [16:20:17]produce_requested_data [16:20:17]requested_item fm.sn is exist - process it [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 11 00 00 [16:20:17]Write to MH i2c: E2 08 00 8C 24 80 11 00 00 00 00 00 00 2A [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 17 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 17 00 8C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [16:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:20:17]wFMCommunicate OK [16:20:17]requested_item fd.num is exist - process it [16:20:17]SAM_PROTO_GetFieldsCounters [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 13 00 00 [16:20:17]Write to MH i2c: E2 08 00 8D 24 80 13 00 00 00 00 00 00 2D [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 62 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 62 00 8D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 38 [16:20: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 F2 97 01 00 0E 04 04 00 64 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:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_GetFieldsCounters done [16:20:17]requested_item shift.num is exist - process it [16:20:17]requested_item shift.opened is exist - process it [16:20:17]req_shift_opened [16:20:17]FM_GetShiftState [16:20:17]SAM_PROTO_GetShiftState [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 13 01 00 [16:20:17]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 8E 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 21 [16:20:17]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_GetShiftState done [16:20:17]FM_GetShiftState done [16:20:17]req_shift_opened done [16:20:17]requested_item shift.open_date is exist - process it [16:20:17]req_shift_open_date [16:20:17]req_shift_open_date done [16:20:17]produce_requested_data done [16:20:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104434,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:20:17]process_action_free close_receipt [16:20:17]json_value_free [16:20:17]json_value_free done [16:20:17]process_json_proto returns [16:20:17]Send response to host [16:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104434,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:20:17]free response buf [16:20:17]execute_script done [16:20:17]execute_script returns [16:20:17]free content buf [16:20:17]Sock 7.Close socket [16:20:17]Sock 7.Thread stoped [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:20:57]accept exits with 9 [16:20:57]New connection [16:20:57]New thread 3066449252 created [16:20:57]Thread 3066592612 joined [16:20:57]Waiting for new connection... [16:20:57] Sock 9.Parse request [16:20:57]Sock 9.Check first char [16:20:57]Sock 9.First char is OK [16:20:57]request: POST /json_proto HTTP/1.0 [16:20:57]Method: POST [16:20:57]URL: /json_proto [16:20:57]Method is POST - this is cgi request [16:20:57]url: /json_proto [16:20:57]query_string will be loaded in cgi processing [16:20:57]execute_cgi json_proto POST (null) [16:20:57]execute_cgi path=json_proto method=POST [16:20:57]POST find Content-Length [16:20:57]Host: 172.17.38.133:8080 [16:20:57]Content-Length: 816 [16:20:57]Content-Type: application/json [16:20:57] [16:20:57]POST finish read [16:20:57]Found Content-Length = 816 [16:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674001", "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" ] } } [16:20:57]execute_script... [16:20:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674001", "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" ] } } [16:20:57]POST & json_proto [16:20:57]process_json_proto [16:20:57]json parsed OK: [16:20:57]protocol is kg_v1.0 [16:20:57]action value=close_receipt [16:20:57]process_action close_receipt [16:20:57]cmd_close_receipt [16:20:57]MH_GetDate [16:20:57]Write to MH i2c: F0 00 00 8F 24 A2 [16:20:57]Write i2c OK [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: F0 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: F0 09 00 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: F0 09 00 8F 24 00 EB F9 76 66 BD 8F 7C 64 97 [16:20:57]GetLastDocTimeStamp 1719073215 [16:20:57]current date 1719073259 [16:20:57]FM_GetShiftState [16:20:57]SAM_PROTO_GetShiftState [16:20:57]wFMCommunicate request_size=4 [16:20:57]MH_SAM_APDU [16:20:57]CAPDU: 80 13 01 00 [16:20:57]Write to MH i2c: E2 08 00 90 24 80 13 01 00 00 00 00 00 31 [16:20:57]Write i2c OK [16:20:57]MH_I2C_Read... [16:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:57]Read from MH i2c: E2 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: E2 0E 00 [16:20:57]MH_I2C_Read... [16:20:57]Read from MH i2c: E2 0E 00 90 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 23 [16:20:57]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:20:57]wFMCommunicate OK [16:20:57]SAM_PROTO_GetShiftState done [16:20:57]FM_GetShiftState done [16:20:57]opened in 1719016176 [16:20:57]opened+sec_in_day 1719102576 [16:20:57]quantity*price = 30012 [16:20:57]sum+1 = 30014 [16:20:57]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 СНО: Общий режим Чек 168 22.06.2024 16:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104435 ФПД: 48128837063288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104435&fm=48128837063288&tin=02508201610067®Number=0000000000092785&sum=30013 [16:20:58]StoreToDocumentArchive [16:20:58]shift 356 fd 104435 [16:20:58]save to /storage/0356/doc_00104435 [16:20:58]save last doc name /storage/0356/doc_00104435 to /storage/kkm_last_doc_name [16:20:58]save OK [16:20:58]Clear old archive folders... [16:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:58]tlvbuf is 010124D0 [16:20:58]SAM_PROTO_ClearQueue [16:20:58]wFMCommunicate request_size=4 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 09 00 00 [16:20:58]Write to MH i2c: E2 08 00 9D 24 80 09 00 00 00 00 00 00 33 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:58]Read from MH i2c: E2 03 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 9D 24 00 90 00 35 [16:20:58]RAPDU: 90 00 [16:20:58]wFMCommunicate OK [16:20:58]SAM_PROTO_ClearQueue done [16:20:58]KKMCreateOFDPacket [16:20:58]OFDProtocolAddRootSTLVToBuf [16:20:58]FM_MakeSignedData [16:20:58]FM_MakeSignedData [16:20:58]SAM_PROTO_SignData [16:20:58]wFMCommunicate request_size=4 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 0D 01 02 [16:20:58]Write to MH i2c: E2 08 00 9E 24 80 0D 01 02 00 00 00 00 3B [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 9E 24 00 90 00 36 [16:20:58]RAPDU: 90 00 [16:20:58]wFMCommunicate OK [16:20:58]wFMCommunicate request_size=255 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A8 00 00 00 F4 03 04 00 EB F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2B [16:20:58]Write to MH i2c: E2 02 01 9F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A8 00 00 00 F4 03 04 00 EB F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2B 00 00 30 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 9F 24 00 90 00 37 [16:20:58]RAPDU: 90 00 [16:20:58]wFMCommunicate OK [16:20:58]wFMCommunicate request_size=10 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 0D 02 02 05 C5 DE 3C 92 78 [16:20:58]Write to MH i2c: E2 0D 00 A0 24 80 0D 02 02 05 00 C5 DE 3C 92 78 00 00 31 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 03 00 A0 24 00 90 00 38 [16:20:58]RAPDU: 90 00 [16:20:58]wFMCommunicate OK [16:20:58]wFMCommunicate request_size=4 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 0D 03 02 [16:20:58]Write to MH i2c: E2 08 00 A1 24 80 0D 03 02 00 00 00 00 40 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 0B 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 0B 00 A1 24 00 00 BE 30 7E 8C A9 C5 BA 90 00 61 [16:20:58]RAPDU: 00 BE 30 7E 8C A9 C5 BA 90 00 [16:20:58]wFMCommunicate OK [16:20:58]SAM_PROTO_SignData done [16:20:58]FM_MakeSignedData done [16:20:58]CreateOFDProtocolMessage [16:20:58]wFMCommunicate request_size=4 [16:20:58]MH_SAM_APDU [16:20:58]CAPDU: 80 11 00 00 [16:20:58]Write to MH i2c: E2 08 00 A2 24 80 11 00 00 00 00 00 00 40 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:58]Read from MH i2c: E2 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 17 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: E2 17 00 A2 24 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:20: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:20:58]wFMCommunicate OK [16:20:58]CreateOFDProtocolMessage done [16:20:58]OFDSenderStorePacket 104435 [16:20:58]StoreOFDPacket docnum=104435 [16:20: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 55 AF 07 01 62 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 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 A8 00 00 00 F4 03 04 00 EB F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2B C5 DE 3C 92 78 00 BE 30 7E 8C A9 C5 BA [16:20:58]CheckFolder [16:20:58]dirname=/storage/ofd_packets [16:20:58]CheckFolder done [16:20:58]ProducePacketName [16:20:58]name=ofd_packets/00104435 [16:20:58]NVStorageSaveData ofd_packets/00104435 [16:20:58]File name is /storage/ofd_packets/00104435 [16:20:58]Write 301 bytes [16:20:58]NVStorageSaveData done [16:20:58]OFDSenderStorePacket done [16:20:58]KKMCreateOFDPacket done [16:20:58]NVStorageSaveData kkm_last_timestamp [16:20:58]File name is /storage/kkm_last_timestamp [16:20:58]Write 4 bytes [16:20:58]NVStorageSaveData done [16:20:58]ExternCall_PrintAddStr [16:20:58]wPrintStart [16:20:58]Write to MH i2c: 01 00 00 A3 24 C7 [16:20:58]Write i2c OK [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: 01 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: 01 07 00 [16:20:58]MH_I2C_Read... [16:20:58]Read from MH i2c: 01 07 00 A3 24 00 00 00 00 00 FF 0F DC [16:20:58]RasterBufferAndPrint [16:20:58]line Счет N : (1)674001 [16:20:58]line ИНН: 02508201610067 [16:20:58]line Контрольно-Кассовый Чек [16:20:58]line ПРОДАЖА [16:20:58]line ТРК (МРК, ГНК) : 42 [16:20:58]line Товар: 2710124130 [16:20:58]line Аи-92-К-5 [16:20:58]line 4.520 * 66.40 [16:20:58]line = 300.13 [16:20:58]line НДС 12% НСП 1% [16:20:58]line > о реализуемом товаре [16:20:58]line ИТОГО: 300.13 [16:20:58]line НСП 1% : 2.66 [16:20:58]line НДС 12% : 31.87 [16:20:58]line Наличными: 0.00 [16:20:58]line Безнал.: 300.13 [16:20:58]line Место: АЗС № 120 "Партнер Нефть" [16:20:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:20:58]line СНО: Общий режим [16:20:58]line Чек 168 22.06.2024 16:20 [16:20:58]line Смена: 356 ФФД: 1.0 [16:20:58]line ЗНМ: 0300000164 [16:20:58]line РНМ: 0000000000092785 [16:20:58]line Версия ККМ: 001 [16:20:58]line Платежная система: Бакай Банк [16:20:58]line ФМ: 0000000000875093 [16:20:58]line ФД: 104435 [16:20:58]line ФПД: 48128837063288 [16:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104435&fm=48128837063288&tin=02508201610067®Number=0000000000092785&sum=30013 [16:20:59]written 0, free lines is 4095 [16:20:59]OFD Sender: Processing packet 104435 [packets to send 17, broken 16] [16:20:59]ProducePacketName [16:20:59]name=ofd_packets/00104435 [16:20:59]OFD Sender: To server: pG, [16:20:59]CommunicateWithHost lk.salyk.kg:30040 [16:20:59]ConnectInit lk.salyk.kg [16:20:59]Connected sock=10 [16:20: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 55 AF 07 01 62 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 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 A8 00 00 00 F4 03 04 00 EB F9 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 2B C5 DE 3C 92 78 00 BE 30 7E 8C A9 C5 BA [16:20: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 FC 2B 47 00 E5 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 97 01 00 F4 03 04 00 69 A0 76 66 B6 04 01 00 00 17 EB 1E 8C C3 FE B2 CB [16:20:59]CommunicateWithHost err = 0 [16:20:59]CheckOFDResponse [16:20:59]1017 (14) - 77093643461234 [16:20:59]1041 (16) - 0000000000875093 [16:20:59]1040 (4) - 104435 [16:20:59]1012 (4) - 22.06.2024 09:59 [16:20:59]1206 (1) - 0 [16:20:59]OFD Sender: Remove packet 104435 [16:20:59]ProducePacketName [16:20:59]name=ofd_packets/00104435 [16:20:59]NVStorageDeleteData [16:20:59]Write to MH i2c: 01 00 00 CD 24 F1 [16:20:59]Write i2c OK [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: 01 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: 01 07 00 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: 01 07 00 CD 24 00 00 00 00 00 E7 0C EB [16:20:59]RasterBufferAndPrint [16:20:59]line [16:20:59]line [16:20:59]line [16:20:59]line [16:20:59]line [16:20:59]written 0, free lines is 3310 [16:20:59]MH_Cut [16:20:59]Write to MH i2c: D1 01 00 D4 24 01 CA [16:20:59]Write i2c OK [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: D1 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: D1 01 00 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: D1 01 00 D4 24 00 C9 [16:20:59]Write to MH i2c: 01 00 00 D5 24 F9 [16:20:59]Write i2c OK [16:20:59]MH_I2C_Read... [16:21:00]OFD Sender: No OFD packet to send [16:21:00]*** Cut start [16:21:00]*** Partial cut [16:21:00]*** CUTSNS_PIN = 1 [16:21:00]*** CUTSNS_PIN = 0 [16:21:00]*** Brake cut motor [16:21:00]Read from MH i2c: 01 [16:21:01]MH_I2C_Read... [16:21:01]*** Stop cut motor [16:21:01]*** Cut end [16:21:01]Read from MH i2c: 01 07 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 07 00 D5 24 00 00 00 00 00 FF 0F 0E [16:21:01]process_action close_receipt done [16:21:01]requested_data is exist [16:21:01]produce_requested_data [16:21:01]requested_item fm.sn is exist - process it [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 11 00 00 [16:21:01]Write to MH i2c: E2 08 00 D6 24 80 11 00 00 00 00 00 00 74 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 D6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [16:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:21:01]wFMCommunicate OK [16:21:01]requested_item fd.num is exist - process it [16:21:01]SAM_PROTO_GetFieldsCounters [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 13 00 00 [16:21:01]Write to MH i2c: E2 08 00 D7 24 80 13 00 00 00 00 00 00 77 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 62 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 62 00 D7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 86 [16:21: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 F3 97 01 00 0E 04 04 00 64 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 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_GetFieldsCounters done [16:21:01]requested_item shift.num is exist - process it [16:21:01]requested_item shift.opened is exist - process it [16:21:01]req_shift_opened [16:21:01]FM_GetShiftState [16:21:01]SAM_PROTO_GetShiftState [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 13 01 00 [16:21:01]Write to MH i2c: E2 08 00 D8 24 80 13 01 00 00 00 00 00 79 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0E 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0E 00 D8 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6B [16:21:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_GetShiftState done [16:21:01]FM_GetShiftState done [16:21:01]req_shift_opened done [16:21:01]requested_item shift.open_date is exist - process it [16:21:01]req_shift_open_date [16:21:01]req_shift_open_date done [16:21:01]produce_requested_data done [16:21:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104435,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:21:01]process_action_free close_receipt [16:21:01]json_value_free [16:21:01]json_value_free done [16:21:01]process_json_proto returns [16:21:01]Send response to host [16:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104435,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:21:01]free response buf [16:21:01]execute_script done [16:21:01]execute_script returns [16:21:01]free content buf [16:21:01]Sock 9.Close socket [16:21:01]Sock 9.Thread stoped [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:22]accept exits with 7 [16:23:22]New connection [16:23:22]New thread 3066592612 created [16:23:22]Thread 3066449252 joined [16:23:22]Waiting for new connection... [16:23:22] Sock 7.Parse request [16:23:22]Sock 7.Check first char [16:23:22]Sock 7.First char is OK [16:23:22]request: POST /json_proto HTTP/1.0 [16:23:22]Method: POST [16:23:22]URL: /json_proto [16:23:22]Method is POST - this is cgi request [16:23:22]url: /json_proto [16:23:22]query_string will be loaded in cgi processing [16:23:22]execute_cgi json_proto POST (null) [16:23:22]execute_cgi path=json_proto method=POST [16:23:22]POST find Content-Length [16:23:22]Host: 172.17.38.133:8080 [16:23:22]Content-Length: 682 [16:23:22]Content-Type: application/json [16:23:22] [16:23:22]POST finish read [16:23:22]Found Content-Length = 682 [16:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674003", "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" ] } } [16:23:22]execute_script... [16:23: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)674003", "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" ] } } [16:23:22]POST & json_proto [16:23:22]process_json_proto [16:23:22]json parsed OK: [16:23:22]protocol is kg_v1.0 [16:23:22]action value=close_receipt [16:23:22]process_action close_receipt [16:23:22]cmd_close_receipt [16:23:22]MH_GetDate [16:23:22]Write to MH i2c: F0 00 00 D9 24 EC [16:23:22]Write i2c OK [16:23:22]MH_I2C_Read... [16:23:22]Read from MH i2c: F0 [16:23:22]MH_I2C_Read... [16:23:22]Read from MH i2c: F0 09 00 [16:23:22]MH_I2C_Read... [16:23:22]Read from MH i2c: F0 09 00 D9 24 00 7C FA 76 66 BD 8F 7C 64 73 [16:23:22]GetLastDocTimeStamp 1719073259 [16:23:22]current date 1719073404 [16:23:22]FM_GetShiftState [16:23:22]SAM_PROTO_GetShiftState [16:23:22]wFMCommunicate request_size=4 [16:23:22]MH_SAM_APDU [16:23:22]CAPDU: 80 13 01 00 [16:23:22]Write to MH i2c: E2 08 00 DA 24 80 13 01 00 00 00 00 00 7B [16:23:22]Write i2c OK [16:23:22]MH_I2C_Read... [16:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:22]Read from MH i2c: E2 [16:23:22]MH_I2C_Read... [16:23:22]Read from MH i2c: E2 0E 00 [16:23:22]MH_I2C_Read... [16:23:22]Read from MH i2c: E2 0E 00 DA 24 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 6D [16:23:22]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:23:22]wFMCommunicate OK [16:23:22]SAM_PROTO_GetShiftState done [16:23:22]FM_GetShiftState done [16:23:22]opened in 1719016176 [16:23:22]opened+sec_in_day 1719102576 [16:23:22]quantity*price = 200047 [16:23:22]sum+1 = 200048 [16:23:22]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 СНО: Общий режим Чек 169 22.06.2024 16:23 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104436 ФПД: 15604755592378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104436&fm=15604755592378&tin=02508201610067®Number=0000000000092785&sum=200000 [16:23:23]StoreToDocumentArchive [16:23:23]shift 356 fd 104436 [16:23:23]save to /storage/0356/doc_00104436 [16:23:23]save last doc name /storage/0356/doc_00104436 to /storage/kkm_last_doc_name [16:23:23]save OK [16:23:23]Clear old archive folders... [16:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:23]tlvbuf is 01045DF0 [16:23:23]SAM_PROTO_ClearQueue [16:23:23]wFMCommunicate request_size=4 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 09 00 00 [16:23:23]Write to MH i2c: E2 08 00 E7 24 80 09 00 00 00 00 00 00 7D [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 E7 24 00 90 00 7F [16:23:23]RAPDU: 90 00 [16:23:23]wFMCommunicate OK [16:23:23]SAM_PROTO_ClearQueue done [16:23:23]KKMCreateOFDPacket [16:23:23]OFDProtocolAddRootSTLVToBuf [16:23:23]FM_MakeSignedData [16:23:23]FM_MakeSignedData [16:23:23]SAM_PROTO_SignData [16:23:23]wFMCommunicate request_size=4 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 0D 01 02 [16:23:23]Write to MH i2c: E2 08 00 E8 24 80 0D 01 02 00 00 00 00 85 [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 E8 24 00 90 00 80 [16:23:23]RAPDU: 90 00 [16:23:23]wFMCommunicate OK [16:23:23]wFMCommunicate request_size=255 [16:23:23]MH_SAM_APDU [16:23: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 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 A9 00 00 00 F4 03 04 00 7C FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E [16:23:23]Write to MH i2c: E2 02 01 E9 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A9 00 00 00 F4 03 04 00 7C FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 00 00 11 [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 E9 24 00 90 00 81 [16:23:23]RAPDU: 90 00 [16:23:23]wFMCommunicate OK [16:23:23]wFMCommunicate request_size=10 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 0D 02 02 05 31 43 E9 F4 BA [16:23:23]Write to MH i2c: E2 0D 00 EA 24 80 0D 02 02 05 00 31 43 E9 F4 BA 00 00 9D [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 03 00 EA 24 00 90 00 82 [16:23:23]RAPDU: 90 00 [16:23:23]wFMCommunicate OK [16:23:23]wFMCommunicate request_size=4 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 0D 03 02 [16:23:23]Write to MH i2c: E2 08 00 EB 24 80 0D 03 02 00 00 00 00 8A [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 0B 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 0B 00 EB 24 00 48 26 0F 0C 90 08 46 A3 90 00 95 [16:23:23]RAPDU: 48 26 0F 0C 90 08 46 A3 90 00 [16:23:23]wFMCommunicate OK [16:23:23]SAM_PROTO_SignData done [16:23:23]FM_MakeSignedData done [16:23:23]CreateOFDProtocolMessage [16:23:23]wFMCommunicate request_size=4 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 11 00 00 [16:23:23]Write to MH i2c: E2 08 00 EC 24 80 11 00 00 00 00 00 00 8A [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 17 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 17 00 EC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [16:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:23:23]wFMCommunicate OK [16:23:23]CreateOFDProtocolMessage done [16:23:23]OFDSenderStorePacket 104436 [16:23:23]StoreOFDPacket docnum=104436 [16:23: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 31 43 07 01 38 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 00 00 00 F4 03 04 00 7C FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 31 43 E9 F4 BA 48 26 0F 0C 90 08 46 A3 [16:23:23]CheckFolder [16:23:23]dirname=/storage/ofd_packets [16:23:23]CheckFolder done [16:23:23]ProducePacketName [16:23:23]name=ofd_packets/00104436 [16:23:23]NVStorageSaveData ofd_packets/00104436 [16:23:23]File name is /storage/ofd_packets/00104436 [16:23:23]Write 301 bytes [16:23:23]NVStorageSaveData done [16:23:23]OFDSenderStorePacket done [16:23:23]KKMCreateOFDPacket done [16:23:23]NVStorageSaveData kkm_last_timestamp [16:23:23]File name is /storage/kkm_last_timestamp [16:23:23]Write 4 bytes [16:23:23]NVStorageSaveData done [16:23:23]ExternCall_PrintAddStr [16:23:23]wPrintStart [16:23:23]Write to MH i2c: 01 00 00 ED 24 11 [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: 01 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: 01 07 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: 01 07 00 ED 24 00 00 00 00 00 FF 0F 26 [16:23:23]RasterBufferAndPrint [16:23:23]line Счет N : (1)674003 [16:23:23]line ИНН: 02508201610067 [16:23:23]line Контрольно-Кассовый Чек [16:23:23]line ПРОДАЖА [16:23:23]line ТРК (МРК, ГНК) : 31 [16:23:23]line Товар: 2710124500 [16:23:23]line Аи-95-К-5 [16:23:23]line 27.070 * 73.90 [16:23:23]line = 2000.47 [16:23:23]line НДС 12% НСП 1% [16:23:23]line > о реализуемом товаре [16:23:23]line ОКРУГЛЕНИЕ: -0.47 [16:23:23]line ИТОГО: 2000.00 [16:23:23]line Внесено: 2000.00 [16:23:23]line СДАЧА: 0.00 [16:23:23]line НСП 1% : 17.70 [16:23:23]line НДС 12% : 212.44 [16:23:23]line Наличными: 2000.00 [16:23:23]line Безнал.: 0.00 [16:23:23]line Место: АЗС № 120 "Партнер Нефть" [16:23:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:23:23]line СНО: Общий режим [16:23:23]line Чек 169 22.06.2024 16:23 [16:23:23]line Смена: 356 ФФД: 1.0 [16:23:24]line ЗНМ: 0300000164 [16:23:24]line РНМ: 0000000000092785 [16:23:24]line Версия ККМ: 001 [16:23:24]line ФМ: 0000000000875093 [16:23:24]line ФД: 104436 [16:23:24]line ФПД: 15604755592378 [16:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104436&fm=15604755592378&tin=02508201610067®Number=0000000000092785&sum=200000 [16:23:24]OFD Sender: Processing packet 104436 [packets to send 17, broken 16] [16:23:24]ProducePacketName [16:23:24]name=ofd_packets/00104436 [16:23:24]OFD Sender: To server: pG, [16:23:24]CommunicateWithHost lk.salyk.kg:30040 [16:23:24]ConnectInit lk.salyk.kg [16:23:24]written 0, free lines is 4095 [16:23:24]Connected sock=10 [16:23: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 31 43 07 01 38 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 00 00 00 F4 03 04 00 7C FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0E 31 43 E9 F4 BA 48 26 0F 0C 90 08 46 A3 [16:23: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 D2 50 47 00 65 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 F4 97 01 00 F4 03 04 00 FA A0 76 66 B6 04 01 00 00 DA F7 B5 62 87 74 02 FA [16:23:24]CommunicateWithHost err = 0 [16:23:24]CheckOFDResponse [16:23:24]1017 (14) - 77093643461234 [16:23:24]1041 (16) - 0000000000875093 [16:23:24]1040 (4) - 104436 [16:23:24]1012 (4) - 22.06.2024 10:01 [16:23:24]1206 (1) - 0 [16:23:24]OFD Sender: Remove packet 104436 [16:23:24]ProducePacketName [16:23:24]name=ofd_packets/00104436 [16:23:24]NVStorageDeleteData [16:23:24]Write to MH i2c: 01 00 00 18 25 3D [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 E4 0C 34 [16:23:24]RasterBufferAndPrint [16:23:24]line [16:23:24]line [16:23:24]line [16:23:24]line [16:23:24]line [16:23:24]written 0, free lines is 3306 [16:23:24]MH_Cut [16:23:24]Write to MH i2c: D1 01 00 1F 25 01 16 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: D1 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: D1 01 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: D1 01 00 1F 25 00 15 [16:23:24]Write to MH i2c: 01 00 00 20 25 45 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]OFD Sender: No OFD packet to send [16:23:25]*** Cut start [16:23:25]*** Partial cut [16:23:25]*** CUTSNS_PIN = 1 [16:23:25]*** CUTSNS_PIN = 0 [16:23:25]*** Brake cut motor [16:23:25]Read from MH i2c: 01 [16:23:25]MH_I2C_Read... [16:23:25]*** Stop cut motor [16:23:25]*** Cut end [16:23:25]Read from MH i2c: 01 07 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 07 00 20 25 00 00 00 00 00 FF 0F 5A [16:23:25]process_action close_receipt done [16:23:25]requested_data is exist [16:23:25]produce_requested_data [16:23:25]requested_item fm.sn is exist - process it [16:23:25]wFMCommunicate request_size=4 [16:23:25]MH_SAM_APDU [16:23:25]CAPDU: 80 11 00 00 [16:23:25]Write to MH i2c: E2 08 00 21 25 80 11 00 00 00 00 00 00 C0 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:25]Read from MH i2c: E2 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: E2 17 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: E2 17 00 21 25 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:23: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:23:25]wFMCommunicate OK [16:23:25]requested_item fd.num is exist - process it [16:23:25]SAM_PROTO_GetFieldsCounters [16:23:25]wFMCommunicate request_size=4 [16:23:25]MH_SAM_APDU [16:23:25]CAPDU: 80 13 00 00 [16:23:25]Write to MH i2c: E2 08 00 22 25 80 13 00 00 00 00 00 00 C3 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:26]Read from MH i2c: E2 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 62 00 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 62 00 22 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 D6 [16:23: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 F4 97 01 00 0E 04 04 00 64 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 [16:23:26]wFMCommunicate OK [16:23:26]SAM_PROTO_GetFieldsCounters done [16:23:26]requested_item shift.num is exist - process it [16:23:26]requested_item shift.opened is exist - process it [16:23:26]req_shift_opened [16:23:26]FM_GetShiftState [16:23:26]SAM_PROTO_GetShiftState [16:23:26]wFMCommunicate request_size=4 [16:23:26]MH_SAM_APDU [16:23:26]CAPDU: 80 13 01 00 [16:23:26]Write to MH i2c: E2 08 00 23 25 80 13 01 00 00 00 00 00 C5 [16:23:26]Write i2c OK [16:23:26]MH_I2C_Read... [16:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:26]Read from MH i2c: E2 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 0E 00 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 0E 00 23 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B7 [16:23:26]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:23:26]wFMCommunicate OK [16:23:26]SAM_PROTO_GetShiftState done [16:23:26]FM_GetShiftState done [16:23:26]req_shift_opened done [16:23:26]requested_item shift.open_date is exist - process it [16:23:26]req_shift_open_date [16:23:26]req_shift_open_date done [16:23:26]produce_requested_data done [16:23:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104436,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:23:26]process_action_free close_receipt [16:23:26]json_value_free [16:23:26]json_value_free done [16:23:26]process_json_proto returns [16:23:26]Send response to host [16:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104436,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:23:26]free response buf [16:23:26]execute_script done [16:23:26]execute_script returns [16:23:26]free content buf [16:23:26]Sock 7.Close socket [16:23:26]Sock 7.Thread stoped [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:20]accept exits with 9 [16:25:20]New connection [16:25:20]New thread 3066449252 created [16:25:20]Thread 3066592612 joined [16:25:20]Waiting for new connection... [16:25:20] Sock 9.Parse request [16:25:20]Sock 9.Check first char [16:25:20]Sock 9.First char is OK [16:25:20]request: POST /json_proto HTTP/1.0 [16:25:20]Method: POST [16:25:20]URL: /json_proto [16:25:20]Method is POST - this is cgi request [16:25:20]url: /json_proto [16:25:20]query_string will be loaded in cgi processing [16:25:20]execute_cgi json_proto POST (null) [16:25:20]execute_cgi path=json_proto method=POST [16:25:20]POST find Content-Length [16:25:20]Host: 172.17.38.133:8080 [16:25:20]Content-Length: 682 [16:25:20]Content-Type: application/json [16:25:20] [16:25:20]POST finish read [16:25:20]Found Content-Length = 682 [16:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674004", "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" : 27.110, "sum" : 1800.10, "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" ] } } [16:25:20]execute_script... [16:25: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)674004", "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" : 27.110, "sum" : 1800.10, "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" ] } } [16:25:20]POST & json_proto [16:25:20]process_json_proto [16:25:20]json parsed OK: [16:25:20]protocol is kg_v1.0 [16:25:20]action value=close_receipt [16:25:20]process_action close_receipt [16:25:20]cmd_close_receipt [16:25:20]MH_GetDate [16:25:20]Write to MH i2c: F0 00 00 24 25 38 [16:25:20]Write i2c OK [16:25:20]MH_I2C_Read... [16:25:20]Read from MH i2c: F0 [16:25:20]MH_I2C_Read... [16:25:20]Read from MH i2c: F0 09 00 [16:25:20]MH_I2C_Read... [16:25:20]Read from MH i2c: F0 09 00 24 25 00 F2 FA 76 66 BD 8F 7C 64 35 [16:25:20]GetLastDocTimeStamp 1719073404 [16:25:20]current date 1719073522 [16:25:20]FM_GetShiftState [16:25:20]SAM_PROTO_GetShiftState [16:25:20]wFMCommunicate request_size=4 [16:25:20]MH_SAM_APDU [16:25:20]CAPDU: 80 13 01 00 [16:25:20]Write to MH i2c: E2 08 00 25 25 80 13 01 00 00 00 00 00 C7 [16:25:20]Write i2c OK [16:25:20]MH_I2C_Read... [16:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:20]Read from MH i2c: E2 [16:25:20]MH_I2C_Read... [16:25:20]Read from MH i2c: E2 0E 00 [16:25:20]MH_I2C_Read... [16:25:20]Read from MH i2c: E2 0E 00 25 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 B9 [16:25:20]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:25:20]wFMCommunicate OK [16:25:20]SAM_PROTO_GetShiftState done [16:25:20]FM_GetShiftState done [16:25:20]opened in 1719016176 [16:25:20]opened+sec_in_day 1719102576 [16:25:20]quantity*price = 180010 [16:25:20]sum+1 = 180011 [16:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 170 22.06.2024 16:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104437 ФПД: 12868191807931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162522&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104437&fm=12868191807931&tin=02508201610067®Number=0000000000092785&sum=180000 [16:25:22]StoreToDocumentArchive [16:25:22]shift 356 fd 104437 [16:25:22]save to /storage/0356/doc_00104437 [16:25:22]save last doc name /storage/0356/doc_00104437 to /storage/kkm_last_doc_name [16:25:22]save OK [16:25:22]Clear old archive folders... [16:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:22]tlvbuf is B6F00360 [16:25:22]SAM_PROTO_ClearQueue [16:25:22]wFMCommunicate request_size=4 [16:25:22]MH_SAM_APDU [16:25:22]CAPDU: 80 09 00 00 [16:25:22]Write to MH i2c: E2 08 00 32 25 80 09 00 00 00 00 00 00 C9 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [16:25:22]RAPDU: 90 00 [16:25:22]wFMCommunicate OK [16:25:22]SAM_PROTO_ClearQueue done [16:25:22]KKMCreateOFDPacket [16:25:22]OFDProtocolAddRootSTLVToBuf [16:25:22]FM_MakeSignedData [16:25:22]FM_MakeSignedData [16:25:22]SAM_PROTO_SignData [16:25:22]wFMCommunicate request_size=4 [16:25:22]MH_SAM_APDU [16:25:22]CAPDU: 80 0D 01 02 [16:25:22]Write to MH i2c: E2 08 00 33 25 80 0D 01 02 00 00 00 00 D1 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [16:25:22]RAPDU: 90 00 [16:25:22]wFMCommunicate OK [16:25:22]wFMCommunicate request_size=255 [16:25:22]MH_SAM_APDU [16:25: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 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 AC 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 AA 00 00 00 F4 03 04 00 F2 FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B [16:25:22]Write to MH i2c: E2 02 01 34 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 AC 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 AA 00 00 00 F4 03 04 00 F2 FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B 00 00 8A [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [16:25:22]RAPDU: 90 00 [16:25:22]wFMCommunicate OK [16:25:22]wFMCommunicate request_size=10 [16:25:22]MH_SAM_APDU [16:25:22]CAPDU: 80 0D 02 02 05 B4 1C 00 69 BB [16:25:22]Write to MH i2c: E2 0D 00 35 25 80 0D 02 02 05 00 B4 1C 00 69 BB 00 00 D2 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 03 00 35 25 00 90 00 CE [16:25:22]RAPDU: 90 00 [16:25:22]wFMCommunicate OK [16:25:22]wFMCommunicate request_size=4 [16:25:22]MH_SAM_APDU [16:25:22]CAPDU: 80 0D 03 02 [16:25:22]Write to MH i2c: E2 08 00 36 25 80 0D 03 02 00 00 00 00 D6 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 0B 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 0B 00 36 25 00 1C 5B 87 77 DC 2F 9F 95 90 00 8B [16:25:22]RAPDU: 1C 5B 87 77 DC 2F 9F 95 90 00 [16:25:22]wFMCommunicate OK [16:25:22]SAM_PROTO_SignData done [16:25:22]FM_MakeSignedData done [16:25:22]CreateOFDProtocolMessage [16:25:22]wFMCommunicate request_size=4 [16:25:22]MH_SAM_APDU [16:25:22]CAPDU: 80 11 00 00 [16:25:22]Write to MH i2c: E2 08 00 37 25 80 11 00 00 00 00 00 00 D6 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:22]Read from MH i2c: E2 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 17 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: E2 17 00 37 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 29 [16:25: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:25:22]wFMCommunicate OK [16:25:22]CreateOFDProtocolMessage done [16:25:22]OFDSenderStorePacket 104437 [16:25:22]StoreOFDPacket docnum=104437 [16:25: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 CD 19 07 01 80 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 AC 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 AA 00 00 00 F4 03 04 00 F2 FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B B4 1C 00 69 BB 1C 5B 87 77 DC 2F 9F 95 [16:25:22]CheckFolder [16:25:22]dirname=/storage/ofd_packets [16:25:22]CheckFolder done [16:25:22]ProducePacketName [16:25:22]name=ofd_packets/00104437 [16:25:22]NVStorageSaveData ofd_packets/00104437 [16:25:22]File name is /storage/ofd_packets/00104437 [16:25:22]Write 301 bytes [16:25:22]NVStorageSaveData done [16:25:22]OFDSenderStorePacket done [16:25:22]KKMCreateOFDPacket done [16:25:22]NVStorageSaveData kkm_last_timestamp [16:25:22]File name is /storage/kkm_last_timestamp [16:25:22]Write 4 bytes [16:25:22]NVStorageSaveData done [16:25:22]ExternCall_PrintAddStr [16:25:22]wPrintStart [16:25:22]Write to MH i2c: 01 00 00 38 25 5D [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 07 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 07 00 38 25 00 00 00 00 00 FF 0F 72 [16:25:22]RasterBufferAndPrint [16:25:22]line Счет N : (1)674004 [16:25:22]line ИНН: 02508201610067 [16:25:22]line Контрольно-Кассовый Чек [16:25:22]line ПРОДАЖА [16:25:22]line ТРК (МРК, ГНК) : 42 [16:25:22]line Товар: 2710124130 [16:25:22]line Аи-92-К-5 [16:25:22]line 27.110 * 66.40 [16:25:22]line = 1800.10 [16:25:22]line НДС 12% НСП 1% [16:25:22]line > о реализуемом товаре [16:25:22]line ОКРУГЛЕНИЕ: -0.10 [16:25:22]line ИТОГО: 1800.00 [16:25:22]line Внесено: 1800.00 [16:25:22]line СДАЧА: 0.00 [16:25:22]line НСП 1% : 15.93 [16:25:22]line НДС 12% : 191.16 [16:25:22]line Наличными: 1800.00 [16:25:22]line Безнал.: 0.00 [16:25:22]line Место: АЗС № 120 "Партнер Нефть" [16:25:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:25:22]line СНО: Общий режим [16:25:22]line Чек 170 22.06.2024 16:25 [16:25:22]line Смена: 356 ФФД: 1.0 [16:25:22]line ЗНМ: 0300000164 [16:25:22]line РНМ: 0000000000092785 [16:25:22]line Версия ККМ: 001 [16:25:22]line ФМ: 0000000000875093 [16:25:22]line ФД: 104437 [16:25:22]line ФПД: 12868191807931 [16:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162522&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104437&fm=12868191807931&tin=02508201610067®Number=0000000000092785&sum=180000 [16:25:22]OFD Sender: Processing packet 104437 [packets to send 17, broken 16] [16:25:22]ProducePacketName [16:25:22]name=ofd_packets/00104437 [16:25:22]OFD Sender: To server: pG, [16:25:22]CommunicateWithHost lk.salyk.kg:30040 [16:25:22]ConnectInit lk.salyk.kg [16:25:22]written 0, free lines is 4095 [16:25:23]Connected sock=10 [16:25: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 CD 19 07 01 80 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 AC 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 AA 00 00 00 F4 03 04 00 F2 FA 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 0B B4 1C 00 69 BB 1C 5B 87 77 DC 2F 9F 95 [16:25: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 30 BB 47 00 4D 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 F5 97 01 00 F4 03 04 00 71 A1 76 66 B6 04 01 00 00 07 BD E2 F8 E0 AC 30 B7 [16:25:23]CommunicateWithHost err = 0 [16:25:23]CheckOFDResponse [16:25:23]1017 (14) - 77093643461234 [16:25:23]1041 (16) - 0000000000875093 [16:25:23]1040 (4) - 104437 [16:25:23]1012 (4) - 22.06.2024 10:03 [16:25:23]1206 (1) - 0 [16:25:23]OFD Sender: Remove packet 104437 [16:25:23]ProducePacketName [16:25:23]name=ofd_packets/00104437 [16:25:23]NVStorageDeleteData [16:25:23]Write to MH i2c: 01 00 00 63 25 88 [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: 01 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: 01 07 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: 01 07 00 63 25 00 00 00 00 00 E2 0C 7D [16:25:23]RasterBufferAndPrint [16:25:23]line [16:25:23]line [16:25:23]line [16:25:23]line [16:25:23]line [16:25:23]written 0, free lines is 3304 [16:25:23]MH_Cut [16:25:23]Write to MH i2c: D1 01 00 6A 25 01 61 [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: D1 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: D1 01 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: D1 01 00 6A 25 00 60 [16:25:23]Write to MH i2c: 01 00 00 6B 25 90 [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]OFD Sender: No OFD packet to send [16:25:24]*** Cut start [16:25:24]*** Partial cut [16:25:24]*** CUTSNS_PIN = 1 [16:25:24]*** CUTSNS_PIN = 0 [16:25:24]*** Brake cut motor [16:25:24]Read from MH i2c: 01 [16:25:24]MH_I2C_Read... [16:25:24]*** Stop cut motor [16:25:24]*** Cut end [16:25:24]Read from MH i2c: 01 07 00 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: 01 07 00 6B 25 00 00 00 00 00 FF 0F A5 [16:25:24]process_action close_receipt done [16:25:24]requested_data is exist [16:25:24]produce_requested_data [16:25:24]requested_item fm.sn is exist - process it [16:25:24]wFMCommunicate request_size=4 [16:25:24]MH_SAM_APDU [16:25:24]CAPDU: 80 11 00 00 [16:25:24]Write to MH i2c: E2 08 00 6C 25 80 11 00 00 00 00 00 00 0B [16:25:24]Write i2c OK [16:25:24]MH_I2C_Read... [16:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:24]Read from MH i2c: E2 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: E2 17 00 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: E2 17 00 6C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [16:25: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:25:24]wFMCommunicate OK [16:25:24]requested_item fd.num is exist - process it [16:25:24]SAM_PROTO_GetFieldsCounters [16:25:24]wFMCommunicate request_size=4 [16:25:24]MH_SAM_APDU [16:25:24]CAPDU: 80 13 00 00 [16:25:24]Write to MH i2c: E2 08 00 6D 25 80 13 00 00 00 00 00 00 0E [16:25:24]Write i2c OK [16:25:24]MH_I2C_Read... [16:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:24]Read from MH i2c: E2 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: E2 62 00 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: E2 62 00 6D 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 25 [16:25: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 F5 97 01 00 0E 04 04 00 64 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 [16:25:24]wFMCommunicate OK [16:25:24]SAM_PROTO_GetFieldsCounters done [16:25:24]requested_item shift.num is exist - process it [16:25:24]requested_item shift.opened is exist - process it [16:25:24]req_shift_opened [16:25:24]FM_GetShiftState [16:25:24]SAM_PROTO_GetShiftState [16:25:24]wFMCommunicate request_size=4 [16:25:24]MH_SAM_APDU [16:25:24]CAPDU: 80 13 01 00 [16:25:24]Write to MH i2c: E2 08 00 6E 25 80 13 01 00 00 00 00 00 10 [16:25:24]Write i2c OK [16:25:24]MH_I2C_Read... [16:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:25]Read from MH i2c: E2 [16:25:25]MH_I2C_Read... [16:25:25]Read from MH i2c: E2 0E 00 [16:25:25]MH_I2C_Read... [16:25:25]Read from MH i2c: E2 0E 00 6E 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 02 [16:25:25]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:25:25]wFMCommunicate OK [16:25:25]SAM_PROTO_GetShiftState done [16:25:25]FM_GetShiftState done [16:25:25]req_shift_opened done [16:25:25]requested_item shift.open_date is exist - process it [16:25:25]req_shift_open_date [16:25:25]req_shift_open_date done [16:25:25]produce_requested_data done [16:25:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104437,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:25:25]process_action_free close_receipt [16:25:25]json_value_free [16:25:25]json_value_free done [16:25:25]process_json_proto returns [16:25:25]Send response to host [16:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104437,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:25:25]free response buf [16:25:25]execute_script done [16:25:25]execute_script returns [16:25:25]free content buf [16:25:25]Sock 9.Close socket [16:25:25]Sock 9.Thread stoped [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:32]accept exits with 7 [16:27:32]New connection [16:27:32]New thread 3066592612 created [16:27:32]Thread 3066449252 joined [16:27:32]Waiting for new connection... [16:27:32] Sock 7.Parse request [16:27:32]Sock 7.Check first char [16:27:32]Sock 7.First char is OK [16:27:32]request: POST /json_proto HTTP/1.0 [16:27:32]Method: POST [16:27:32]URL: /json_proto [16:27:32]Method is POST - this is cgi request [16:27:32]url: /json_proto [16:27:32]query_string will be loaded in cgi processing [16:27:32]execute_cgi json_proto POST (null) [16:27:32]execute_cgi path=json_proto method=POST [16:27:32]POST find Content-Length [16:27:32]Host: 172.17.38.133:8080 [16:27:32]Content-Length: 682 [16:27:32]Content-Type: application/json [16:27:32] [16:27:32]POST finish read [16:27:32]Found Content-Length = 682 [16:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674005", "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" : 5.220, "sum" : 380.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:32]execute_script... [16:27: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)674005", "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" : 5.220, "sum" : 380.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:32]POST & json_proto [16:27:32]process_json_proto [16:27:32]json parsed OK: [16:27:32]protocol is kg_v1.0 [16:27:32]action value=close_receipt [16:27:32]process_action close_receipt [16:27:32]cmd_close_receipt [16:27:32]MH_GetDate [16:27:32]Write to MH i2c: F0 00 00 6F 25 83 [16:27:32]Write i2c OK [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: F0 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: F0 09 00 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: F0 09 00 6F 25 00 76 FB 76 66 BD 8F 7C 64 05 [16:27:32]GetLastDocTimeStamp 1719073522 [16:27:32]current date 1719073654 [16:27:32]FM_GetShiftState [16:27:32]SAM_PROTO_GetShiftState [16:27:32]wFMCommunicate request_size=4 [16:27:32]MH_SAM_APDU [16:27:32]CAPDU: 80 13 01 00 [16:27:32]Write to MH i2c: E2 08 00 70 25 80 13 01 00 00 00 00 00 12 [16:27:32]Write i2c OK [16:27:32]MH_I2C_Read... [16:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:32]Read from MH i2c: E2 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: E2 0E 00 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: E2 0E 00 70 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 04 [16:27:32]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:27:32]wFMCommunicate OK [16:27:32]SAM_PROTO_GetShiftState done [16:27:32]FM_GetShiftState done [16:27:32]opened in 1719016176 [16:27:32]opened+sec_in_day 1719102576 [16:27:32]quantity*price = 38053 [16:27:32]sum+1 = 38055 [16:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.41 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 171 22.06.2024 16:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104438 ФПД: 83355907971964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162734&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104438&fm=83355907971964&tin=02508201610067®Number=0000000000092785&sum=38000 [16:27:33]StoreToDocumentArchive [16:27:33]shift 356 fd 104438 [16:27:33]save to /storage/0356/doc_00104438 [16:27:33]save last doc name /storage/0356/doc_00104438 to /storage/kkm_last_doc_name [16:27:33]save OK [16:27:33]Clear old archive folders... [16:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:27:33]tlvbuf is 00FB6A00 [16:27:33]SAM_PROTO_ClearQueue [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 09 00 00 [16:27:33]Write to MH i2c: E2 08 00 7D 25 80 09 00 00 00 00 00 00 14 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:33]Read from MH i2c: E2 03 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [16:27:33]RAPDU: 90 00 [16:27:33]wFMCommunicate OK [16:27:33]SAM_PROTO_ClearQueue done [16:27:33]KKMCreateOFDPacket [16:27:33]OFDProtocolAddRootSTLVToBuf [16:27:33]FM_MakeSignedData [16:27:33]FM_MakeSignedData [16:27:33]SAM_PROTO_SignData [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 0D 01 02 [16:27:33]Write to MH i2c: E2 08 00 7E 25 80 0D 01 02 00 00 00 00 1C [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 7E 25 00 90 00 17 [16:27:33]RAPDU: 90 00 [16:27:33]wFMCommunicate OK [16:27:33]wFMCommunicate request_size=255 [16:27:33]MH_SAM_APDU [16:27:33]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 14 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 76 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:27:33]Write to MH i2c: E2 02 01 7F 25 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 14 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 76 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 CC [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [16:27:33]RAPDU: 90 00 [16:27:33]wFMCommunicate OK [16:27:33]wFMCommunicate request_size=11 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 0D 02 02 06 4B CF CF 48 DB 7C [16:27:33]Write to MH i2c: E2 0E 00 80 25 80 0D 02 02 06 00 4B CF CF 48 DB 7C 00 00 B3 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [16:27:33]RAPDU: 90 00 [16:27:33]wFMCommunicate OK [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 0D 03 02 [16:27:33]Write to MH i2c: E2 08 00 81 25 80 0D 03 02 00 00 00 00 21 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0B 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0B 00 81 25 00 91 FF A6 70 F4 1F 00 94 90 00 6F [16:27:33]RAPDU: 91 FF A6 70 F4 1F 00 94 90 00 [16:27:33]wFMCommunicate OK [16:27:33]SAM_PROTO_SignData done [16:27:33]FM_MakeSignedData done [16:27:33]CreateOFDProtocolMessage [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 11 00 00 [16:27:33]Write to MH i2c: E2 08 00 82 25 80 11 00 00 00 00 00 00 21 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 17 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 17 00 82 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [16:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:27:33]wFMCommunicate OK [16:27:33]CreateOFDProtocolMessage done [16:27:33]OFDSenderStorePacket 104438 [16:27:33]StoreOFDPacket docnum=104438 [16:27: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 10 01 00 00 BC 6F 08 01 09 77 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 14 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 76 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4B CF CF 48 DB 7C 91 FF A6 70 F4 1F 00 94 [16:27:33]CheckFolder [16:27:33]dirname=/storage/ofd_packets [16:27:33]CheckFolder done [16:27:33]ProducePacketName [16:27:33]name=ofd_packets/00104438 [16:27:33]NVStorageSaveData ofd_packets/00104438 [16:27:33]File name is /storage/ofd_packets/00104438 [16:27:33]Write 302 bytes [16:27:33]NVStorageSaveData done [16:27:33]OFDSenderStorePacket done [16:27:33]KKMCreateOFDPacket done [16:27:33]NVStorageSaveData kkm_last_timestamp [16:27:33]File name is /storage/kkm_last_timestamp [16:27:33]Write 4 bytes [16:27:33]NVStorageSaveData done [16:27:33]ExternCall_PrintAddStr [16:27:33]wPrintStart [16:27:33]Write to MH i2c: 01 00 00 83 25 A8 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: 01 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: 01 07 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: 01 07 00 83 25 00 00 00 00 00 FF 0F BD [16:27:33]RasterBufferAndPrint [16:27:33]line Счет N : (1)674005 [16:27:33]line ИНН: 02508201610067 [16:27:33]line Контрольно-Кассовый Чек [16:27:33]line ПРОДАЖА [16:27:33]line ТРК (МРК, ГНК) : 21 [16:27:33]line Товар: 2710194210 [16:27:33]line ДТ(л)-К-5 [16:27:33]line 5.220 * 72.90 [16:27:33]line = 380.54 [16:27:33]line НДС 12% НСП 1% [16:27:33]line > о реализуемом товаре [16:27:33]line ОКРУГЛЕНИЕ: -0.54 [16:27:33]line ИТОГО: 380.00 [16:27:33]line Внесено: 380.00 [16:27:33]line СДАЧА: 0.00 [16:27:33]line НСП 1% : 3.37 [16:27:33]line НДС 12% : 40.41 [16:27:33]line Наличными: 380.00 [16:27:33]line Безнал.: 0.00 [16:27:33]line Место: АЗС № 120 "Партнер Нефть" [16:27:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:27:33]line СНО: Общий режим [16:27:33]line Чек 171 22.06.2024 16:27 [16:27:33]line Смена: 356 ФФД: 1.0 [16:27:33]line ЗНМ: 0300000164 [16:27:33]line РНМ: 0000000000092785 [16:27:33]line Версия ККМ: 001 [16:27:33]line ФМ: 0000000000875093 [16:27:33]line ФД: 104438 [16:27:33]line ФПД: 83355907971964 [16:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162734&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104438&fm=83355907971964&tin=02508201610067®Number=0000000000092785&sum=38000 [16:27:34]OFD Sender: Processing packet 104438 [packets to send 17, broken 16] [16:27:34]ProducePacketName [16:27:34]name=ofd_packets/00104438 [16:27:34]OFD Sender: To server: pG, [16:27:34]CommunicateWithHost lk.salyk.kg:30040 [16:27:34]ConnectInit lk.salyk.kg [16:27:34]written 0, free lines is 4095 [16:27:34]Connected sock=10 [16:27: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 10 01 00 00 BC 6F 08 01 09 77 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 14 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 76 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4B CF CF 48 DB 7C 91 FF A6 70 F4 1F 00 94 [16:27:34]Write to MH i2c: 01 00 00 AE 25 D3 [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: 01 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: 01 07 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: 01 07 00 AE 25 00 00 00 00 00 D8 0C BE [16:27:34]RasterBufferAndPrint [16:27:34]line [16:27:34]line [16:27:34]line [16:27:34]line [16:27:34]line [16:27:34]written 0, free lines is 3295 [16:27: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 5F DB 47 00 3E 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 F6 97 01 00 F4 03 04 00 F4 A1 76 66 B6 04 01 00 00 A9 DE D4 F3 1B 12 B0 DA [16:27:34]CommunicateWithHost err = 0 [16:27:34]CheckOFDResponse [16:27:34]1017 (14) - 77093643461234 [16:27:34]1041 (16) - 0000000000875093 [16:27:34]1040 (4) - 104438 [16:27:34]1012 (4) - 22.06.2024 10:05 [16:27:34]1206 (1) - 0 [16:27:34]OFD Sender: Remove packet 104438 [16:27:34]ProducePacketName [16:27:34]name=ofd_packets/00104438 [16:27:34]NVStorageDeleteData [16:27:34]MH_Cut [16:27:34]Write to MH i2c: D1 01 00 B5 25 01 AC [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: D1 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: D1 01 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: D1 01 00 B5 25 00 AB [16:27:34]Write to MH i2c: 01 00 00 B6 25 DB [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:35]OFD Sender: No OFD packet to send [16:27:35]*** Cut start [16:27:35]*** Partial cut [16:27:35]*** CUTSNS_PIN = 1 [16:27:35]*** CUTSNS_PIN = 0 [16:27:35]*** Brake cut motor [16:27:35]Read from MH i2c: 01 [16:27:35]MH_I2C_Read... [16:27:35]*** Stop cut motor [16:27:35]*** Cut end [16:27:35]Read from MH i2c: 01 07 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 07 00 B6 25 00 00 00 00 00 FF 0F F0 [16:27:35]process_action close_receipt done [16:27:35]requested_data is exist [16:27:35]produce_requested_data [16:27:35]requested_item fm.sn is exist - process it [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 11 00 00 [16:27:35]Write to MH i2c: E2 08 00 B7 25 80 11 00 00 00 00 00 00 56 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 B7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [16:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:27:36]wFMCommunicate OK [16:27:36]requested_item fd.num is exist - process it [16:27:36]SAM_PROTO_GetFieldsCounters [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 00 00 [16:27:36]Write to MH i2c: E2 08 00 B8 25 80 13 00 00 00 00 00 00 59 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 62 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 62 00 B8 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 74 [16:27: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 F6 97 01 00 0E 04 04 00 64 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 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_GetFieldsCounters done [16:27:36]requested_item shift.num is exist - process it [16:27:36]requested_item shift.opened is exist - process it [16:27:36]req_shift_opened [16:27:36]FM_GetShiftState [16:27:36]SAM_PROTO_GetShiftState [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 01 00 [16:27:36]Write to MH i2c: E2 08 00 B9 25 80 13 01 00 00 00 00 00 5B [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 B9 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4D [16:27:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_GetShiftState done [16:27:36]FM_GetShiftState done [16:27:36]req_shift_opened done [16:27:36]requested_item shift.open_date is exist - process it [16:27:36]req_shift_open_date [16:27:36]req_shift_open_date done [16:27:36]produce_requested_data done [16:27:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104438,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:27:36]process_action_free close_receipt [16:27:36]json_value_free [16:27:36]json_value_free done [16:27:36]process_json_proto returns [16:27:36]Send response to host [16:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104438,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:27:36]free response buf [16:27:36]execute_script done [16:27:36]execute_script returns [16:27:36]free content buf [16:27:36]Sock 7.Close socket [16:27:36]Sock 7.Thread stoped [16:27:36]accept exits with 9 [16:27:36]New connection [16:27:36]New thread 3066449252 created [16:27:36]Thread 3066592612 joined [16:27:36]Waiting for new connection... [16:27:36] Sock 9.Parse request [16:27:36]Sock 9.Check first char [16:27:36]Sock 9.First char is OK [16:27:36]request: POST /json_proto HTTP/1.0 [16:27:36]Method: POST [16:27:36]URL: /json_proto [16:27:36]Method is POST - this is cgi request [16:27:36]url: /json_proto [16:27:36]query_string will be loaded in cgi processing [16:27:36]execute_cgi json_proto POST (null) [16:27:36]execute_cgi path=json_proto method=POST [16:27:36]POST find Content-Length [16:27:36]Host: 172.17.38.133:8080 [16:27:36]Content-Length: 687 [16:27:36]Content-Type: application/json [16:27:36] [16:27:36]POST finish read [16:27:36]Found Content-Length = 687 [16:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674002", "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 }]} ], "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" ] } } [16:27:36]execute_script... [16:27: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)674002", "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 }]} ], "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" ] } } [16:27:36]POST & json_proto [16:27:36]process_json_proto [16:27:36]json parsed OK: [16:27:36]protocol is kg_v1.0 [16:27:36]action value=close_receipt [16:27:36]process_action close_receipt [16:27:36]cmd_close_receipt [16:27:36]MH_GetDate [16:27:36]Write to MH i2c: F0 00 00 BA 25 CE [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: F0 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: F0 09 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: F0 09 00 BA 25 00 7A FB 76 66 BD 8F 7C 64 54 [16:27:36]GetLastDocTimeStamp 1719073654 [16:27:36]current date 1719073658 [16:27:36]FM_GetShiftState [16:27:36]SAM_PROTO_GetShiftState [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 01 00 [16:27:36]Write to MH i2c: E2 08 00 BB 25 80 13 01 00 00 00 00 00 5D [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 BB 25 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 4F [16:27:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_GetShiftState done [16:27:36]FM_GetShiftState done [16:27:36]opened in 1719016176 [16:27:36]opened+sec_in_day 1719102576 [16:27:36]quantity*price = 600039 [16:27:36]sum+1 = 600041 [16:27:36]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 СНО: Общий режим Чек 172 22.06.2024 16:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104439 ФПД: 105327746635610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104439&fm=105327746635610&tin=02508201610067®Number=0000000000092785&sum=600000 [16:27:38]StoreToDocumentArchive [16:27:38]shift 356 fd 104439 [16:27:38]save to /storage/0356/doc_00104439 [16:27:38]save last doc name /storage/0356/doc_00104439 to /storage/kkm_last_doc_name [16:27:38]save OK [16:27:38]Clear old archive folders... [16:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:27:38]tlvbuf is 0109DA30 [16:27:38]SAM_PROTO_ClearQueue [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 09 00 00 [16:27:38]Write to MH i2c: E2 08 00 C8 25 80 09 00 00 00 00 00 00 5F [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 C8 25 00 90 00 61 [16:27:38]RAPDU: 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_ClearQueue done [16:27:38]KKMCreateOFDPacket [16:27:38]OFDProtocolAddRootSTLVToBuf [16:27:38]FM_MakeSignedData [16:27:38]FM_MakeSignedData [16:27:38]SAM_PROTO_SignData [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 0D 01 02 [16:27:38]Write to MH i2c: E2 08 00 C9 25 80 0D 01 02 00 00 00 00 67 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 C9 25 00 90 00 62 [16:27:38]RAPDU: 90 00 [16:27:38]wFMCommunicate OK [16:27:38]wFMCommunicate request_size=255 [16:27:38]MH_SAM_APDU [16:27: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 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 AC 00 00 00 F4 03 04 00 7A FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:27:38]Write to MH i2c: E2 02 01 CA 25 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 AC 00 00 00 F4 03 04 00 7A FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 AC [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [16:27:38]RAPDU: 90 00 [16:27:38]wFMCommunicate OK [16:27:38]wFMCommunicate request_size=11 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 0D 02 02 06 5F CB 86 EC 57 5A [16:27:38]Write to MH i2c: E2 0E 00 CB 25 80 0D 02 02 06 00 5F CB 86 EC 57 5A 00 00 C3 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [16:27:38]RAPDU: 90 00 [16:27:38]wFMCommunicate OK [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 0D 03 02 [16:27:38]Write to MH i2c: E2 08 00 CC 25 80 0D 03 02 00 00 00 00 6C [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0B 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0B 00 CC 25 00 D2 58 53 1B BD 0D 1C 09 90 00 F4 [16:27:38]RAPDU: D2 58 53 1B BD 0D 1C 09 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_SignData done [16:27:38]FM_MakeSignedData done [16:27:38]CreateOFDProtocolMessage [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 11 00 00 [16:27:38]Write to MH i2c: E2 08 00 CD 25 80 11 00 00 00 00 00 00 6C [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 CD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [16:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:27:38]wFMCommunicate OK [16:27:38]CreateOFDProtocolMessage done [16:27:38]OFDSenderStorePacket 104439 [16:27:38]StoreOFDPacket docnum=104439 [16:27: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 6F 70 08 01 3F 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 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 AC 00 00 00 F4 03 04 00 7A FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F CB 86 EC 57 5A D2 58 53 1B BD 0D 1C 09 [16:27:38]CheckFolder [16:27:38]dirname=/storage/ofd_packets [16:27:38]CheckFolder done [16:27:38]ProducePacketName [16:27:38]name=ofd_packets/00104439 [16:27:38]NVStorageSaveData ofd_packets/00104439 [16:27:38]File name is /storage/ofd_packets/00104439 [16:27:38]Write 302 bytes [16:27:38]NVStorageSaveData done [16:27:38]OFDSenderStorePacket done [16:27:38]KKMCreateOFDPacket done [16:27:38]NVStorageSaveData kkm_last_timestamp [16:27:38]File name is /storage/kkm_last_timestamp [16:27:38]Write 4 bytes [16:27:38]NVStorageSaveData done [16:27:38]ExternCall_PrintAddStr [16:27:38]wPrintStart [16:27:38]Write to MH i2c: 01 00 00 CE 25 F3 [16:27:38]OFD Sender: Processing packet 104439 [packets to send 17, broken 16] [16:27:38]ProducePacketName [16:27:38]name=ofd_packets/00104439 [16:27:38]OFD Sender: To server: pG, [16:27:38]CommunicateWithHost lk.salyk.kg:30040 [16:27:38]ConnectInit lk.salyk.kg [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: 01 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: 01 07 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: 01 07 00 CE 25 00 00 00 00 00 FF 0F 08 [16:27:38]RasterBufferAndPrint [16:27:38]line Счет N : (1)674002 [16:27:38]line ИНН: 02508201610067 [16:27:38]line Контрольно-Кассовый Чек [16:27:38]line ПРОДАЖА [16:27:38]line ТРК (МРК, ГНК) : 11 [16:27:38]line Товар: 2710194210 [16:27:38]line ДТ(л)-К-5 [16:27:38]line 82.310 * 72.90 [16:27:38]line = 6000.40 [16:27:38]line НДС 12% НСП 1% [16:27:38]line > о реализуемом товаре [16:27:38]line ОКРУГЛЕНИЕ: -0.40 [16:27:38]line ИТОГО: 6000.00 [16:27:38]line Внесено: 6000.00 [16:27:38]line СДАЧА: 0.00 [16:27:38]line НСП 1% : 53.10 [16:27:38]line НДС 12% : 637.21 [16:27:38]line Наличными: 6000.00 [16:27:38]line Безнал.: 0.00 [16:27:38]line Место: АЗС № 120 "Партнер Нефть" [16:27:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:27:38]line СНО: Общий режим [16:27:38]line Чек 172 22.06.2024 16:27 [16:27:38]line Смена: 356 ФФД: 1.0 [16:27:38]line ЗНМ: 0300000164 [16:27:38]line РНМ: 0000000000092785 [16:27:38]line Версия ККМ: 001 [16:27:38]line ФМ: 0000000000875093 [16:27:38]line ФД: 104439 [16:27:38]line ФПД: 105327746635610 [16:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104439&fm=105327746635610&tin=02508201610067®Number=0000000000092785&sum=600000 [16:27:38]written 0, free lines is 4095 [16:27:38]Connected sock=10 [16:27: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 6F 70 08 01 3F 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 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 AC 00 00 00 F4 03 04 00 7A FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 5F CB 86 EC 57 5A D2 58 53 1B BD 0D 1C 09 [16:27: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 6C 4B 47 00 E3 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 F7 97 01 00 F4 03 04 00 F9 A1 76 66 B6 04 01 00 00 A3 9E E1 81 C7 FB 29 1F [16:27:39]CommunicateWithHost err = 0 [16:27:39]CheckOFDResponse [16:27:39]1017 (14) - 77093643461234 [16:27:39]1041 (16) - 0000000000875093 [16:27:39]1040 (4) - 104439 [16:27:39]1012 (4) - 22.06.2024 10:05 [16:27:39]1206 (1) - 0 [16:27:39]OFD Sender: Remove packet 104439 [16:27:39]ProducePacketName [16:27:39]name=ofd_packets/00104439 [16:27:39]NVStorageDeleteData [16:27:39]Write to MH i2c: 01 00 00 F9 25 1E [16:27:39]Write i2c OK [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: 01 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: 01 07 00 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: 01 07 00 F9 25 00 00 00 00 00 F1 0C 22 [16:27:39]RasterBufferAndPrint [16:27:39]line [16:27:39]line [16:27:39]line [16:27:39]line [16:27:39]line [16:27:39]written 0, free lines is 3323 [16:27:39]MH_Cut [16:27:39]Write to MH i2c: D1 01 00 00 26 01 F8 [16:27:39]Write i2c OK [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: D1 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: D1 01 00 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: D1 01 00 00 26 00 F7 [16:27:39]Write to MH i2c: 01 00 00 01 26 27 [16:27:39]Write i2c OK [16:27:39]MH_I2C_Read... [16:27:39]OFD Sender: No OFD packet to send [16:27:39]*** Cut start [16:27:39]*** Partial cut [16:27:39]*** CUTSNS_PIN = 1 [16:27:39]*** CUTSNS_PIN = 0 [16:27:40]*** Brake cut motor [16:27:40]Read from MH i2c: 01 [16:27:40]MH_I2C_Read... [16:27:40]*** Stop cut motor [16:27:40]*** Cut end [16:27:40]Read from MH i2c: 01 07 00 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: 01 07 00 01 26 00 00 00 00 00 FF 0F 3C [16:27:40]process_action close_receipt done [16:27:40]requested_data is exist [16:27:40]produce_requested_data [16:27:40]requested_item fm.sn is exist - process it [16:27:40]wFMCommunicate request_size=4 [16:27:40]MH_SAM_APDU [16:27:40]CAPDU: 80 11 00 00 [16:27:40]Write to MH i2c: E2 08 00 02 26 80 11 00 00 00 00 00 00 A2 [16:27:40]Write i2c OK [16:27:40]MH_I2C_Read... [16:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:40]Read from MH i2c: E2 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 17 00 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 17 00 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [16:27: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:27:40]wFMCommunicate OK [16:27:40]requested_item fd.num is exist - process it [16:27:40]SAM_PROTO_GetFieldsCounters [16:27:40]wFMCommunicate request_size=4 [16:27:40]MH_SAM_APDU [16:27:40]CAPDU: 80 13 00 00 [16:27:40]Write to MH i2c: E2 08 00 03 26 80 13 00 00 00 00 00 00 A5 [16:27:40]Write i2c OK [16:27:40]MH_I2C_Read... [16:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:40]Read from MH i2c: E2 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 62 00 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 62 00 03 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 C4 [16:27: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 F7 97 01 00 0E 04 04 00 64 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 [16:27:40]wFMCommunicate OK [16:27:40]SAM_PROTO_GetFieldsCounters done [16:27:40]requested_item shift.num is exist - process it [16:27:40]requested_item shift.opened is exist - process it [16:27:40]req_shift_opened [16:27:40]FM_GetShiftState [16:27:40]SAM_PROTO_GetShiftState [16:27:40]wFMCommunicate request_size=4 [16:27:40]MH_SAM_APDU [16:27:40]CAPDU: 80 13 01 00 [16:27:40]Write to MH i2c: E2 08 00 04 26 80 13 01 00 00 00 00 00 A7 [16:27:40]Write i2c OK [16:27:40]MH_I2C_Read... [16:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:40]Read from MH i2c: E2 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 0E 00 [16:27:40]MH_I2C_Read... [16:27:40]Read from MH i2c: E2 0E 00 04 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 99 [16:27:40]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:27:40]wFMCommunicate OK [16:27:40]SAM_PROTO_GetShiftState done [16:27:40]FM_GetShiftState done [16:27:40]req_shift_opened done [16:27:40]requested_item shift.open_date is exist - process it [16:27:40]req_shift_open_date [16:27:40]req_shift_open_date done [16:27:40]produce_requested_data done [16:27:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104439,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:27:40]process_action_free close_receipt [16:27:40]json_value_free [16:27:40]json_value_free done [16:27:40]process_json_proto returns [16:27:40]Send response to host [16:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104439,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:27:40]free response buf [16:27:40]execute_script done [16:27:40]execute_script returns [16:27:40]free content buf [16:27:40]Sock 9.Close socket [16:27:40]Sock 9.Thread stoped [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:05]accept exits with 7 [16:29:05]New connection [16:29:05]New thread 3066592612 created [16:29:05]Thread 3066449252 joined [16:29:05]Waiting for new connection... [16:29:05] Sock 7.Parse request [16:29:05]Sock 7.Check first char [16:29:05]Sock 7.First char is OK [16:29:05]request: POST /json_proto HTTP/1.0 [16:29:05]Method: POST [16:29:05]URL: /json_proto [16:29:05]Method is POST - this is cgi request [16:29:05]url: /json_proto [16:29:05]query_string will be loaded in cgi processing [16:29:05]execute_cgi json_proto POST (null) [16:29:05]execute_cgi path=json_proto method=POST [16:29:05]POST find Content-Length [16:29:05]Host: 172.17.38.133:8080 [16:29:05]Content-Length: 687 [16:29:05]Content-Type: application/json [16:29:05] [16:29:05]POST finish read [16:29:05]Found Content-Length = 687 [16:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674008", "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" ] } } [16:29:05]execute_script... [16:29: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)674008", "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" ] } } [16:29:05]POST & json_proto [16:29:05]process_json_proto [16:29:05]json parsed OK: [16:29:05]protocol is kg_v1.0 [16:29:05]action value=close_receipt [16:29:05]process_action close_receipt [16:29:05]cmd_close_receipt [16:29:05]MH_GetDate [16:29:05]Write to MH i2c: F0 00 00 05 26 1A [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: F0 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: F0 09 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: F0 09 00 05 26 00 D3 FB 76 66 BD 8F 7C 64 F9 [16:29:05]GetLastDocTimeStamp 1719073658 [16:29:05]current date 1719073747 [16:29:05]FM_GetShiftState [16:29:05]SAM_PROTO_GetShiftState [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 13 01 00 [16:29:05]Write to MH i2c: E2 08 00 06 26 80 13 01 00 00 00 00 00 A9 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0E 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0E 00 06 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9B [16:29:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:29:05]wFMCommunicate OK [16:29:05]SAM_PROTO_GetShiftState done [16:29:05]FM_GetShiftState done [16:29:05]opened in 1719016176 [16:29:05]opened+sec_in_day 1719102576 [16:29:05]quantity*price = 100018 [16:29:05]sum+1 = 100020 [16:29:05]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 СНО: Общий режим Чек 173 22.06.2024 16:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104440 ФПД: 269955436326375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162907&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104440&fm=269955436326375&tin=02508201610067®Number=0000000000092785&sum=100000 [16:29:06]StoreToDocumentArchive [16:29:06]shift 356 fd 104440 [16:29:06]save to /storage/0356/doc_00104440 [16:29:06]save last doc name /storage/0356/doc_00104440 to /storage/kkm_last_doc_name [16:29:06]save OK [16:29:06]Clear old archive folders... [16:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:29:06]tlvbuf is 00FD3570 [16:29:06]SAM_PROTO_ClearQueue [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 09 00 00 [16:29:06]Write to MH i2c: E2 08 00 13 26 80 09 00 00 00 00 00 00 AB [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:06]Read from MH i2c: E2 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 03 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [16:29:06]RAPDU: 90 00 [16:29:06]wFMCommunicate OK [16:29:06]SAM_PROTO_ClearQueue done [16:29:06]KKMCreateOFDPacket [16:29:06]OFDProtocolAddRootSTLVToBuf [16:29:06]FM_MakeSignedData [16:29:06]FM_MakeSignedData [16:29:06]SAM_PROTO_SignData [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 0D 01 02 [16:29:06]Write to MH i2c: E2 08 00 14 26 80 0D 01 02 00 00 00 00 B3 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 14 26 00 90 00 AE [16:29:07]RAPDU: 90 00 [16:29:07]wFMCommunicate OK [16:29:07]wFMCommunicate request_size=255 [16:29:07]MH_SAM_APDU [16:29: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 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 AD 00 00 00 F4 03 04 00 D3 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:29:07]Write to MH i2c: E2 02 01 15 26 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 AD 00 00 00 F4 03 04 00 D3 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 53 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 15 26 00 90 00 AF [16:29:07]RAPDU: 90 00 [16:29:07]wFMCommunicate OK [16:29:07]wFMCommunicate request_size=11 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 0D 02 02 06 F5 85 E5 E3 2D E7 [16:29:07]Write to MH i2c: E2 0E 00 16 26 80 0D 02 02 06 00 F5 85 E5 E3 2D E7 00 00 18 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 16 26 00 90 00 B0 [16:29:07]RAPDU: 90 00 [16:29:07]wFMCommunicate OK [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 0D 03 02 [16:29:07]Write to MH i2c: E2 08 00 17 26 80 0D 03 02 00 00 00 00 B8 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0B 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0B 00 17 26 00 88 BE CA 89 34 12 10 D9 90 00 81 [16:29:07]RAPDU: 88 BE CA 89 34 12 10 D9 90 00 [16:29:07]wFMCommunicate OK [16:29:07]SAM_PROTO_SignData done [16:29:07]FM_MakeSignedData done [16:29:07]CreateOFDProtocolMessage [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 11 00 00 [16:29:07]Write to MH i2c: E2 08 00 18 26 80 11 00 00 00 00 00 00 B8 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 17 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 17 00 18 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [16:29: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:29:07]wFMCommunicate OK [16:29:07]CreateOFDProtocolMessage done [16:29:07]OFDSenderStorePacket 104440 [16:29:07]StoreOFDPacket docnum=104440 [16:29: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 FD 24 08 01 6A 24 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 AD 00 00 00 F4 03 04 00 D3 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 85 E5 E3 2D E7 88 BE CA 89 34 12 10 D9 [16:29:07]CheckFolder [16:29:07]dirname=/storage/ofd_packets [16:29:07]CheckFolder done [16:29:07]ProducePacketName [16:29:07]name=ofd_packets/00104440 [16:29:07]NVStorageSaveData ofd_packets/00104440 [16:29:07]File name is /storage/ofd_packets/00104440 [16:29:07]Write 302 bytes [16:29:07]NVStorageSaveData done [16:29:07]OFDSenderStorePacket done [16:29:07]KKMCreateOFDPacket done [16:29:07]NVStorageSaveData kkm_last_timestamp [16:29:07]File name is /storage/kkm_last_timestamp [16:29:07]Write 4 bytes [16:29:07]NVStorageSaveData done [16:29:07]ExternCall_PrintAddStr [16:29:07]wPrintStart [16:29:07]Write to MH i2c: 01 00 00 19 26 3F [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: 01 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: 01 07 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: 01 07 00 19 26 00 00 00 00 00 FF 0F 54 [16:29:07]RasterBufferAndPrint [16:29:07]line Счет N : (1)674008 [16:29:07]line ИНН: 02508201610067 [16:29:07]line Контрольно-Кассовый Чек [16:29:07]line ПРОДАЖА [16:29:07]line ТРК (МРК, ГНК) : 21 [16:29:07]line Товар: 2710194210 [16:29:07]line ДТ(л)-К-5 [16:29:07]line 13.720 * 72.90 [16:29:07]line = 1000.19 [16:29:07]line НДС 12% НСП 1% [16:29:07]line > о реализуемом товаре [16:29:07]line ОКРУГЛЕНИЕ: -0.19 [16:29:07]line ИТОГО: 1000.00 [16:29:07]line Внесено: 1000.00 [16:29:07]line СДАЧА: 0.00 [16:29:07]line НСП 1% : 8.85 [16:29:07]line НДС 12% : 106.21 [16:29:07]line Наличными: 1000.00 [16:29:07]line Безнал.: 0.00 [16:29:07]line Место: АЗС № 120 "Партнер Нефть" [16:29:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:29:07]line СНО: Общий режим [16:29:07]line Чек 173 22.06.2024 16:29 [16:29:07]line Смена: 356 ФФД: 1.0 [16:29:07]line ЗНМ: 0300000164 [16:29:07]line РНМ: 0000000000092785 [16:29:07]line Версия ККМ: 001 [16:29:07]line ФМ: 0000000000875093 [16:29:07]line ФД: 104440 [16:29:07]line ФПД: 269955436326375 [16:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162907&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104440&fm=269955436326375&tin=02508201610067®Number=0000000000092785&sum=100000 [16:29:07]OFD Sender: Processing packet 104440 [packets to send 17, broken 16] [16:29:07]ProducePacketName [16:29:07]name=ofd_packets/00104440 [16:29:07]OFD Sender: To server: pG, [16:29:07]CommunicateWithHost lk.salyk.kg:30040 [16:29:07]ConnectInit lk.salyk.kg [16:29:07]written 0, free lines is 4095 [16:29:07]Connected sock=10 [16:29: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 10 01 00 00 FD 24 08 01 6A 24 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 AD 00 00 00 F4 03 04 00 D3 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F5 85 E5 E3 2D E7 88 BE CA 89 34 12 10 D9 [16:29: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 25 A4 47 00 9D 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 97 01 00 F4 03 04 00 52 A2 76 66 B6 04 01 00 00 9E E8 7E CC 70 29 AA 15 [16:29:08]CommunicateWithHost err = 0 [16:29:08]CheckOFDResponse [16:29:08]1017 (14) - 77093643461234 [16:29:08]1041 (16) - 0000000000875093 [16:29:08]1040 (4) - 104440 [16:29:08]1012 (4) - 22.06.2024 10:07 [16:29:08]1206 (1) - 0 [16:29:08]OFD Sender: Remove packet 104440 [16:29:08]ProducePacketName [16:29:08]name=ofd_packets/00104440 [16:29:08]NVStorageDeleteData [16:29:08]Write to MH i2c: 01 00 00 44 26 6A [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 44 26 00 00 00 00 00 E1 0C 5E [16:29:08]RasterBufferAndPrint [16:29:08]line [16:29:08]line [16:29:08]line [16:29:08]line [16:29:08]line [16:29:08]written 0, free lines is 3303 [16:29:08]MH_Cut [16:29:08]Write to MH i2c: D1 01 00 4B 26 01 43 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D1 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D1 01 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D1 01 00 4B 26 00 42 [16:29:08]Write to MH i2c: 01 00 00 4C 26 72 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]OFD Sender: No OFD packet to send [16:29:09]*** Cut start [16:29:09]*** Partial cut [16:29:09]*** CUTSNS_PIN = 1 [16:29:09]*** CUTSNS_PIN = 0 [16:29:09]*** Brake cut motor [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]*** Stop cut motor [16:29:09]*** Cut end [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 4C 26 00 00 00 00 00 FF 0F 87 [16:29:09]process_action close_receipt done [16:29:09]requested_data is exist [16:29:09]produce_requested_data [16:29:09]requested_item fm.sn is exist - process it [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 11 00 00 [16:29:09]Write to MH i2c: E2 08 00 4D 26 80 11 00 00 00 00 00 00 ED [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 17 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 17 00 4D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [16:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:29:09]wFMCommunicate OK [16:29:09]requested_item fd.num is exist - process it [16:29:09]SAM_PROTO_GetFieldsCounters [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 13 00 00 [16:29:09]Write to MH i2c: E2 08 00 4E 26 80 13 00 00 00 00 00 00 F0 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 62 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 62 00 4E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 13 [16:29: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 F8 97 01 00 0E 04 04 00 64 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 [16:29:09]wFMCommunicate OK [16:29:09]SAM_PROTO_GetFieldsCounters done [16:29:09]requested_item shift.num is exist - process it [16:29:09]requested_item shift.opened is exist - process it [16:29:09]req_shift_opened [16:29:09]FM_GetShiftState [16:29:09]SAM_PROTO_GetShiftState [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 13 01 00 [16:29:09]Write to MH i2c: E2 08 00 4F 26 80 13 01 00 00 00 00 00 F2 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 4F 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E4 [16:29:09]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:29:09]wFMCommunicate OK [16:29:09]SAM_PROTO_GetShiftState done [16:29:09]FM_GetShiftState done [16:29:09]req_shift_opened done [16:29:09]requested_item shift.open_date is exist - process it [16:29:09]req_shift_open_date [16:29:09]req_shift_open_date done [16:29:09]produce_requested_data done [16:29:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104440,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:29:09]process_action_free close_receipt [16:29:09]json_value_free [16:29:09]json_value_free done [16:29:09]process_json_proto returns [16:29:09]Send response to host [16:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104440,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:29:09]free response buf [16:29:09]execute_script done [16:29:09]execute_script returns [16:29:09]free content buf [16:29:09]Sock 7.Close socket [16:29:09]Sock 7.Thread stoped [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]accept exits with 9 [16:29:23]New connection [16:29:23]New thread 3066449252 created [16:29:23]Thread 3066592612 joined [16:29:23]Waiting for new connection... [16:29:23] Sock 9.Parse request [16:29:23]Sock 9.Check first char [16:29:23]Sock 9.First char is OK [16:29:23]request: POST /json_proto HTTP/1.0 [16:29:23]Method: POST [16:29:23]URL: /json_proto [16:29:23]Method is POST - this is cgi request [16:29:23]url: /json_proto [16:29:23]query_string will be loaded in cgi processing [16:29:23]execute_cgi json_proto POST (null) [16:29:23]execute_cgi path=json_proto method=POST [16:29:23]POST find Content-Length [16:29:23]Host: 172.17.38.133:8080 [16:29:23]Content-Length: 677 [16:29:23]Content-Type: application/json [16:29:23] [16:29:23]POST finish read [16:29:23]Found Content-Length = 677 [16:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674007", "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.320, "sum" : 419.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 419.00, "total" : 419.00, "payments": [ { "type": 0, "sum" : 419.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:23]execute_script... [16:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674007", "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.320, "sum" : 419.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 419.00, "total" : 419.00, "payments": [ { "type": 0, "sum" : 419.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:23]POST & json_proto [16:29:23]process_json_proto [16:29:23]json parsed OK: [16:29:23]protocol is kg_v1.0 [16:29:23]action value=close_receipt [16:29:23]process_action close_receipt [16:29:23]cmd_close_receipt [16:29:23]MH_GetDate [16:29:23]Write to MH i2c: F0 00 00 50 26 65 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: F0 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: F0 09 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: F0 09 00 50 26 00 E5 FB 76 66 BD 8F 7C 64 56 [16:29:23]GetLastDocTimeStamp 1719073747 [16:29:23]current date 1719073765 [16:29:23]FM_GetShiftState [16:29:23]SAM_PROTO_GetShiftState [16:29:23]wFMCommunicate request_size=4 [16:29:23]MH_SAM_APDU [16:29:23]CAPDU: 80 13 01 00 [16:29:23]Write to MH i2c: E2 08 00 51 26 80 13 01 00 00 00 00 00 F4 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:23]Read from MH i2c: E2 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 0E 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 0E 00 51 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E6 [16:29:23]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:29:23]wFMCommunicate OK [16:29:23]SAM_PROTO_GetShiftState done [16:29:23]FM_GetShiftState done [16:29:23]opened in 1719016176 [16:29:23]opened+sec_in_day 1719102576 [16:29:23]quantity*price = 41964 [16:29:23]sum+1 = 41966 [16:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 419.00 Внесено: 419.00 СДАЧА: 0.00 НСП 1% : 3.71 НДС 12% : 44.56 Наличными: 419.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 174 22.06.2024 16:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104441 ФПД: 84068661759689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162925&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104441&fm=84068661759689&tin=02508201610067®Number=0000000000092785&sum=41900 [16:29:24]StoreToDocumentArchive [16:29:24]shift 356 fd 104441 [16:29:24]save to /storage/0356/doc_00104441 [16:29:24]save last doc name /storage/0356/doc_00104441 to /storage/kkm_last_doc_name [16:29:24]save OK [16:29:24]Clear old archive folders... [16:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:24]tlvbuf is B6EFD060 [16:29:24]SAM_PROTO_ClearQueue [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 09 00 00 [16:29:24]Write to MH i2c: E2 08 00 5E 26 80 09 00 00 00 00 00 00 F6 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]SAM_PROTO_ClearQueue done [16:29:24]KKMCreateOFDPacket [16:29:24]OFDProtocolAddRootSTLVToBuf [16:29:24]FM_MakeSignedData [16:29:24]FM_MakeSignedData [16:29:24]SAM_PROTO_SignData [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 0D 01 02 [16:29:24]Write to MH i2c: E2 08 00 5F 26 80 0D 01 02 00 00 00 00 FE [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]wFMCommunicate request_size=255 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 ED A3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 11 00 00 00 00 07 04 06 00 AC A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C [16:29:24]Write to MH i2c: E2 02 01 60 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 ED A3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 11 00 00 00 00 07 04 06 00 AC A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 00 00 A6 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 60 26 00 90 00 FA [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]wFMCommunicate request_size=10 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 0D 02 02 05 75 C2 B8 8E C9 [16:29:24]Write to MH i2c: E2 0D 00 61 26 80 0D 02 02 05 00 75 C2 B8 8E C9 00 00 51 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 03 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 03 00 61 26 00 90 00 FB [16:29:25]RAPDU: 90 00 [16:29:25]wFMCommunicate OK [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 0D 03 02 [16:29:25]Write to MH i2c: E2 08 00 62 26 80 0D 03 02 00 00 00 00 03 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0B 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0B 00 62 26 00 90 9F 45 F9 E2 28 29 2D 90 00 D1 [16:29:25]RAPDU: 90 9F 45 F9 E2 28 29 2D 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_SignData done [16:29:25]FM_MakeSignedData done [16:29:25]CreateOFDProtocolMessage [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 11 00 00 [16:29:25]Write to MH i2c: E2 08 00 63 26 80 11 00 00 00 00 00 00 03 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 63 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [16:29: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:29:25]wFMCommunicate OK [16:29:25]CreateOFDProtocolMessage done [16:29:25]OFDSenderStorePacket 104441 [16:29:25]StoreOFDPacket docnum=104441 [16:29: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 03 3A 07 01 D8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 ED A3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 11 00 00 00 00 07 04 06 00 AC A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 75 C2 B8 8E C9 90 9F 45 F9 E2 28 29 2D [16:29:25]CheckFolder [16:29:25]dirname=/storage/ofd_packets [16:29:25]CheckFolder done [16:29:25]ProducePacketName [16:29:25]name=ofd_packets/00104441 [16:29:25]NVStorageSaveData ofd_packets/00104441 [16:29:25]File name is /storage/ofd_packets/00104441 [16:29:25]Write 301 bytes [16:29:25]NVStorageSaveData done [16:29:25]OFDSenderStorePacket done [16:29:25]KKMCreateOFDPacket done [16:29:25]NVStorageSaveData kkm_last_timestamp [16:29:25]File name is /storage/kkm_last_timestamp [16:29:25]Write 4 bytes [16:29:25]NVStorageSaveData done [16:29:25]ExternCall_PrintAddStr [16:29:25]wPrintStart [16:29:25]Write to MH i2c: 01 00 00 64 26 8A [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 07 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 07 00 64 26 00 00 00 00 00 FF 0F 9F [16:29:25]RasterBufferAndPrint [16:29:25]line Счет N : (1)674007 [16:29:25]line ИНН: 02508201610067 [16:29:25]line Контрольно-Кассовый Чек [16:29:25]line ПРОДАЖА [16:29:25]line ТРК (МРК, ГНК) : 42 [16:29:25]line Товар: 2710124130 [16:29:25]line Аи-92-К-5 [16:29:25]line 6.320 * 66.40 [16:29:25]line = 419.65 [16:29:25]line НДС 12% НСП 1% [16:29:25]line > о реализуемом товаре [16:29:25]line ОКРУГЛЕНИЕ: -0.65 [16:29:25]line ИТОГО: 419.00 [16:29:25]line Внесено: 419.00 [16:29:25]line СДАЧА: 0.00 [16:29:25]line НСП 1% : 3.71 [16:29:25]line НДС 12% : 44.56 [16:29:25]line Наличными: 419.00 [16:29:25]line Безнал.: 0.00 [16:29:25]line Место: АЗС № 120 "Партнер Нефть" [16:29:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:29:25]line СНО: Общий режим [16:29:25]line Чек 174 22.06.2024 16:29 [16:29:25]line Смена: 356 ФФД: 1.0 [16:29:25]line ЗНМ: 0300000164 [16:29:25]line РНМ: 0000000000092785 [16:29:25]line Версия ККМ: 001 [16:29:25]line ФМ: 0000000000875093 [16:29:25]line ФД: 104441 [16:29:25]line ФПД: 84068661759689 [16:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162925&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104441&fm=84068661759689&tin=02508201610067®Number=0000000000092785&sum=41900 [16:29:25]written 0, free lines is 4095 [16:29:25]OFD Sender: Processing packet 104441 [packets to send 17, broken 16] [16:29:25]ProducePacketName [16:29:25]name=ofd_packets/00104441 [16:29:25]OFD Sender: To server: pG, [16:29:25]CommunicateWithHost lk.salyk.kg:30040 [16:29:25]ConnectInit lk.salyk.kg [16:29:25]Connected sock=10 [16:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 03 3A 07 01 D8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 ED A3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 11 00 00 00 00 07 04 06 00 AC A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 FB 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 4C 75 C2 B8 8E C9 90 9F 45 F9 E2 28 29 2D [16:29: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 30 55 47 00 4F 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 F9 97 01 00 F4 03 04 00 63 A2 76 66 B6 04 01 00 00 67 4D 3B 72 87 93 B8 16 [16:29:25]CommunicateWithHost err = 0 [16:29:25]CheckOFDResponse [16:29:25]1017 (14) - 77093643461234 [16:29:25]1041 (16) - 0000000000875093 [16:29:25]1040 (4) - 104441 [16:29:25]1012 (4) - 22.06.2024 10:07 [16:29:25]1206 (1) - 0 [16:29:25]OFD Sender: Remove packet 104441 [16:29:25]ProducePacketName [16:29:25]name=ofd_packets/00104441 [16:29:25]NVStorageDeleteData [16:29:25]Write to MH i2c: 01 00 00 8F 26 B5 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 07 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: 01 07 00 8F 26 00 00 00 00 00 EE 0C B6 [16:29:25]RasterBufferAndPrint [16:29:25]line [16:29:25]line [16:29:25]line [16:29:25]line [16:29:25]line [16:29:25]written 0, free lines is 3319 [16:29:25]MH_Cut [16:29:25]Write to MH i2c: D1 01 00 96 26 01 8E [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: D1 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: D1 01 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: D1 01 00 96 26 00 8D [16:29:25]Write to MH i2c: 01 00 00 97 26 BD [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:26]OFD Sender: No OFD packet to send [16:29:26]*** Cut start [16:29:26]*** Partial cut [16:29:26]*** CUTSNS_PIN = 1 [16:29:26]*** CUTSNS_PIN = 0 [16:29:26]*** Brake cut motor [16:29:26]Read from MH i2c: 01 [16:29:26]MH_I2C_Read... [16:29:26]*** Stop cut motor [16:29:26]*** Cut end [16:29:26]Read from MH i2c: 01 07 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: 01 07 00 97 26 00 00 00 00 00 FF 0F D2 [16:29:26]process_action close_receipt done [16:29:26]requested_data is exist [16:29:26]produce_requested_data [16:29:26]requested_item fm.sn is exist - process it [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 11 00 00 [16:29:26]Write to MH i2c: E2 08 00 98 26 80 11 00 00 00 00 00 00 38 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 17 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 17 00 98 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [16:29: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:29:26]wFMCommunicate OK [16:29:26]requested_item fd.num is exist - process it [16:29:26]SAM_PROTO_GetFieldsCounters [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 13 00 00 [16:29:26]Write to MH i2c: E2 08 00 99 26 80 13 00 00 00 00 00 00 3B [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 62 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 62 00 99 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 62 [16:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [16:29:27]wFMCommunicate OK [16:29:27]SAM_PROTO_GetFieldsCounters done [16:29:27]requested_item shift.num is exist - process it [16:29:27]requested_item shift.opened is exist - process it [16:29:27]req_shift_opened [16:29:27]FM_GetShiftState [16:29:27]SAM_PROTO_GetShiftState [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 13 01 00 [16:29:27]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 0E 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2F [16:29:27]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:29:27]wFMCommunicate OK [16:29:27]SAM_PROTO_GetShiftState done [16:29:27]FM_GetShiftState done [16:29:27]req_shift_opened done [16:29:27]requested_item shift.open_date is exist - process it [16:29:27]req_shift_open_date [16:29:27]req_shift_open_date done [16:29:27]produce_requested_data done [16:29:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104441,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:29:27]process_action_free close_receipt [16:29:27]json_value_free [16:29:27]json_value_free done [16:29:27]process_json_proto returns [16:29:27]Send response to host [16:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104441,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:29:27]free response buf [16:29:27]execute_script done [16:29:27]execute_script returns [16:29:27]free content buf [16:29:27]Sock 9.Close socket [16:29:27]Sock 9.Thread stoped [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]accept exits with 7 [16:32:36]New connection [16:32:36]New thread 3066592612 created [16:32:36]Thread 3066449252 joined [16:32:36]Waiting for new connection... [16:32:36] Sock 7.Parse request [16:32:36]Sock 7.Check first char [16:32:36]Sock 7.First char is OK [16:32:36]request: POST /json_proto HTTP/1.0 [16:32:36]Method: POST [16:32:36]URL: /json_proto [16:32:36]Method is POST - this is cgi request [16:32:36]url: /json_proto [16:32:36]query_string will be loaded in cgi processing [16:32:36]execute_cgi json_proto POST (null) [16:32:36]execute_cgi path=json_proto method=POST [16:32:36]POST find Content-Length [16:32:36]Host: 172.17.38.133:8080 [16:32:36]Content-Length: 687 [16:32:36]Content-Type: application/json [16:32:36] [16:32:36]POST finish read [16:32:36]Found Content-Length = 687 [16:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674009", "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" ] } } [16:32:36]execute_script... [16:32: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)674009", "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" ] } } [16:32:36]POST & json_proto [16:32:36]process_json_proto [16:32:36]json parsed OK: [16:32:36]protocol is kg_v1.0 [16:32:36]action value=close_receipt [16:32:36]process_action close_receipt [16:32:36]cmd_close_receipt [16:32:36]MH_GetDate [16:32:36]Write to MH i2c: F0 00 00 9B 26 B0 [16:32:36]OFD Sender: No OFD packet to send [16:32:36]Write i2c OK [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: F0 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: F0 09 00 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: F0 09 00 9B 26 00 A6 FC 76 66 BD 8F 7C 64 63 [16:32:36]GetLastDocTimeStamp 1719073765 [16:32:36]current date 1719073958 [16:32:36]FM_GetShiftState [16:32:36]SAM_PROTO_GetShiftState [16:32:36]wFMCommunicate request_size=4 [16:32:36]MH_SAM_APDU [16:32:36]CAPDU: 80 13 01 00 [16:32:36]Write to MH i2c: E2 08 00 9C 26 80 13 01 00 00 00 00 00 3F [16:32:36]Write i2c OK [16:32:36]MH_I2C_Read... [16:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:36]Read from MH i2c: E2 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: E2 0E 00 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: E2 0E 00 9C 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 31 [16:32:36]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:32:36]wFMCommunicate OK [16:32:36]SAM_PROTO_GetShiftState done [16:32:36]FM_GetShiftState done [16:32:36]opened in 1719016176 [16:32:36]opened+sec_in_day 1719102576 [16:32:36]quantity*price = 100018 [16:32:36]sum+1 = 100020 [16:32:36]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 СНО: Общий режим Чек 175 22.06.2024 16:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104442 ФПД: 255405980167223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163238&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104442&fm=255405980167223&tin=02508201610067®Number=0000000000092785&sum=100000 [16:32:37]StoreToDocumentArchive [16:32:37]shift 356 fd 104442 [16:32:37]save to /storage/0356/doc_00104442 [16:32:37]save last doc name /storage/0356/doc_00104442 to /storage/kkm_last_doc_name [16:32:37]save OK [16:32:37]Clear old archive folders... [16:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:32:37]tlvbuf is 01043160 [16:32:37]SAM_PROTO_ClearQueue [16:32:37]wFMCommunicate request_size=4 [16:32:37]MH_SAM_APDU [16:32:37]CAPDU: 80 09 00 00 [16:32:37]Write to MH i2c: E2 08 00 A9 26 80 09 00 00 00 00 00 00 41 [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [16:32:37]RAPDU: 90 00 [16:32:37]wFMCommunicate OK [16:32:37]SAM_PROTO_ClearQueue done [16:32:37]KKMCreateOFDPacket [16:32:37]OFDProtocolAddRootSTLVToBuf [16:32:37]FM_MakeSignedData [16:32:37]FM_MakeSignedData [16:32:37]SAM_PROTO_SignData [16:32:37]wFMCommunicate request_size=4 [16:32:37]MH_SAM_APDU [16:32:37]CAPDU: 80 0D 01 02 [16:32:37]Write to MH i2c: E2 08 00 AA 26 80 0D 01 02 00 00 00 00 49 [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [16:32:37]RAPDU: 90 00 [16:32:37]wFMCommunicate OK [16:32:37]wFMCommunicate request_size=255 [16:32:37]MH_SAM_APDU [16:32: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 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 AF 00 00 00 F4 03 04 00 A6 FC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 [16:32:37]Write to MH i2c: E2 02 01 AB 26 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 AF 00 00 00 F4 03 04 00 A6 FC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 00 00 C1 [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 AB 26 00 90 00 45 [16:32:37]RAPDU: 90 00 [16:32:37]wFMCommunicate OK [16:32:37]wFMCommunicate request_size=11 [16:32:37]MH_SAM_APDU [16:32:37]CAPDU: 80 0D 02 02 06 E8 4A 56 B8 AC 37 [16:32:37]Write to MH i2c: E2 0E 00 AC 26 80 0D 02 02 06 00 E8 4A 56 B8 AC 37 00 00 7B [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 03 00 AC 26 00 90 00 46 [16:32:37]RAPDU: 90 00 [16:32:37]wFMCommunicate OK [16:32:37]wFMCommunicate request_size=4 [16:32:37]MH_SAM_APDU [16:32:37]CAPDU: 80 0D 03 02 [16:32:37]Write to MH i2c: E2 08 00 AD 26 80 0D 03 02 00 00 00 00 4E [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 0B 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 0B 00 AD 26 00 0D 6B 3F B9 1A F1 51 F3 90 00 0E [16:32:37]RAPDU: 0D 6B 3F B9 1A F1 51 F3 90 00 [16:32:37]wFMCommunicate OK [16:32:37]SAM_PROTO_SignData done [16:32:37]FM_MakeSignedData done [16:32:37]CreateOFDProtocolMessage [16:32:37]wFMCommunicate request_size=4 [16:32:37]MH_SAM_APDU [16:32:37]CAPDU: 80 11 00 00 [16:32:37]Write to MH i2c: E2 08 00 AE 26 80 11 00 00 00 00 00 00 4E [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:37]Read from MH i2c: E2 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 17 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: E2 17 00 AE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [16:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:32:37]wFMCommunicate OK [16:32:37]CreateOFDProtocolMessage done [16:32:37]OFDSenderStorePacket 104442 [16:32:37]StoreOFDPacket docnum=104442 [16:32: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 18 A1 08 01 FD 7B 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 AF 00 00 00 F4 03 04 00 A6 FC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 4A 56 B8 AC 37 0D 6B 3F B9 1A F1 51 F3 [16:32:37]CheckFolder [16:32:37]dirname=/storage/ofd_packets [16:32:37]CheckFolder done [16:32:37]ProducePacketName [16:32:37]name=ofd_packets/00104442 [16:32:37]NVStorageSaveData ofd_packets/00104442 [16:32:37]File name is /storage/ofd_packets/00104442 [16:32:37]Write 302 bytes [16:32:37]NVStorageSaveData done [16:32:37]OFDSenderStorePacket done [16:32:37]KKMCreateOFDPacket done [16:32:37]NVStorageSaveData kkm_last_timestamp [16:32:37]File name is /storage/kkm_last_timestamp [16:32:37]Write 4 bytes [16:32:37]NVStorageSaveData done [16:32:37]ExternCall_PrintAddStr [16:32:37]wPrintStart [16:32:37]Write to MH i2c: 01 00 00 AF 26 D5 [16:32:37]Write i2c OK [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: 01 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: 01 07 00 [16:32:37]MH_I2C_Read... [16:32:37]Read from MH i2c: 01 07 00 AF 26 00 00 00 00 00 FF 0F EA [16:32:37]RasterBufferAndPrint [16:32:37]line Счет N : (1)674009 [16:32:37]line ИНН: 02508201610067 [16:32:37]line Контрольно-Кассовый Чек [16:32:37]line ПРОДАЖА [16:32:37]line ТРК (МРК, ГНК) : 21 [16:32:37]line Товар: 2710194210 [16:32:37]line ДТ(л)-К-5 [16:32:37]line 13.720 * 72.90 [16:32:37]line = 1000.19 [16:32:37]line НДС 12% НСП 1% [16:32:37]line > о реализуемом товаре [16:32:37]line ОКРУГЛЕНИЕ: -0.19 [16:32:37]line ИТОГО: 1000.00 [16:32:37]line Внесено: 1000.00 [16:32:37]line СДАЧА: 0.00 [16:32:37]line НСП 1% : 8.85 [16:32:37]line НДС 12% : 106.21 [16:32:37]line Наличными: 1000.00 [16:32:37]line Безнал.: 0.00 [16:32:37]line Место: АЗС № 120 "Партнер Нефть" [16:32:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:32:37]line СНО: Общий режим [16:32:37]line Чек 175 22.06.2024 16:32 [16:32:37]line Смена: 356 ФФД: 1.0 [16:32:37]line ЗНМ: 0300000164 [16:32:37]line РНМ: 0000000000092785 [16:32:37]line Версия ККМ: 001 [16:32:37]line ФМ: 0000000000875093 [16:32:37]line ФД: 104442 [16:32:37]line ФПД: 255405980167223 [16:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163238&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104442&fm=255405980167223&tin=02508201610067®Number=0000000000092785&sum=100000 [16:32:38]OFD Sender: Processing packet 104442 [packets to send 17, broken 16] [16:32:38]ProducePacketName [16:32:38]name=ofd_packets/00104442 [16:32:38]OFD Sender: To server: pG, [16:32:38]CommunicateWithHost lk.salyk.kg:30040 [16:32:38]ConnectInit lk.salyk.kg [16:32:38]written 0, free lines is 4095 [16:32:38]Connected sock=10 [16:32: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 18 A1 08 01 FD 7B 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 AF 00 00 00 F4 03 04 00 A6 FC 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 E8 4A 56 B8 AC 37 0D 6B 3F B9 1A F1 51 F3 [16:32:38]Write to MH i2c: 01 00 00 DA 26 00 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: 01 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: 01 07 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: 01 07 00 DA 26 00 00 00 00 00 DD 0C F0 [16:32:38]RasterBufferAndPrint [16:32:38]line [16:32:38]line [16:32:38]line [16:32:38]line [16:32:38]line [16:32:38]written 0, free lines is 3300 [16:32: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 57 0B 47 00 97 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 FA 97 01 00 F4 03 04 00 25 A3 76 66 B6 04 01 00 00 DB 43 E5 F3 02 4C B3 6F [16:32:38]CommunicateWithHost err = 0 [16:32:38]CheckOFDResponse [16:32:38]1017 (14) - 77093643461234 [16:32:38]1041 (16) - 0000000000875093 [16:32:38]1040 (4) - 104442 [16:32:38]1012 (4) - 22.06.2024 10:10 [16:32:38]1206 (1) - 0 [16:32:38]OFD Sender: Remove packet 104442 [16:32:38]ProducePacketName [16:32:38]name=ofd_packets/00104442 [16:32:38]NVStorageDeleteData [16:32:38]MH_Cut [16:32:38]Write to MH i2c: D1 01 00 E1 26 01 D9 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: D1 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: D1 01 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: D1 01 00 E1 26 00 D8 [16:32:38]Write to MH i2c: 01 00 00 E2 26 08 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:39]OFD Sender: No OFD packet to send [16:32:39]*** Cut start [16:32:39]*** Partial cut [16:32:39]*** CUTSNS_PIN = 1 [16:32:39]*** CUTSNS_PIN = 0 [16:32:39]*** Brake cut motor [16:32:40]Read from MH i2c: 01 [16:32:40]MH_I2C_Read... [16:32:40]*** Stop cut motor [16:32:40]*** Cut end [16:32:40]Read from MH i2c: 01 07 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 E2 26 00 00 00 00 00 FF 0F 1D [16:32:40]process_action close_receipt done [16:32:40]requested_data is exist [16:32:40]produce_requested_data [16:32:40]requested_item fm.sn is exist - process it [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 11 00 00 [16:32:40]Write to MH i2c: E2 08 00 E3 26 80 11 00 00 00 00 00 00 83 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 17 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 17 00 E3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [16:32: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:32:40]wFMCommunicate OK [16:32:40]requested_item fd.num is exist - process it [16:32:40]SAM_PROTO_GetFieldsCounters [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 13 00 00 [16:32:40]Write to MH i2c: E2 08 00 E4 26 80 13 00 00 00 00 00 00 86 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 62 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 62 00 E4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 B1 [16:32: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 FA 97 01 00 0E 04 04 00 64 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 [16:32:40]wFMCommunicate OK [16:32:40]SAM_PROTO_GetFieldsCounters done [16:32:40]requested_item shift.num is exist - process it [16:32:40]requested_item shift.opened is exist - process it [16:32:40]req_shift_opened [16:32:40]FM_GetShiftState [16:32:40]SAM_PROTO_GetShiftState [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 13 01 00 [16:32:40]Write to MH i2c: E2 08 00 E5 26 80 13 01 00 00 00 00 00 88 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0E 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0E 00 E5 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7A [16:32:40]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:32:40]wFMCommunicate OK [16:32:40]SAM_PROTO_GetShiftState done [16:32:40]FM_GetShiftState done [16:32:40]req_shift_opened done [16:32:40]requested_item shift.open_date is exist - process it [16:32:40]req_shift_open_date [16:32:40]req_shift_open_date done [16:32:40]produce_requested_data done [16:32:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104442,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:32:40]process_action_free close_receipt [16:32:40]json_value_free [16:32:40]json_value_free done [16:32:40]process_json_proto returns [16:32:40]Send response to host [16:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104442,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:32:40]free response buf [16:32:40]execute_script done [16:32:40]execute_script returns [16:32:40]free content buf [16:32:40]Sock 7.Close socket [16:32:40]Sock 7.Thread stoped [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:43]accept exits with 9 [16:34:43]New connection [16:34:43]New thread 3066449252 created [16:34:43]Thread 3066592612 joined [16:34:43]Waiting for new connection... [16:34:43] Sock 9.Parse request [16:34:43]Sock 9.Check first char [16:34:43]Sock 9.First char is OK [16:34:43]request: POST /json_proto HTTP/1.0 [16:34:43]Method: POST [16:34:43]URL: /json_proto [16:34:43]Method is POST - this is cgi request [16:34:43]url: /json_proto [16:34:43]query_string will be loaded in cgi processing [16:34:43]execute_cgi json_proto POST (null) [16:34:43]execute_cgi path=json_proto method=POST [16:34:43]POST find Content-Length [16:34:43]Host: 172.17.38.133:8080 [16:34:43]Content-Length: 819 [16:34:43]Content-Type: application/json [16:34:43] [16:34:43]POST finish read [16:34:43]Found Content-Length = 819 [16:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674010", "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" : 18.080, "sum" : 1200.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" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]execute_script... [16:34: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)674010", "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" : 18.080, "sum" : 1200.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" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]POST & json_proto [16:34:43]process_json_proto [16:34:43]json parsed OK: [16:34:43]protocol is kg_v1.0 [16:34:43]action value=close_receipt [16:34:43]process_action close_receipt [16:34:43]cmd_close_receipt [16:34:43]MH_GetDate [16:34:43]Write to MH i2c: F0 00 00 E6 26 FB [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 E6 26 00 25 FD 76 66 BD 8F 7C 64 2E [16:34:43]GetLastDocTimeStamp 1719073958 [16:34:43]current date 1719074085 [16:34:43]FM_GetShiftState [16:34:43]SAM_PROTO_GetShiftState [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 01 00 [16:34:43]Write to MH i2c: E2 08 00 E7 26 80 13 01 00 00 00 00 00 8A [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 E7 26 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7C [16:34:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1719016176 [16:34:43]opened+sec_in_day 1719102576 [16:34:43]quantity*price = 120051 [16:34:43]sum+1 = 120052 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.51 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.51 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 176 22.06.2024 16:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104443 ФПД: 273105034389967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104443&fm=273105034389967&tin=02508201610067®Number=0000000000092785&sum=120051 [16:34:45]StoreToDocumentArchive [16:34:45]shift 356 fd 104443 [16:34:45]save to /storage/0356/doc_00104443 [16:34:45]save last doc name /storage/0356/doc_00104443 to /storage/kkm_last_doc_name [16:34:45]save OK [16:34:45]Clear old archive folders... [16:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:45]tlvbuf is 01042E00 [16:34:45]SAM_PROTO_ClearQueue [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 09 00 00 [16:34:45]Write to MH i2c: E2 08 00 F4 26 80 09 00 00 00 00 00 00 8C [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]SAM_PROTO_ClearQueue done [16:34:45]KKMCreateOFDPacket [16:34:45]OFDProtocolAddRootSTLVToBuf [16:34:45]FM_MakeSignedData [16:34:45]FM_MakeSignedData [16:34:45]SAM_PROTO_SignData [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 01 02 [16:34:45]Write to MH i2c: E2 08 00 F5 26 80 0D 01 02 00 00 00 00 94 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=255 [16:34:45]MH_SAM_APDU [16:34: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 26 FD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F8 [16:34:45]Write to MH i2c: E2 02 01 F6 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 26 FD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F8 00 00 B2 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=10 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 02 02 05 63 38 8F A9 CF [16:34:45]Write to MH i2c: E2 0D 00 F7 26 80 0D 02 02 05 00 63 38 8F A9 CF 00 00 43 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 03 02 [16:34:45]Write to MH i2c: E2 08 00 F8 26 80 0D 03 02 00 00 00 00 99 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 F8 26 00 79 D0 64 49 28 42 9C C7 90 00 5D [16:34:45]RAPDU: 79 D0 64 49 28 42 9C C7 90 00 [16:34:45]wFMCommunicate OK [16:34:45]SAM_PROTO_SignData done [16:34:45]FM_MakeSignedData done [16:34:45]CreateOFDProtocolMessage [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 11 00 00 [16:34:45]Write to MH i2c: E2 08 00 F9 26 80 11 00 00 00 00 00 00 99 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 F9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [16: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 [16:34:45]wFMCommunicate OK [16:34:45]CreateOFDProtocolMessage done [16:34:45]OFDSenderStorePacket 104443 [16:34:45]StoreOFDPacket docnum=104443 [16: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 0F 01 00 00 24 E7 07 01 56 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 26 FD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F8 63 38 8F A9 CF 79 D0 64 49 28 42 9C C7 [16:34:45]CheckFolder [16:34:45]dirname=/storage/ofd_packets [16:34:45]CheckFolder done [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00104443 [16:34:45]NVStorageSaveData ofd_packets/00104443 [16:34:45]File name is /storage/ofd_packets/00104443 [16:34:45]Write 301 bytes [16:34:45]NVStorageSaveData done [16:34:45]OFDSenderStorePacket done [16:34:45]KKMCreateOFDPacket done [16:34:45]NVStorageSaveData kkm_last_timestamp [16:34:45]File name is /storage/kkm_last_timestamp [16:34:45]Write 4 bytes [16:34:45]NVStorageSaveData done [16:34:45]ExternCall_PrintAddStr [16:34:45]wPrintStart [16:34:45]Write to MH i2c: 01 00 00 FA 26 20 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 FA 26 00 00 00 00 00 FF 0F 35 [16:34:45]RasterBufferAndPrint [16:34:45]line Счет N : (1)674010 [16:34:45]line ИНН: 02508201610067 [16:34:45]line Контрольно-Кассовый Чек [16:34:45]line ПРОДАЖА [16:34:45]line ТРК (МРК, ГНК) : 32 [16:34:45]line Товар: 2710124130 [16:34:45]line Аи-92-К-5 [16:34:45]line 18.080 * 66.40 [16:34:45]line = 1200.51 [16:34:45]line НДС 12% НСП 1% [16:34:45]line > о реализуемом товаре [16:34:45]line ИТОГО: 1200.51 [16:34:45]line НСП 1% : 10.62 [16:34:45]line НДС 12% : 127.49 [16:34:45]line Наличными: 0.00 [16:34:45]line Безнал.: 1200.51 [16:34:45]line Место: АЗС № 120 "Партнер Нефть" [16:34:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:34:45]line СНО: Общий режим [16:34:45]line Чек 176 22.06.2024 16:34 [16:34:45]line Смена: 356 ФФД: 1.0 [16:34:45]line ЗНМ: 0300000164 [16:34:45]line РНМ: 0000000000092785 [16:34:45]line Версия ККМ: 001 [16:34:45]line Платежная система: Бакай Банк [16:34:45]line ФМ: 0000000000875093 [16:34:45]line ФД: 104443 [16:34:45]line ФПД: 273105034389967 [16:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104443&fm=273105034389967&tin=02508201610067®Number=0000000000092785&sum=120051 [16:34:45]OFD Sender: Processing packet 104443 [packets to send 17, broken 16] [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00104443 [16:34:45]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]written 0, free lines is 4095 [16:34:46]Write to MH i2c: 01 00 00 24 27 4B [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 24 27 00 00 00 00 00 ED 0C 4B [16:34:46]RasterBufferAndPrint [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]written 0, free lines is 3314 [16:34:46]MH_Cut [16:34:46]Write to MH i2c: D1 01 00 2B 27 01 24 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 2B 27 00 23 [16:34:46]Write to MH i2c: 01 00 00 2C 27 53 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:47]*** Cut start [16:34:47]*** Partial cut [16:34:47]*** CUTSNS_PIN = 1 [16:34:47]*** CUTSNS_PIN = 0 [16:34:47]*** Brake cut motor [16:34:47]Read from MH i2c: 01 [16:34:47]MH_I2C_Read... [16:34:47]*** Stop cut motor [16:34:47]*** Cut end [16:34:47]Read from MH i2c: 01 07 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: 01 07 00 2C 27 00 00 00 00 00 FF 0F 68 [16:34:47]process_action close_receipt done [16:34:47]requested_data is exist [16:34:47]produce_requested_data [16:34:47]requested_item fm.sn is exist - process it [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 11 00 00 [16:34:47]Write to MH i2c: E2 08 00 2D 27 80 11 00 00 00 00 00 00 CE [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 2D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [16: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 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 2E 27 80 13 00 00 00 00 00 00 D1 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 2E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 00 [16: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 FB 97 01 00 0E 04 04 00 64 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 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 2F 27 80 13 01 00 00 00 00 00 D3 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 2F 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [16:34:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104443,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104443,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 9.Close socket [16:34:47]Sock 9.Thread stoped [16:36:57]ConnectInit Can't connect to host [16:36:57]CommunicateWithHost connect error [16:36:57]CommunicateWithHost err = -1 [16:36:57]OFD Sender: Server communicate error [16:37:02]OFD Sender: Processing packet 104443 [packets to send 17, broken 16] [16:37:02]ProducePacketName [16:37:02]name=ofd_packets/00104443 [16:37:02]OFD Sender: To server: pG, [16:37:02]CommunicateWithHost lk.salyk.kg:30040 [16:37:02]ConnectInit lk.salyk.kg [16:37:02]Connected sock=9 [16:37: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 24 E7 07 01 56 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 26 FD 76 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 F8 63 38 8F A9 CF 79 D0 64 49 28 42 9C C7 [16:37: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 0E 13 47 00 1C 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 FB 97 01 00 F4 03 04 00 2C A4 76 66 B6 04 01 00 00 E4 9E B8 06 3B C2 08 27 [16:37:02]CommunicateWithHost err = 0 [16:37:02]CheckOFDResponse [16:37:02]1017 (14) - 77093643461234 [16:37:02]1041 (16) - 0000000000875093 [16:37:02]1040 (4) - 104443 [16:37:02]1012 (4) - 22.06.2024 10:15 [16:37:02]1206 (1) - 0 [16:37:02]OFD Sender: Remove packet 104443 [16:37:02]ProducePacketName [16:37:02]name=ofd_packets/00104443 [16:37:02]NVStorageDeleteData [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:09]accept exits with 7 [16:38:09]New connection [16:38:09]New thread 3066592612 created [16:38:09] Sock 7.Parse request [16:38:09]Thread 3066449252 joined [16:38:09]Sock 7.Check first char [16:38:09]Waiting for new connection... [16:38:09]Sock 7.First char is OK [16:38:09]request: POST /json_proto HTTP/1.0 [16:38:09]Method: POST [16:38:09]URL: /json_proto [16:38:09]Method is POST - this is cgi request [16:38:09]url: /json_proto [16:38:09]query_string will be loaded in cgi processing [16:38:09]execute_cgi json_proto POST (null) [16:38:09]execute_cgi path=json_proto method=POST [16:38:09]POST find Content-Length [16:38:09]Host: 172.17.38.133:8080 [16:38:09]Content-Length: 1207 [16:38:09]Content-Type: application/json [16:38:09] [16:38:09]POST finish read [16:38:09]Found Content-Length = 1207 [16:38: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)674011\u000A22.06.2024 16:15\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A76500\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:09]execute_script... [16:38: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)674011\u000A22.06.2024 16:15\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A76500\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:09]POST & json_proto [16:38:09]process_json_proto [16:38:09]json parsed OK: [16:38:09]protocol is kg_v1.0 [16:38:09]action value=print_text [16:38:09]process_action print_text [16:38:09]cmd_print_text [16:38:09]ExternCall_PrintAddStr [16:38:09]wPrintStart [16:38:09]Write to MH i2c: 01 00 00 30 27 57 [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 07 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 07 00 30 27 00 00 00 00 00 FF 0F 6C [16:38:09]RasterBufferAndPrint [16:38:09]line *****ТОВАРНЫЙ ЧЕК***** [16:38:09]line АЗС 120 [16:38:09]line Партнер нефть [16:38:09]line 02508201610067 [16:38:09]line Кассир : Байбугуева Г. [16:38:09]line Счет N : (1)674011 [16:38:09]line 22.06.2024 16:15 [16:38:09]line ПРОДАЖА [16:38:09]line ТРК (МРК, ГНК): 32 [16:38:09]line Вид ГСМ : 2710124130 [16:38:09]line Аи-92-К-5 [16:38:09]line 15.070 x 66.40 [16:38:09]line ИТОГ: 1000.65 [16:38:09]line Тип оплаты: Талоны: Топливная Карта [16:38:09]line 76500 [16:38:09]line ______________________ [16:38:09]line (подпись) [16:38:09]written 0, free lines is 4095 [16:38:09]Write to MH i2c: 01 00 00 44 27 6B [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 07 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 07 00 44 27 00 00 00 00 00 12 0E 92 [16:38:09]RasterBufferAndPrint [16:38:09]line [16:38:09]line [16:38:09]line [16:38:09]line [16:38:09]line [16:38:09]written 0, free lines is 3604 [16:38:09]MH_Cut [16:38:09]Write to MH i2c: D1 01 00 4B 27 01 44 [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: D1 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: D1 01 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: D1 01 00 4B 27 00 43 [16:38:09]Write to MH i2c: 01 00 00 4C 27 73 [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:10]*** Cut start [16:38:10]*** Partial cut [16:38:10]*** CUTSNS_PIN = 1 [16:38:10]*** CUTSNS_PIN = 0 [16:38:10]*** Brake cut motor [16:38:10]Read from MH i2c: 01 [16:38:10]MH_I2C_Read... [16:38:10]*** Stop cut motor [16:38:10]*** Cut end [16:38:10]Read from MH i2c: 01 07 00 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: 01 07 00 4C 27 00 00 00 00 00 FF 0F 88 [16:38:10]process_action print_text done [16:38:10]requested_data is exist [16:38:10]produce_requested_data [16:38:10]requested_item fm.sn is exist - process it [16:38:10]wFMCommunicate request_size=4 [16:38:10]MH_SAM_APDU [16:38:10]CAPDU: 80 11 00 00 [16:38:10]Write to MH i2c: E2 08 00 4D 27 80 11 00 00 00 00 00 00 EE [16:38:10]Write i2c OK [16:38:10]MH_I2C_Read... [16:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:10]Read from MH i2c: E2 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 17 00 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 17 00 4D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 41 [16:38: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:38:10]wFMCommunicate OK [16:38:10]requested_item fd.num is exist - process it [16:38:10]SAM_PROTO_GetFieldsCounters [16:38:10]wFMCommunicate request_size=4 [16:38:10]MH_SAM_APDU [16:38:10]CAPDU: 80 13 00 00 [16:38:10]Write to MH i2c: E2 08 00 4E 27 80 13 00 00 00 00 00 00 F1 [16:38:10]Write i2c OK [16:38:10]MH_I2C_Read... [16:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:10]Read from MH i2c: E2 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 62 00 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 62 00 4E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 20 [16:38: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 FB 97 01 00 0E 04 04 00 64 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 [16:38:10]wFMCommunicate OK [16:38:10]SAM_PROTO_GetFieldsCounters done [16:38:10]requested_item shift.num is exist - process it [16:38:10]requested_item shift.opened is exist - process it [16:38:10]req_shift_opened [16:38:10]FM_GetShiftState [16:38:10]SAM_PROTO_GetShiftState [16:38:10]wFMCommunicate request_size=4 [16:38:10]MH_SAM_APDU [16:38:10]CAPDU: 80 13 01 00 [16:38:10]Write to MH i2c: E2 08 00 4F 27 80 13 01 00 00 00 00 00 F3 [16:38:10]Write i2c OK [16:38:10]MH_I2C_Read... [16:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:10]Read from MH i2c: E2 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 0E 00 [16:38:10]MH_I2C_Read... [16:38:10]Read from MH i2c: E2 0E 00 4F 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E5 [16:38:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:38:10]wFMCommunicate OK [16:38:10]SAM_PROTO_GetShiftState done [16:38:10]FM_GetShiftState done [16:38:10]req_shift_opened done [16:38:10]requested_item shift.open_date is exist - process it [16:38:10]req_shift_open_date [16:38:10]req_shift_open_date done [16:38:10]produce_requested_data done [16:38:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104443,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:38:10]process_action_free print_text [16:38:10]json_value_free [16:38:10]json_value_free done [16:38:10]process_json_proto returns [16:38:10]Send response to host [16:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104443,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:38:10]free response buf [16:38:10]execute_script done [16:38:10]execute_script returns [16:38:10]free content buf [16:38:10]Sock 7.Close socket [16:38:10]Sock 7.Thread stoped [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:55]accept exits with 9 [16:53:55]New connection [16:53:55]New thread 3066449252 created [16:53:55]Thread 3066592612 joined [16:53:55]Waiting for new connection... [16:53:55] Sock 9.Parse request [16:53:55]Sock 9.Check first char [16:53:55]Sock 9.First char is OK [16:53:55]request: POST /json_proto HTTP/1.0 [16:53:55]Method: POST [16:53:55]URL: /json_proto [16:53:55]Method is POST - this is cgi request [16:53:55]url: /json_proto [16:53:55]query_string will be loaded in cgi processing [16:53:55]execute_cgi json_proto POST (null) [16:53:55]execute_cgi path=json_proto method=POST [16:53:55]POST find Content-Length [16:53:55]Host: 172.17.38.133:8080 [16:53:55]Content-Length: 682 [16:53:55]Content-Type: application/json [16:53:55] [16:53:55]POST finish read [16:53:55]Found Content-Length = 682 [16:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674013", "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" ] } } [16:53:55]execute_script... [16:53: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)674013", "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" ] } } [16:53:55]POST & json_proto [16:53:55]process_json_proto [16:53:55]json parsed OK: [16:53:55]protocol is kg_v1.0 [16:53:55]action value=close_receipt [16:53:55]process_action close_receipt [16:53:55]cmd_close_receipt [16:53:55]MH_GetDate [16:53:55]Write to MH i2c: F0 00 00 50 27 66 [16:53:55]Write i2c OK [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 09 00 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: F0 09 00 50 27 00 A5 01 77 66 BD 8F 7C 64 1E [16:53:55]GetLastDocTimeStamp 1719074086 [16:53:55]current date 1719075237 [16:53:55]FM_GetShiftState [16:53:55]SAM_PROTO_GetShiftState [16:53:55]wFMCommunicate request_size=4 [16:53:55]MH_SAM_APDU [16:53:55]CAPDU: 80 13 01 00 [16:53:55]Write to MH i2c: E2 08 00 51 27 80 13 01 00 00 00 00 00 F5 [16:53:55]Write i2c OK [16:53:55]MH_I2C_Read... [16:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:55]Read from MH i2c: E2 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: E2 0E 00 [16:53:55]MH_I2C_Read... [16:53:55]Read from MH i2c: E2 0E 00 51 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E7 [16:53:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:53:55]wFMCommunicate OK [16:53:55]SAM_PROTO_GetShiftState done [16:53:55]FM_GetShiftState done [16:53:55]opened in 1719016176 [16:53:55]opened+sec_in_day 1719102576 [16:53:55]quantity*price = 100064 [16:53:55]sum+1 = 100066 [16:53:55]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 СНО: Общий режим Чек 177 22.06.2024 16:53 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104444 ФПД: 129140586517670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165357&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104444&fm=129140586517670&tin=02508201610067®Number=0000000000092785&sum=100000 [16:53:56]StoreToDocumentArchive [16:53:56]shift 356 fd 104444 [16:53:56]save to /storage/0356/doc_00104444 [16:53:56]save last doc name /storage/0356/doc_00104444 to /storage/kkm_last_doc_name [16:53:56]save OK [16:53:56]Clear old archive folders... [16:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:56]tlvbuf is 00FE0C30 [16:53:56]SAM_PROTO_ClearQueue [16:53:56]wFMCommunicate request_size=4 [16:53:56]MH_SAM_APDU [16:53:56]CAPDU: 80 09 00 00 [16:53:56]Write to MH i2c: E2 08 00 5E 27 80 09 00 00 00 00 00 00 F7 [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:56]Read from MH i2c: E2 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 5E 27 00 90 00 F9 [16:53:56]RAPDU: 90 00 [16:53:56]wFMCommunicate OK [16:53:56]SAM_PROTO_ClearQueue done [16:53:56]KKMCreateOFDPacket [16:53:56]OFDProtocolAddRootSTLVToBuf [16:53:56]FM_MakeSignedData [16:53:56]FM_MakeSignedData [16:53:56]SAM_PROTO_SignData [16:53:56]wFMCommunicate request_size=4 [16:53:56]MH_SAM_APDU [16:53:56]CAPDU: 80 0D 01 02 [16:53:56]Write to MH i2c: E2 08 00 5F 27 80 0D 01 02 00 00 00 00 FF [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:56]Read from MH i2c: E2 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 [16:53:56]MH_I2C_Read... [16:53:56]Read from MH i2c: E2 03 00 5F 27 00 90 00 FA [16:53:56]RAPDU: 90 00 [16:53:56]wFMCommunicate OK [16:53:56]wFMCommunicate request_size=255 [16:53:56]MH_SAM_APDU [16:53: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 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 B1 00 00 00 F4 03 04 00 A5 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 [16:53:56]Write to MH i2c: E2 02 01 60 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 A5 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 00 00 AB [16:53:56]Write i2c OK [16:53:56]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [16:53:57]RAPDU: 90 00 [16:53:57]wFMCommunicate OK [16:53:57]wFMCommunicate request_size=10 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 0D 02 02 05 73 E2 C9 14 A6 [16:53:57]Write to MH i2c: E2 0D 00 61 27 80 0D 02 02 05 00 73 E2 C9 14 A6 00 00 E4 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [16:53:57]RAPDU: 90 00 [16:53:57]wFMCommunicate OK [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 0D 03 02 [16:53:57]Write to MH i2c: E2 08 00 62 27 80 0D 03 02 00 00 00 00 04 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0B 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 0B 00 62 27 00 A7 B8 39 91 B8 E1 E2 F2 90 00 9B [16:53:57]RAPDU: A7 B8 39 91 B8 E1 E2 F2 90 00 [16:53:57]wFMCommunicate OK [16:53:57]SAM_PROTO_SignData done [16:53:57]FM_MakeSignedData done [16:53:57]CreateOFDProtocolMessage [16:53:57]wFMCommunicate request_size=4 [16:53:57]MH_SAM_APDU [16:53:57]CAPDU: 80 11 00 00 [16:53:57]Write to MH i2c: E2 08 00 63 27 80 11 00 00 00 00 00 00 04 [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:57]Read from MH i2c: E2 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: E2 17 00 63 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 57 [16:53: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:53:57]wFMCommunicate OK [16:53:57]CreateOFDProtocolMessage done [16:53:57]OFDSenderStorePacket 104444 [16:53:57]StoreOFDPacket docnum=104444 [16:53: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 B4 22 07 01 7B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B1 00 00 00 F4 03 04 00 A5 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 73 E2 C9 14 A6 A7 B8 39 91 B8 E1 E2 F2 [16:53:57]CheckFolder [16:53:57]dirname=/storage/ofd_packets [16:53:57]CheckFolder done [16:53:57]ProducePacketName [16:53:57]name=ofd_packets/00104444 [16:53:57]NVStorageSaveData ofd_packets/00104444 [16:53:57]File name is /storage/ofd_packets/00104444 [16:53:57]Write 301 bytes [16:53:57]NVStorageSaveData done [16:53:57]OFDSenderStorePacket done [16:53:57]KKMCreateOFDPacket done [16:53:57]NVStorageSaveData kkm_last_timestamp [16:53:57]File name is /storage/kkm_last_timestamp [16:53:57]Write 4 bytes [16:53:57]NVStorageSaveData done [16:53:57]ExternCall_PrintAddStr [16:53:57]wPrintStart [16:53:57]Write to MH i2c: 01 00 00 64 27 8B [16:53:57]Write i2c OK [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 [16:53:57]MH_I2C_Read... [16:53:57]Read from MH i2c: 01 07 00 64 27 00 00 00 00 00 FF 0F A0 [16:53:57]RasterBufferAndPrint [16:53:57]line Счет N : (1)674013 [16:53:57]line ИНН: 02508201610067 [16:53:57]line Контрольно-Кассовый Чек [16:53:57]line ПРОДАЖА [16:53:57]line ТРК (МРК, ГНК) : 32 [16:53:57]line Товар: 2710124130 [16:53:57]line Аи-92-К-5 [16:53:57]line 15.070 * 66.40 [16:53:57]line = 1000.65 [16:53:57]line НДС 12% НСП 1% [16:53:57]line > о реализуемом товаре [16:53:57]line ОКРУГЛЕНИЕ: -0.65 [16:53:57]line ИТОГО: 1000.00 [16:53:57]line Внесено: 1000.00 [16:53:57]line СДАЧА: 0.00 [16:53:57]line НСП 1% : 8.85 [16:53:57]line НДС 12% : 106.26 [16:53:57]line Наличными: 1000.00 [16:53:57]line Безнал.: 0.00 [16:53:57]line Место: АЗС № 120 "Партнер Нефть" [16:53:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:53:57]line СНО: Общий режим [16:53:57]line Чек 177 22.06.2024 16:53 [16:53:57]line Смена: 356 ФФД: 1.0 [16:53:57]line ЗНМ: 0300000164 [16:53:57]line РНМ: 0000000000092785 [16:53:57]line Версия ККМ: 001 [16:53:57]line ФМ: 0000000000875093 [16:53:57]line ФД: 104444 [16:53:57]line ФПД: 129140586517670 [16:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165357&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104444&fm=129140586517670&tin=02508201610067®Number=0000000000092785&sum=100000 [16:53:57]OFD Sender: Processing packet 104444 [packets to send 17, broken 16] [16:53:57]ProducePacketName [16:53:57]name=ofd_packets/00104444 [16:53:57]OFD Sender: To server: pG, [16:53:57]CommunicateWithHost lk.salyk.kg:30040 [16:53:57]ConnectInit lk.salyk.kg [16:53:57]written 0, free lines is 4095 [16:53:57]Connected sock=7 [16:53: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 B4 22 07 01 7B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B1 00 00 00 F4 03 04 00 A5 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 75 73 E2 C9 14 A6 A7 B8 39 91 B8 E1 E2 F2 [16:53: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 77 6C 47 00 5D CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 97 01 00 F4 03 04 00 24 A8 76 66 B6 04 01 00 00 EB 08 8F 7D 8F CE 61 0C [16:53:58]CommunicateWithHost err = 0 [16:53:58]CheckOFDResponse [16:53:58]1017 (14) - 77093643461234 [16:53:58]1041 (16) - 0000000000875093 [16:53:58]1040 (4) - 104444 [16:53:58]1012 (4) - 22.06.2024 10:32 [16:53:58]1206 (1) - 0 [16:53:58]OFD Sender: Remove packet 104444 [16:53:58]ProducePacketName [16:53:58]name=ofd_packets/00104444 [16:53:58]NVStorageDeleteData [16:53:58]Write to MH i2c: 01 00 00 8F 27 B6 [16:53:58]Write i2c OK [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: 01 [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: 01 07 00 [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: 01 07 00 8F 27 00 00 00 00 00 DD 0C A6 [16:53:58]RasterBufferAndPrint [16:53:58]line [16:53:58]line [16:53:58]line [16:53:58]line [16:53:58]line [16:53:58]written 0, free lines is 3300 [16:53:58]MH_Cut [16:53:58]Write to MH i2c: D1 01 00 96 27 01 8F [16:53:58]Write i2c OK [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: D1 [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: D1 01 00 [16:53:58]MH_I2C_Read... [16:53:58]Read from MH i2c: D1 01 00 96 27 00 8E [16:53:58]Write to MH i2c: 01 00 00 97 27 BE [16:53:58]Write i2c OK [16:53:58]MH_I2C_Read... [16:53:58]OFD Sender: No OFD packet to send [16:53:58]*** Cut start [16:53:58]*** Partial cut [16:53:58]*** CUTSNS_PIN = 1 [16:53:58]*** CUTSNS_PIN = 0 [16:53:59]*** Brake cut motor [16:53:59]Read from MH i2c: 01 [16:53:59]MH_I2C_Read... [16:53:59]*** Stop cut motor [16:53:59]*** Cut end [16:53:59]Read from MH i2c: 01 07 00 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: 01 07 00 97 27 00 00 00 00 00 FF 0F D3 [16:53:59]process_action close_receipt done [16:53:59]requested_data is exist [16:53:59]produce_requested_data [16:53:59]requested_item fm.sn is exist - process it [16:53:59]wFMCommunicate request_size=4 [16:53:59]MH_SAM_APDU [16:53:59]CAPDU: 80 11 00 00 [16:53:59]Write to MH i2c: E2 08 00 98 27 80 11 00 00 00 00 00 00 39 [16:53:59]Write i2c OK [16:53:59]MH_I2C_Read... [16:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:59]Read from MH i2c: E2 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 17 00 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 17 00 98 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [16:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:53:59]wFMCommunicate OK [16:53:59]requested_item fd.num is exist - process it [16:53:59]SAM_PROTO_GetFieldsCounters [16:53:59]wFMCommunicate request_size=4 [16:53:59]MH_SAM_APDU [16:53:59]CAPDU: 80 13 00 00 [16:53:59]Write to MH i2c: E2 08 00 99 27 80 13 00 00 00 00 00 00 3C [16:53:59]Write i2c OK [16:53:59]MH_I2C_Read... [16:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:59]Read from MH i2c: E2 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 62 00 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 62 00 99 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 6F [16:53: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 FC 97 01 00 0E 04 04 00 64 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 [16:53:59]wFMCommunicate OK [16:53:59]SAM_PROTO_GetFieldsCounters done [16:53:59]requested_item shift.num is exist - process it [16:53:59]requested_item shift.opened is exist - process it [16:53:59]req_shift_opened [16:53:59]FM_GetShiftState [16:53:59]SAM_PROTO_GetShiftState [16:53:59]wFMCommunicate request_size=4 [16:53:59]MH_SAM_APDU [16:53:59]CAPDU: 80 13 01 00 [16:53:59]Write to MH i2c: E2 08 00 9A 27 80 13 01 00 00 00 00 00 3E [16:53:59]Write i2c OK [16:53:59]MH_I2C_Read... [16:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:59]Read from MH i2c: E2 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 0E 00 [16:53:59]MH_I2C_Read... [16:53:59]Read from MH i2c: E2 0E 00 9A 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 30 [16:53:59]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:53:59]wFMCommunicate OK [16:53:59]SAM_PROTO_GetShiftState done [16:53:59]FM_GetShiftState done [16:53:59]req_shift_opened done [16:53:59]requested_item shift.open_date is exist - process it [16:53:59]req_shift_open_date [16:53:59]req_shift_open_date done [16:53:59]produce_requested_data done [16:53:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104444,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:53:59]process_action_free close_receipt [16:53:59]json_value_free [16:53:59]json_value_free done [16:53:59]process_json_proto returns [16:53:59]Send response to host [16:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104444,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:53:59]free response buf [16:53:59]execute_script done [16:53:59]execute_script returns [16:53:59]free content buf [16:53:59]Sock 9.Close socket [16:53:59]Sock 9.Thread stoped [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:33]accept exits with 10 [16:54:33]New connection [16:54:33]New thread 3066592612 created [16:54:33]Thread 3066449252 joined [16:54:33]Waiting for new connection... [16:54:33] Sock 10.Parse request [16:54:33]Sock 10.Check first char [16:54:33]Sock 10.First char is OK [16:54:33]request: POST /json_proto HTTP/1.0 [16:54:33]Method: POST [16:54:33]URL: /json_proto [16:54:33]Method is POST - this is cgi request [16:54:33]url: /json_proto [16:54:33]query_string will be loaded in cgi processing [16:54:33]execute_cgi json_proto POST (null) [16:54:33]execute_cgi path=json_proto method=POST [16:54:33]POST find Content-Length [16:54:33]Host: 172.17.38.133:8080 [16:54:33]Content-Length: 682 [16:54:33]Content-Type: application/json [16:54:33] [16:54:33]POST finish read [16:54:33]Found Content-Length = 682 [16:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674012", "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" : 39.160, "sum" : 2600.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:33]execute_script... [16: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)674012", "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" : 39.160, "sum" : 2600.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:33]POST & json_proto [16:54:33]process_json_proto [16:54:33]json parsed OK: [16:54:33]protocol is kg_v1.0 [16:54:33]action value=close_receipt [16:54:33]process_action close_receipt [16:54:33]cmd_close_receipt [16:54:33]MH_GetDate [16:54:33]Write to MH i2c: F0 00 00 9B 27 B1 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: F0 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: F0 09 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: F0 09 00 9B 27 00 CB 01 77 66 BD 8F 7C 64 8F [16:54:33]GetLastDocTimeStamp 1719075237 [16:54:33]current date 1719075275 [16:54:33]FM_GetShiftState [16:54:33]SAM_PROTO_GetShiftState [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 13 01 00 [16:54:33]Write to MH i2c: E2 08 00 9C 27 80 13 01 00 00 00 00 00 40 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 0E 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 0E 00 9C 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 32 [16:54:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:54:33]wFMCommunicate OK [16:54:33]SAM_PROTO_GetShiftState done [16:54:33]FM_GetShiftState done [16:54:33]opened in 1719016176 [16:54:33]opened+sec_in_day 1719102576 [16:54:33]quantity*price = 260022 [16:54:33]sum+1 = 260023 [16:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.13 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 178 22.06.2024 16:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104445 ФПД: 68707918453237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165435&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104445&fm=68707918453237&tin=02508201610067®Number=0000000000092785&sum=260000 [16:54:34]StoreToDocumentArchive [16:54:34]shift 356 fd 104445 [16:54:34]save to /storage/0356/doc_00104445 [16:54:34]save last doc name /storage/0356/doc_00104445 to /storage/kkm_last_doc_name [16:54:34]save OK [16:54:34]Clear old archive folders... [16:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:34]tlvbuf is 00FD3C10 [16:54:34]SAM_PROTO_ClearQueue [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 09 00 00 [16:54:34]Write to MH i2c: E2 08 00 A9 27 80 09 00 00 00 00 00 00 42 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 03 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 03 00 A9 27 00 90 00 44 [16:54:34]RAPDU: 90 00 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_ClearQueue done [16:54:34]KKMCreateOFDPacket [16:54:34]OFDProtocolAddRootSTLVToBuf [16:54:34]FM_MakeSignedData [16:54:34]FM_MakeSignedData [16:54:34]SAM_PROTO_SignData [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 0D 01 02 [16:54:34]Write to MH i2c: E2 08 00 AA 27 80 0D 01 02 00 00 00 00 4A [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 03 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 03 00 AA 27 00 90 00 45 [16:54:34]RAPDU: 90 00 [16:54:34]wFMCommunicate OK [16:54:34]wFMCommunicate request_size=255 [16:54:34]MH_SAM_APDU [16:54: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 F8 98 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 CB 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3E [16:54:34]Write to MH i2c: E2 02 01 AB 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 98 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 CB 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3E 00 00 B7 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 03 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 03 00 AB 27 00 90 00 46 [16:54:35]RAPDU: 90 00 [16:54:35]wFMCommunicate OK [16:54:35]wFMCommunicate request_size=10 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 0D 02 02 05 7D 4F 12 99 F5 [16:54:35]Write to MH i2c: E2 0D 00 AC 27 80 0D 02 02 05 00 7D 4F 12 99 F5 00 00 C3 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 03 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 03 00 AC 27 00 90 00 47 [16:54:35]RAPDU: 90 00 [16:54:35]wFMCommunicate OK [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 0D 03 02 [16:54:35]Write to MH i2c: E2 08 00 AD 27 80 0D 03 02 00 00 00 00 4F [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 0B 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 0B 00 AD 27 00 2B 12 17 F8 06 11 26 66 90 00 3F [16:54:35]RAPDU: 2B 12 17 F8 06 11 26 66 90 00 [16:54:35]wFMCommunicate OK [16:54:35]SAM_PROTO_SignData done [16:54:35]FM_MakeSignedData done [16:54:35]CreateOFDProtocolMessage [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 11 00 00 [16:54:35]Write to MH i2c: E2 08 00 AE 27 80 11 00 00 00 00 00 00 4F [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 17 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 17 00 AE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [16:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:54:35]wFMCommunicate OK [16:54:35]CreateOFDProtocolMessage done [16:54:35]OFDSenderStorePacket 104445 [16:54:35]StoreOFDPacket docnum=104445 [16:54: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 50 56 07 01 50 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 98 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 CB 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3E 7D 4F 12 99 F5 2B 12 17 F8 06 11 26 66 [16:54:35]CheckFolder [16:54:35]dirname=/storage/ofd_packets [16:54:35]CheckFolder done [16:54:35]ProducePacketName [16:54:35]name=ofd_packets/00104445 [16:54:35]NVStorageSaveData ofd_packets/00104445 [16:54:35]File name is /storage/ofd_packets/00104445 [16:54:35]Write 301 bytes [16:54:35]NVStorageSaveData done [16:54:35]OFDSenderStorePacket done [16:54:35]KKMCreateOFDPacket done [16:54:35]NVStorageSaveData kkm_last_timestamp [16:54:35]File name is /storage/kkm_last_timestamp [16:54:35]Write 4 bytes [16:54:35]NVStorageSaveData done [16:54:35]ExternCall_PrintAddStr [16:54:35]wPrintStart [16:54:35]Write to MH i2c: 01 00 00 AF 27 D6 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 FF 0F EB [16:54:35]RasterBufferAndPrint [16:54:35]line Счет N : (1)674012 [16:54:35]line ИНН: 02508201610067 [16:54:35]line Контрольно-Кассовый Чек [16:54:35]line ПРОДАЖА [16:54:35]line ТРК (МРК, ГНК) : 42 [16:54:35]line Товар: 2710124130 [16:54:35]line Аи-92-К-5 [16:54:35]line 39.160 * 66.40 [16:54:35]line = 2600.22 [16:54:35]line НДС 12% НСП 1% [16:54:35]line > о реализуемом товаре [16:54:35]line ОКРУГЛЕНИЕ: -0.22 [16:54:35]line ИТОГО: 2600.00 [16:54:35]line Внесено: 2600.00 [16:54:35]line СДАЧА: 0.00 [16:54:35]line НСП 1% : 23.01 [16:54:35]line НДС 12% : 276.13 [16:54:35]line Наличными: 2600.00 [16:54:35]line Безнал.: 0.00 [16:54:35]line Место: АЗС № 120 "Партнер Нефть" [16:54:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:54:35]line СНО: Общий режим [16:54:35]line Чек 178 22.06.2024 16:54 [16:54:35]line Смена: 356 ФФД: 1.0 [16:54:35]line ЗНМ: 0300000164 [16:54:35]line РНМ: 0000000000092785 [16:54:35]line Версия ККМ: 001 [16:54:35]line ФМ: 0000000000875093 [16:54:35]line ФД: 104445 [16:54:35]line ФПД: 68707918453237 [16:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165435&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104445&fm=68707918453237&tin=02508201610067®Number=0000000000092785&sum=260000 [16:54:35]written 0, free lines is 4095 [16:54:35]OFD Sender: Processing packet 104445 [packets to send 17, broken 16] [16:54:35]ProducePacketName [16:54:35]name=ofd_packets/00104445 [16:54:35]OFD Sender: To server: pG, [16:54:35]CommunicateWithHost lk.salyk.kg:30040 [16:54:35]ConnectInit lk.salyk.kg [16:54:35]Connected sock=9 [16: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 0F 01 00 00 50 56 07 01 50 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 98 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 CB 01 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 3E 7D 4F 12 99 F5 2B 12 17 F8 06 11 26 66 [16:54:35]Write to MH i2c: 01 00 00 DA 27 01 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 DA 27 00 00 00 00 00 E4 0C F8 [16:54:35]RasterBufferAndPrint [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]written 0, free lines is 3306 [16:54:35]MH_Cut [16:54:35]Write to MH i2c: D1 01 00 E1 27 01 DA [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D1 [16:54:35]MH_I2C_Read... [16: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 A6 F9 47 00 CF 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 FD 97 01 00 F4 03 04 00 4A A8 76 66 B6 04 01 00 00 92 3F AD 01 2F 13 50 0E [16:54:35]CommunicateWithHost err = 0 [16:54:35]CheckOFDResponse [16:54:35]1017 (14) - 77093643461234 [16:54:35]1041 (16) - 0000000000875093 [16:54:35]1040 (4) - 104445 [16:54:35]1012 (4) - 22.06.2024 10:32 [16:54:35]1206 (1) - 0 [16:54:35]OFD Sender: Remove packet 104445 [16:54:35]ProducePacketName [16:54:35]name=ofd_packets/00104445 [16:54:35]NVStorageDeleteData [16:54:35]Read from MH i2c: D1 01 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D1 01 00 E1 27 00 D9 [16:54:35]Write to MH i2c: 01 00 00 E2 27 09 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:36]OFD Sender: No OFD packet to send [16:54:36]*** Cut start [16:54:36]*** Partial cut [16:54:36]*** CUTSNS_PIN = 1 [16:54:36]*** CUTSNS_PIN = 0 [16:54:36]*** Brake cut motor [16:54:37]Read from MH i2c: 01 [16:54:37]MH_I2C_Read... [16:54:37]*** Stop cut motor [16:54:37]*** Cut end [16:54:37]Read from MH i2c: 01 07 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 07 00 E2 27 00 00 00 00 00 FF 0F 1E [16:54:37]process_action close_receipt done [16:54:37]requested_data is exist [16:54:37]produce_requested_data [16:54:37]requested_item fm.sn is exist - process it [16:54:37]wFMCommunicate request_size=4 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 11 00 00 [16:54:37]Write to MH i2c: E2 08 00 E3 27 80 11 00 00 00 00 00 00 84 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 17 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 17 00 E3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [16: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 [16:54:37]wFMCommunicate OK [16:54:37]requested_item fd.num is exist - process it [16:54:37]SAM_PROTO_GetFieldsCounters [16:54:37]wFMCommunicate request_size=4 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 13 00 00 [16:54:37]Write to MH i2c: E2 08 00 E4 27 80 13 00 00 00 00 00 00 87 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 62 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 62 00 E4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 BE [16: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 FD 97 01 00 0E 04 04 00 64 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 [16:54:37]wFMCommunicate OK [16:54:37]SAM_PROTO_GetFieldsCounters done [16:54:37]requested_item shift.num is exist - process it [16:54:37]requested_item shift.opened is exist - process it [16:54:37]req_shift_opened [16:54:37]FM_GetShiftState [16:54:37]SAM_PROTO_GetShiftState [16:54:37]wFMCommunicate request_size=4 [16:54:37]MH_SAM_APDU [16:54:37]CAPDU: 80 13 01 00 [16:54:37]Write to MH i2c: E2 08 00 E5 27 80 13 01 00 00 00 00 00 89 [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:37]Read from MH i2c: E2 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 0E 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: E2 0E 00 E5 27 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [16:54:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:54:37]wFMCommunicate OK [16:54:37]SAM_PROTO_GetShiftState done [16:54:37]FM_GetShiftState done [16:54:37]req_shift_opened done [16:54:37]requested_item shift.open_date is exist - process it [16:54:37]req_shift_open_date [16:54:37]req_shift_open_date done [16:54:37]produce_requested_data done [16:54:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104445,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:54:37]process_action_free close_receipt [16:54:37]json_value_free [16:54:37]json_value_free done [16:54:37]process_json_proto returns [16:54:37]Send response to host [16:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104445,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:54:37]free response buf [16:54:37]execute_script done [16:54:37]execute_script returns [16:54:37]free content buf [16:54:37]Sock 10.Close socket [16:54:37]Sock 10.Thread stoped [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:04]accept exits with 7 [16:57:04]New connection [16:57:04]New thread 3066449252 created [16:57:04]Thread 3066592612 joined [16:57:04]Waiting for new connection... [16:57:04] Sock 7.Parse request [16:57:04]Sock 7.Check first char [16:57:04]Sock 7.First char is OK [16:57:04]request: POST /json_proto HTTP/1.0 [16:57:04]Method: POST [16:57:04]URL: /json_proto [16:57:04]Method is POST - this is cgi request [16:57:04]url: /json_proto [16:57:04]query_string will be loaded in cgi processing [16:57:04]execute_cgi json_proto POST (null) [16:57:04]execute_cgi path=json_proto method=POST [16:57:04]POST find Content-Length [16:57:04]Host: 172.17.38.133:8080 [16:57:04]Content-Length: 1167 [16:57:04]Content-Type: application/json [16:57:04] [16:57:04]POST finish read [16:57:04]Found Content-Length = 1167 [16:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)674014\u000A22.06.2024 16: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 2.560 x 66.40\u000A\u0418\u0422\u041E\u0413: 169.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:04]execute_script... [16:57: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 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)674014\u000A22.06.2024 16: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 2.560 x 66.40\u000A\u0418\u0422\u041E\u0413: 169.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072831\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:04]POST & json_proto [16:57:04]process_json_proto [16:57:04]json parsed OK: [16:57:04]protocol is kg_v1.0 [16:57:04]action value=print_text [16:57:04]process_action print_text [16:57:04]cmd_print_text [16:57:04]ExternCall_PrintAddStr [16:57:04]wPrintStart [16:57:04]Write to MH i2c: 01 00 00 E6 27 0D [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 E6 27 00 00 00 00 00 FF 0F 22 [16:57:04]RasterBufferAndPrint [16:57:04]line *****ТОВАРНЫЙ ЧЕК***** [16:57:04]line АЗС 120 [16:57:04]line Партнер нефть [16:57:04]line 02508201610067 [16:57:04]line Кассир : Байбугуева Г. [16:57:04]line Счет N : (1)674014 [16:57:04]line 22.06.2024 16:34 [16:57:04]line ПРОДАЖА [16:57:04]line ТРК (МРК, ГНК): 32 [16:57:04]line Вид ГСМ : 2710124130 [16:57:04]line Аи-92-К-5 [16:57:04]line 2.560 x 66.40 [16:57:04]line ИТОГ: 169.98 [16:57:04]line Тип оплаты: Талоны: ТК ГПНА Online [16:57:04]line 30072831 [16:57:04]line ______________________ [16:57:04]line (подпись) [16:57:04]written 0, free lines is 4095 [16:57:05]Write to MH i2c: 01 00 00 FA 27 21 [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: 01 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: 01 07 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: 01 07 00 FA 27 00 00 00 00 00 11 0E 47 [16:57:05]RasterBufferAndPrint [16:57:05]line [16:57:05]line [16:57:05]line [16:57:05]line [16:57:05]line [16:57:05]written 0, free lines is 3602 [16:57:05]MH_Cut [16:57:05]Write to MH i2c: D1 01 00 01 28 01 FB [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: D1 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: D1 01 00 [16:57:05]MH_I2C_Read... [16:57:05]Read from MH i2c: D1 01 00 01 28 00 FA [16:57:05]Write to MH i2c: 01 00 00 02 28 2A [16:57:05]Write i2c OK [16:57:05]MH_I2C_Read... [16:57:05]*** Cut start [16:57:05]*** Partial cut [16:57:05]*** CUTSNS_PIN = 1 [16:57:05]*** CUTSNS_PIN = 0 [16:57:05]*** Brake cut motor [16:57:06]Read from MH i2c: 01 [16:57:06]MH_I2C_Read... [16:57:06]*** Stop cut motor [16:57:06]*** Cut end [16:57:06]Read from MH i2c: 01 07 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 07 00 02 28 00 00 00 00 00 FF 0F 3F [16:57:06]process_action print_text done [16:57:06]requested_data is exist [16:57:06]produce_requested_data [16:57:06]requested_item fm.sn is exist - process it [16:57:06]wFMCommunicate request_size=4 [16:57:06]MH_SAM_APDU [16:57:06]CAPDU: 80 11 00 00 [16:57:06]Write to MH i2c: E2 08 00 03 28 80 11 00 00 00 00 00 00 A5 [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:06]Read from MH i2c: E2 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 17 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 17 00 03 28 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: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 [16:57:06]wFMCommunicate OK [16:57:06]requested_item fd.num is exist - process it [16:57:06]SAM_PROTO_GetFieldsCounters [16:57:06]wFMCommunicate request_size=4 [16:57:06]MH_SAM_APDU [16:57:06]CAPDU: 80 13 00 00 [16:57:06]Write to MH i2c: E2 08 00 04 28 80 13 00 00 00 00 00 00 A8 [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:06]Read from MH i2c: E2 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 62 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 62 00 04 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 DF [16:57:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 [16:57:06]wFMCommunicate OK [16:57:06]SAM_PROTO_GetFieldsCounters done [16:57:06]requested_item shift.num is exist - process it [16:57:06]requested_item shift.opened is exist - process it [16:57:06]req_shift_opened [16:57:06]FM_GetShiftState [16:57:06]SAM_PROTO_GetShiftState [16:57:06]wFMCommunicate request_size=4 [16:57:06]MH_SAM_APDU [16:57:06]CAPDU: 80 13 01 00 [16:57:06]Write to MH i2c: E2 08 00 05 28 80 13 01 00 00 00 00 00 AA [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:06]Read from MH i2c: E2 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 0E 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: E2 0E 00 05 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9C [16:57:06]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:57:06]wFMCommunicate OK [16:57:06]SAM_PROTO_GetShiftState done [16:57:06]FM_GetShiftState done [16:57:06]req_shift_opened done [16:57:06]requested_item shift.open_date is exist - process it [16:57:06]req_shift_open_date [16:57:06]req_shift_open_date done [16:57:06]produce_requested_data done [16:57:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104445,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:57:06]process_action_free print_text [16:57:06]json_value_free [16:57:06]json_value_free done [16:57:06]process_json_proto returns [16:57:06]Send response to host [16:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104445,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:57:06]free response buf [16:57:06]execute_script done [16:57:06]execute_script returns [16:57:06]free content buf [16:57:06]Sock 7.Close socket [16:57:06]Sock 7.Thread stoped [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:53]accept exits with 9 [16:57:53]New connection [16:57:53]New thread 3066592612 created [16:57:53]Thread 3066449252 joined [16:57:53]Waiting for new connection... [16:57:53] Sock 9.Parse request [16:57:53]Sock 9.Check first char [16:57:53]Sock 9.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: 640 [16:57:53]Content-Type: application/json [16:57:53] [16:57:53]POST finish read [16:57:53]Found Content-Length = 640 [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)674016", "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.500, "sum" : 830.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 830.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)674016", "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.500, "sum" : 830.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 830.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 06 28 1D [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 06 28 00 94 02 77 66 BD 8F 7C 64 C5 [16:57:53]GetLastDocTimeStamp 1719075275 [16:57:53]current date 1719075476 [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 07 28 80 13 01 00 00 00 00 00 AC [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 07 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 9E [16:57:53]RAPDU: 09 00 01 F0 1A 76 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 1719016176 [16:57:53]opened+sec_in_day 1719102576 [16:57:53]quantity*price = 83000 [16:57:53]sum+1 = 83001 [16:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 830.00 НСП 1% : 7.34 НДС 12% : 88.14 Наличными: 830.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 179 22.06.2024 16:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104446 ФПД: 281258161099801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104446&fm=281258161099801&tin=02508201610067®Number=0000000000092785&sum=83000 [16:57:54]StoreToDocumentArchive [16:57:54]shift 356 fd 104446 [16:57:54]save to /storage/0356/doc_00104446 [16:57:54]save last doc name /storage/0356/doc_00104446 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 B6F00BA0 [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 14 28 80 09 00 00 00 00 00 00 AE [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]SAM_PROTO_ClearQueue done [16:57:55]KKMCreateOFDPacket [16:57:55]OFDProtocolAddRootSTLVToBuf [16:57:55]FM_MakeSignedData [16:57:55]FM_MakeSignedData [16:57:55]SAM_PROTO_SignData [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 01 02 [16:57:55]Write to MH i2c: E2 08 00 15 28 80 0D 01 02 00 00 00 00 B6 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=255 [16:57:55]MH_SAM_APDU [16:57: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 D4 30 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 38 44 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 94 02 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FF [16:57:55]Write to MH i2c: E2 02 01 16 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 30 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 38 44 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 94 02 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FF 00 00 DA [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=10 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 02 02 05 CD 84 C8 54 19 [16:57:55]Write to MH i2c: E2 0D 00 17 28 80 0D 02 02 05 00 CD 84 C8 54 19 00 00 49 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 17 28 00 90 00 B3 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 03 02 [16:57:55]Write to MH i2c: E2 08 00 18 28 80 0D 03 02 00 00 00 00 BB [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 0B 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 0B 00 18 28 00 39 18 24 D6 FA 59 79 6F 90 00 42 [16:57:55]RAPDU: 39 18 24 D6 FA 59 79 6F 90 00 [16:57:55]wFMCommunicate OK [16:57:55]SAM_PROTO_SignData done [16:57:55]FM_MakeSignedData done [16:57:55]CreateOFDProtocolMessage [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 11 00 00 [16:57:55]Write to MH i2c: E2 08 00 19 28 80 11 00 00 00 00 00 00 BB [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 17 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 17 00 19 28 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:57: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:57:55]wFMCommunicate OK [16:57:55]CreateOFDProtocolMessage done [16:57:55]OFDSenderStorePacket 104446 [16:57:55]StoreOFDPacket docnum=104446 [16:57: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 72 BB 07 01 28 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 D4 30 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 38 44 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 94 02 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FF CD 84 C8 54 19 39 18 24 D6 FA 59 79 6F [16:57:55]CheckFolder [16:57:55]dirname=/storage/ofd_packets [16:57:55]CheckFolder done [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00104446 [16:57:55]NVStorageSaveData ofd_packets/00104446 [16:57:55]File name is /storage/ofd_packets/00104446 [16:57:55]Write 301 bytes [16:57:55]NVStorageSaveData done [16:57:55]OFDSenderStorePacket done [16:57:55]KKMCreateOFDPacket done [16:57:55]NVStorageSaveData kkm_last_timestamp [16:57:55]File name is /storage/kkm_last_timestamp [16:57:55]Write 4 bytes [16:57:55]NVStorageSaveData done [16:57:55]ExternCall_PrintAddStr [16:57:55]wPrintStart [16:57:55]Write to MH i2c: 01 00 00 1A 28 42 [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 1A 28 00 00 00 00 00 FF 0F 57 [16:57:55]RasterBufferAndPrint [16:57:55]line Счет N : (1)674016 [16:57:55]line ИНН: 02508201610067 [16:57:55]line Контрольно-Кассовый Чек [16:57:55]line ПРОДАЖА [16:57:55]line ТРК (МРК, ГНК) : 32 [16:57:55]line Товар: 2710124130 [16:57:55]line Аи-92-К-5 [16:57:55]line 12.500 * 66.40 [16:57:55]line = 830.00 [16:57:55]line НДС 12% НСП 1% [16:57:55]line > о реализуемом товаре [16:57:55]line ИТОГО: 830.00 [16:57:55]line НСП 1% : 7.34 [16:57:55]line НДС 12% : 88.14 [16:57:55]line Наличными: 830.00 [16:57:55]line Безнал.: 0.00 [16:57:55]line Место: АЗС № 120 "Партнер Нефть" [16:57:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:57:55]line СНО: Общий режим [16:57:55]line Чек 179 22.06.2024 16:57 [16:57:55]line Смена: 356 ФФД: 1.0 [16:57:55]line ЗНМ: 0300000164 [16:57:55]line РНМ: 0000000000092785 [16:57:55]line Версия ККМ: 001 [16:57:55]line ФМ: 0000000000875093 [16:57:55]line ФД: 104446 [16:57:55]line ФПД: 281258161099801 [16:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104446&fm=281258161099801&tin=02508201610067®Number=0000000000092785&sum=83000 [16:57:55]OFD Sender: Processing packet 104446 [packets to send 17, broken 16] [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00104446 [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=6 [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 72 BB 07 01 28 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 D4 30 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 38 44 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 94 02 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 FF CD 84 C8 54 19 39 18 24 D6 FA 59 79 6F [16:57: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 79 E9 47 00 52 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 FE 97 01 00 F4 03 04 00 12 A9 76 66 B6 04 01 00 00 17 AC CC 6D 74 47 3F FF [16:57:56]CommunicateWithHost err = 0 [16:57:56]CheckOFDResponse [16:57:56]1017 (14) - 77093643461234 [16:57:56]1041 (16) - 0000000000875093 [16:57:56]1040 (4) - 104446 [16:57:56]1012 (4) - 22.06.2024 10:36 [16:57:56]1206 (1) - 0 [16:57:56]OFD Sender: Remove packet 104446 [16:57:56]ProducePacketName [16:57:56]name=ofd_packets/00104446 [16:57:56]NVStorageDeleteData [16:57:56]Write to MH i2c: 01 00 00 42 28 6A [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [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 42 28 00 00 00 00 00 08 0D 86 [16:57:56]RasterBufferAndPrint [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]written 0, free lines is 3342 [16:57:56]MH_Cut [16:57:56]Write to MH i2c: D1 01 00 49 28 01 43 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 01 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 01 00 49 28 00 42 [16:57:56]Write to MH i2c: 01 00 00 4A 28 72 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]OFD Sender: No OFD packet to send [16:57:57]*** Cut start [16:57:57]*** Partial cut [16:57:57]*** CUTSNS_PIN = 1 [16:57:57]*** CUTSNS_PIN = 0 [16:57:57]*** Brake cut motor [16:57:57]Read from MH i2c: 01 [16:57:57]MH_I2C_Read... [16:57:57]*** Stop cut motor [16:57:57]*** Cut end [16:57:57]Read from MH i2c: 01 07 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 FF 0F 87 [16:57:57]process_action close_receipt done [16:57:57]requested_data is exist [16:57:57]produce_requested_data [16:57:57]requested_item fm.sn is exist - process it [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 11 00 00 [16:57:57]Write to MH i2c: E2 08 00 4B 28 80 11 00 00 00 00 00 00 ED [16:57:57]Write i2c OK [16:57:57]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 4B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [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 4C 28 80 13 00 00 00 00 00 00 F0 [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 4C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 2B [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 FE 97 01 00 0E 04 04 00 64 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 [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 4D 28 80 13 01 00 00 00 00 00 F2 [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 4D 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E4 [16:57:57]RAPDU: 09 00 01 F0 1A 76 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":104446,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [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":104446,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [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 9.Close socket [16:57:57]Sock 9.Thread stoped [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:49]accept exits with 7 [16:59:49]New connection [16:59:49]New thread 3066449252 created [16:59:49]Thread 3066592612 joined [16:59:49]Waiting for new connection... [16:59:49] Sock 7.Parse request [16:59:49]Sock 7.Check first char [16:59:49]Sock 7.First char is OK [16:59:49]request: POST /json_proto HTTP/1.0 [16:59:49]Method: POST [16:59:49]URL: /json_proto [16:59:49]Method is POST - this is cgi request [16:59:49]url: /json_proto [16:59:49]query_string will be loaded in cgi processing [16:59:49]execute_cgi json_proto POST (null) [16:59:49]execute_cgi path=json_proto method=POST [16:59:49]POST find Content-Length [16:59:49]Host: 172.17.38.133:8080 [16:59:49]Content-Length: 660 [16:59:49]Content-Type: application/json [16:59:49] [16:59:49]POST finish read [16:59:49]Found Content-Length = 660 [16:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674018", "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.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:49]execute_script... [16:59: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)674018", "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.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:49]POST & json_proto [16:59:49]process_json_proto [16:59:49]json parsed OK: [16:59:49]protocol is kg_v1.0 [16:59:49]action value=close_receipt [16:59:49]process_action close_receipt [16:59:49]cmd_close_receipt [16:59:49]MH_GetDate [16:59:49]Write to MH i2c: F0 00 00 4E 28 65 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: F0 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: F0 09 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: F0 09 00 4E 28 00 07 03 77 66 BD 8F 7C 64 81 [16:59:49]GetLastDocTimeStamp 1719075476 [16:59:49]current date 1719075591 [16:59:49]FM_GetShiftState [16:59:49]SAM_PROTO_GetShiftState [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 13 01 00 [16:59:49]Write to MH i2c: E2 08 00 4F 28 80 13 01 00 00 00 00 00 F4 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0E 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0E 00 4F 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 E6 [16:59:49]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:59:49]wFMCommunicate OK [16:59:49]SAM_PROTO_GetShiftState done [16:59:49]FM_GetShiftState done [16:59:49]opened in 1719016176 [16:59:49]opened+sec_in_day 1719102576 [16:59:49]quantity*price = 33200 [16:59:49]sum+1 = 33201 [16:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 Внесено: 1000.00 СДАЧА: 668.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 180 22.06.2024 16:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104447 ФПД: 223214746020302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104447&fm=223214746020302&tin=02508201610067®Number=0000000000092785&sum=33200 [16:59:50]StoreToDocumentArchive [16:59:50]shift 356 fd 104447 [16:59:50]save to /storage/0356/doc_00104447 [16:59:50]save last doc name /storage/0356/doc_00104447 to /storage/kkm_last_doc_name [16:59:50]save OK [16:59:50]Clear old archive folders... [16:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:50]tlvbuf is 00FD39B0 [16:59:50]SAM_PROTO_ClearQueue [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 09 00 00 [16:59:50]Write to MH i2c: E2 08 00 5C 28 80 09 00 00 00 00 00 00 F6 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:50]Read from MH i2c: E2 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 03 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [16:59:50]RAPDU: 90 00 [16:59:50]wFMCommunicate OK [16:59:50]SAM_PROTO_ClearQueue done [16:59:50]KKMCreateOFDPacket [16:59:50]OFDProtocolAddRootSTLVToBuf [16:59:50]FM_MakeSignedData [16:59:50]FM_MakeSignedData [16:59:50]SAM_PROTO_SignData [16:59:50]wFMCommunicate request_size=4 [16:59:50]MH_SAM_APDU [16:59:50]CAPDU: 80 0D 01 02 [16:59:50]Write to MH i2c: E2 08 00 5D 28 80 0D 01 02 00 00 00 00 FE [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:50]Read from MH i2c: E2 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 03 00 [16:59:50]MH_I2C_Read... [16:59:50]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [16:59:50]RAPDU: 90 00 [16:59:50]wFMCommunicate OK [16:59:50]wFMCommunicate request_size=255 [16:59:50]MH_SAM_APDU [16:59: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 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 B4 00 00 00 F4 03 04 00 07 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CB [16:59:50]Write to MH i2c: E2 02 01 5E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B4 00 00 00 F4 03 04 00 07 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CB 00 00 A1 [16:59:50]Write i2c OK [16:59:50]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 03 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [16:59:51]RAPDU: 90 00 [16:59:51]wFMCommunicate OK [16:59:51]wFMCommunicate request_size=10 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 0D 02 02 05 03 3B A5 29 CE [16:59:51]Write to MH i2c: E2 0D 00 5F 28 80 0D 02 02 05 00 03 3B A5 29 CE 00 00 E5 [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 03 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [16:59:51]RAPDU: 90 00 [16:59:51]wFMCommunicate OK [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 0D 03 02 [16:59:51]Write to MH i2c: E2 08 00 60 28 80 0D 03 02 00 00 00 00 03 [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 0B 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 0B 00 60 28 00 B3 70 0D C3 4C A8 23 D2 90 00 E0 [16:59:51]RAPDU: B3 70 0D C3 4C A8 23 D2 90 00 [16:59:51]wFMCommunicate OK [16:59:51]SAM_PROTO_SignData done [16:59:51]FM_MakeSignedData done [16:59:51]CreateOFDProtocolMessage [16:59:51]wFMCommunicate request_size=4 [16:59:51]MH_SAM_APDU [16:59:51]CAPDU: 80 11 00 00 [16:59:51]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:51]Read from MH i2c: E2 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 17 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [16: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 [16:59:51]wFMCommunicate OK [16:59:51]CreateOFDProtocolMessage done [16:59:51]OFDSenderStorePacket 104447 [16:59:51]StoreOFDPacket docnum=104447 [16: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 60 CF 07 01 E8 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 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 B4 00 00 00 F4 03 04 00 07 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CB 03 3B A5 29 CE B3 70 0D C3 4C A8 23 D2 [16:59:51]CheckFolder [16:59:51]dirname=/storage/ofd_packets [16:59:51]CheckFolder done [16:59:51]ProducePacketName [16:59:51]name=ofd_packets/00104447 [16:59:51]NVStorageSaveData ofd_packets/00104447 [16:59:51]File name is /storage/ofd_packets/00104447 [16:59:51]Write 301 bytes [16:59:51]NVStorageSaveData done [16:59:51]OFDSenderStorePacket done [16:59:51]KKMCreateOFDPacket done [16:59:51]NVStorageSaveData kkm_last_timestamp [16:59:51]File name is /storage/kkm_last_timestamp [16:59:51]Write 4 bytes [16:59:51]NVStorageSaveData done [16:59:51]ExternCall_PrintAddStr [16:59:51]wPrintStart [16:59:51]Write to MH i2c: 01 00 00 62 28 8A [16:59:51]Write i2c OK [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: 01 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: 01 07 00 [16:59:51]MH_I2C_Read... [16:59:51]Read from MH i2c: 01 07 00 62 28 00 00 00 00 00 FF 0F 9F [16:59:51]RasterBufferAndPrint [16:59:51]line Счет N : (1)674018 [16:59:51]line ИНН: 02508201610067 [16:59:51]line Контрольно-Кассовый Чек [16:59:51]line ПРОДАЖА [16:59:51]line ТРК (МРК, ГНК) : 32 [16:59:51]line Товар: 2710124130 [16:59:51]line Аи-92-К-5 [16:59:51]line 5.000 * 66.40 [16:59:51]line = 332.00 [16:59:51]line НДС 12% НСП 1% [16:59:51]line > о реализуемом товаре [16:59:51]line ИТОГО: 332.00 [16:59:51]line Внесено: 1000.00 [16:59:51]line СДАЧА: 668.00 [16:59:51]line НСП 1% : 2.94 [16:59:51]line НДС 12% : 35.26 [16:59:51]line Наличными: 332.00 [16:59:51]line Безнал.: 0.00 [16:59:51]line Место: АЗС № 120 "Партнер Нефть" [16:59:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:59:51]line СНО: Общий режим [16:59:51]line Чек 180 22.06.2024 16:59 [16:59:51]line Смена: 356 ФФД: 1.0 [16:59:51]line ЗНМ: 0300000164 [16:59:51]line РНМ: 0000000000092785 [16:59:51]line Версия ККМ: 001 [16:59:51]line ФМ: 0000000000875093 [16:59:51]line ФД: 104447 [16:59:51]line ФПД: 223214746020302 [16:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104447&fm=223214746020302&tin=02508201610067®Number=0000000000092785&sum=33200 [16:59:51]OFD Sender: Processing packet 104447 [packets to send 17, broken 16] [16:59:51]ProducePacketName [16:59:51]name=ofd_packets/00104447 [16:59:51]OFD Sender: To server: pG, [16:59:51]CommunicateWithHost lk.salyk.kg:30040 [16:59:51]ConnectInit lk.salyk.kg [16:59:51]written 0, free lines is 4095 [16:59:51]Connected sock=10 [16:59: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 60 CF 07 01 E8 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 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 B4 00 00 00 F4 03 04 00 07 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 97 01 00 35 04 06 00 CB 03 3B A5 29 CE B3 70 0D C3 4C A8 23 D2 [16: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 A3 9F 47 00 76 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 FF 97 01 00 F4 03 04 00 86 A9 76 66 B6 04 01 00 00 90 69 C9 42 20 CA C6 D3 [16:59:52]CommunicateWithHost err = 0 [16:59:52]CheckOFDResponse [16:59:52]1017 (14) - 77093643461234 [16:59:52]1041 (16) - 0000000000875093 [16:59:52]1040 (4) - 104447 [16:59:52]1012 (4) - 22.06.2024 10:37 [16:59:52]1206 (1) - 0 [16:59:52]OFD Sender: Remove packet 104447 [16:59:52]ProducePacketName [16:59:52]name=ofd_packets/00104447 [16:59:52]NVStorageDeleteData [16:59:52]Write to MH i2c: 01 00 00 8C 28 B4 [16:59:52]Write i2c OK [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: 01 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: 01 07 00 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 ED 0C B4 [16:59:52]RasterBufferAndPrint [16:59:52]line [16:59:52]line [16:59:52]line [16:59:52]line [16:59:52]line [16:59:52]written 0, free lines is 3315 [16:59:52]MH_Cut [16:59:52]Write to MH i2c: D1 01 00 93 28 01 8D [16:59:52]Write i2c OK [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: D1 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: D1 01 00 [16:59:52]MH_I2C_Read... [16:59:52]Read from MH i2c: D1 01 00 93 28 00 8C [16:59:52]Write to MH i2c: 01 00 00 94 28 BC [16:59:52]Write i2c OK [16:59:52]MH_I2C_Read... [16:59:52]OFD Sender: No OFD packet to send [16:59:52]*** Cut start [16:59:52]*** Partial cut [16:59:52]*** CUTSNS_PIN = 1 [16:59:52]*** CUTSNS_PIN = 0 [16:59:53]*** Brake cut motor [16:59:53]Read from MH i2c: 01 [16:59:53]MH_I2C_Read... [16:59:53]*** Stop cut motor [16:59:53]*** Cut end [16:59:53]Read from MH i2c: 01 07 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [16:59:53]process_action close_receipt done [16:59:53]requested_data is exist [16:59:53]produce_requested_data [16:59:53]requested_item fm.sn is exist - process it [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 11 00 00 [16:59:53]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 17 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [16: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 [16:59:53]wFMCommunicate OK [16:59:53]requested_item fd.num is exist - process it [16:59:53]SAM_PROTO_GetFieldsCounters [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 13 00 00 [16:59:53]Write to MH i2c: E2 08 00 96 28 80 13 00 00 00 00 00 00 3A [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 62 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 62 00 96 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 97 01 00 0E 04 04 00 64 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 79 [16:59: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 FF 97 01 00 0E 04 04 00 64 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 [16:59:53]wFMCommunicate OK [16:59:53]SAM_PROTO_GetFieldsCounters done [16:59:53]requested_item shift.num is exist - process it [16:59:53]requested_item shift.opened is exist - process it [16:59:53]req_shift_opened [16:59:53]FM_GetShiftState [16:59:53]SAM_PROTO_GetShiftState [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 13 01 00 [16:59:53]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 2E [16:59:53]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [16:59:53]wFMCommunicate OK [16:59:53]SAM_PROTO_GetShiftState done [16:59:53]FM_GetShiftState done [16:59:53]req_shift_opened done [16:59:53]requested_item shift.open_date is exist - process it [16:59:53]req_shift_open_date [16:59:53]req_shift_open_date done [16:59:53]produce_requested_data done [16:59:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104447,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [16:59:53]process_action_free close_receipt [16:59:53]json_value_free [16:59:53]json_value_free done [16:59:53]process_json_proto returns [16:59:53]Send response to host [16:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104447,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [16:59:53]free response buf [16:59:53]execute_script done [16:59:53]execute_script returns [16:59:53]free content buf [16:59:53]Sock 7.Close socket [16:59:53]Sock 7.Thread stoped [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]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:43]accept exits with 9 [17:03:43]New connection [17:03:43]New thread 3066592612 created [17:03:43]Thread 3066449252 joined [17:03:43]Waiting for new connection... [17:03:43] Sock 9.Parse request [17:03:43]Sock 9.Check first char [17:03:43]Sock 9.First char is OK [17:03:43]request: POST /json_proto HTTP/1.0 [17:03:43]Method: POST [17:03:43]URL: /json_proto [17:03:43]Method is POST - this is cgi request [17:03:43]url: /json_proto [17:03:43]query_string will be loaded in cgi processing [17:03:43]execute_cgi json_proto POST (null) [17:03:43]execute_cgi path=json_proto method=POST [17:03:43]POST find Content-Length [17:03:43]Host: 172.17.38.133:8080 [17:03:43]Content-Length: 677 [17:03:43]Content-Type: application/json [17:03:43] [17:03:43]POST finish read [17:03:43]Found Content-Length = 677 [17:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674019", "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.350, "sum" : 488.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]execute_script... [17:03: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)674019", "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.350, "sum" : 488.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:43]POST & json_proto [17:03:43]process_json_proto [17:03:43]json parsed OK: [17:03:43]protocol is kg_v1.0 [17:03:43]action value=close_receipt [17:03:43]process_action close_receipt [17:03:43]cmd_close_receipt [17:03:43]MH_GetDate [17:03:43]Write to MH i2c: F0 00 00 98 28 AF [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: F0 09 00 98 28 00 F2 03 77 66 BD 8F 7C 64 B6 [17:03:43]GetLastDocTimeStamp 1719075591 [17:03:43]current date 1719075826 [17:03:43]FM_GetShiftState [17:03:43]SAM_PROTO_GetShiftState [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 13 01 00 [17:03:43]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 30 [17:03:43]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:03:43]wFMCommunicate OK [17:03:43]SAM_PROTO_GetShiftState done [17:03:43]FM_GetShiftState done [17:03:43]opened in 1719016176 [17:03:43]opened+sec_in_day 1719102576 [17:03:43]quantity*price = 48804 [17:03:43]sum+1 = 48805 [17:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 488.00 Внесено: 500.00 СДАЧА: 12.00 НСП 1% : 4.32 НДС 12% : 51.83 Наличными: 488.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 181 22.06.2024 17:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104448 ФПД: 125034932090099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104448&fm=125034932090099&tin=02508201610067®Number=0000000000092785&sum=48800 [17:03:45]StoreToDocumentArchive [17:03:45]shift 356 fd 104448 [17:03:45]save to /storage/0356/doc_00104448 [17:03:45]save last doc name /storage/0356/doc_00104448 to /storage/kkm_last_doc_name [17:03:45]save OK [17:03:45]Clear old archive folders... [17:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:45]tlvbuf is B6D50010 [17:03:45]SAM_PROTO_ClearQueue [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 09 00 00 [17:03:45]Write to MH i2c: E2 08 00 A6 28 80 09 00 00 00 00 00 00 40 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]SAM_PROTO_ClearQueue done [17:03:45]KKMCreateOFDPacket [17:03:45]OFDProtocolAddRootSTLVToBuf [17:03:45]FM_MakeSignedData [17:03:45]FM_MakeSignedData [17:03:45]SAM_PROTO_SignData [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 0D 01 02 [17:03:45]Write to MH i2c: E2 08 00 A7 28 80 0D 01 02 00 00 00 00 48 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=255 [17:03:45]MH_SAM_APDU [17:03: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 B6 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 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 F2 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 71 [17:03:45]Write to MH i2c: E2 02 01 A8 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 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 F2 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 71 00 00 4B [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=10 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 0D 02 02 05 B7 F6 B6 34 F3 [17:03:45]Write to MH i2c: E2 0D 00 A9 28 80 0D 02 02 05 00 B7 F6 B6 34 F3 00 00 DF [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 0D 03 02 [17:03:45]Write to MH i2c: E2 08 00 AA 28 80 0D 03 02 00 00 00 00 4D [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 0B 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 0B 00 AA 28 00 A6 48 A0 7D 3D B6 2D 0F 90 00 88 [17:03:45]RAPDU: A6 48 A0 7D 3D B6 2D 0F 90 00 [17:03:45]wFMCommunicate OK [17:03:45]SAM_PROTO_SignData done [17:03:45]FM_MakeSignedData done [17:03:45]CreateOFDProtocolMessage [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 11 00 00 [17:03:45]Write to MH i2c: E2 08 00 AB 28 80 11 00 00 00 00 00 00 4D [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 AB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [17:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:03:45]wFMCommunicate OK [17:03:45]CreateOFDProtocolMessage done [17:03:45]OFDSenderStorePacket 104448 [17:03:45]StoreOFDPacket docnum=104448 [17:03: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 E5 0B 07 01 74 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 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 F2 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 71 B7 F6 B6 34 F3 A6 48 A0 7D 3D B6 2D 0F [17:03:45]CheckFolder [17:03:45]dirname=/storage/ofd_packets [17:03:45]CheckFolder done [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00104448 [17:03:45]NVStorageSaveData ofd_packets/00104448 [17:03:45]File name is /storage/ofd_packets/00104448 [17:03:45]Write 301 bytes [17:03:45]NVStorageSaveData done [17:03:45]OFDSenderStorePacket done [17:03:45]KKMCreateOFDPacket done [17:03:45]NVStorageSaveData kkm_last_timestamp [17:03:45]File name is /storage/kkm_last_timestamp [17:03:45]Write 4 bytes [17:03:45]NVStorageSaveData done [17:03:45]ExternCall_PrintAddStr [17:03:45]wPrintStart [17:03:45]Write to MH i2c: 01 00 00 AC 28 D4 [17:03:45]OFD Sender: Processing packet 104448 [packets to send 17, broken 16] [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00104448 [17:03:45]OFD Sender: To server: pG, [17:03:45]CommunicateWithHost lk.salyk.kg:30040 [17:03:45]ConnectInit lk.salyk.kg [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 AC 28 00 00 00 00 00 FF 0F E9 [17:03:45]RasterBufferAndPrint [17:03:45]line Счет N : (1)674019 [17:03:45]line ИНН: 02508201610067 [17:03:45]line Контрольно-Кассовый Чек [17:03:45]line ПРОДАЖА [17:03:45]line ТРК (МРК, ГНК) : 32 [17:03:45]line Товар: 2710124130 [17:03:45]line Аи-92-К-5 [17:03:45]line 7.350 * 66.40 [17:03:45]line = 488.04 [17:03:45]line НДС 12% НСП 1% [17:03:45]line > о реализуемом товаре [17:03:45]line ОКРУГЛЕНИЕ: -0.04 [17:03:45]line ИТОГО: 488.00 [17:03:45]line Внесено: 500.00 [17:03:45]line СДАЧА: 12.00 [17:03:45]line НСП 1% : 4.32 [17:03:45]line НДС 12% : 51.83 [17:03:45]line Наличными: 488.00 [17:03:45]line Безнал.: 0.00 [17:03:45]line Место: АЗС № 120 "Партнер Нефть" [17:03:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:03:45]line СНО: Общий режим [17:03:45]line Чек 181 22.06.2024 17:03 [17:03:45]line Смена: 356 ФФД: 1.0 [17:03:45]line ЗНМ: 0300000164 [17:03:45]line РНМ: 0000000000092785 [17:03:45]line Версия ККМ: 001 [17:03:45]line ФМ: 0000000000875093 [17:03:45]line ФД: 104448 [17:03:45]line ФПД: 125034932090099 [17:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104448&fm=125034932090099&tin=02508201610067®Number=0000000000092785&sum=48800 [17:03:45]written 0, free lines is 4095 [17:03:45]Connected sock=10 [17:03: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 E5 0B 07 01 74 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 14 00 00 00 00 07 04 06 00 A0 BE 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 F2 03 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 71 B7 F6 B6 34 F3 A6 48 A0 7D 3D B6 2D 0F [17:03: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 A5 B2 47 00 5B 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 00 98 01 00 F4 03 04 00 70 AA 76 66 B6 04 01 00 00 23 96 76 45 31 94 00 FD [17:03:45]CommunicateWithHost err = 0 [17:03:45]CheckOFDResponse [17:03:45]1017 (14) - 77093643461234 [17:03:45]1041 (16) - 0000000000875093 [17:03:45]1040 (4) - 104448 [17:03:45]1012 (4) - 22.06.2024 10:41 [17:03:45]1206 (1) - 0 [17:03:45]OFD Sender: Remove packet 104448 [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00104448 [17:03:45]NVStorageDeleteData [17:03:46]Write to MH i2c: 01 00 00 D7 28 FF [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 E4 0C F6 [17:03:46]RasterBufferAndPrint [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]written 0, free lines is 3307 [17:03:46]MH_Cut [17:03:46]Write to MH i2c: D1 01 00 DE 28 01 D8 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 01 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 01 00 DE 28 00 D7 [17:03:46]Write to MH i2c: 01 00 00 DF 28 07 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]OFD Sender: No OFD packet to send [17:03:46]*** Cut start [17:03:46]*** Partial cut [17:03:46]*** CUTSNS_PIN = 1 [17:03:46]*** CUTSNS_PIN = 0 [17:03:47]*** Brake cut motor [17:03:47]Read from MH i2c: 01 [17:03:47]MH_I2C_Read... [17:03:47]*** Stop cut motor [17:03:47]*** Cut end [17:03:47]Read from MH i2c: 01 07 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [17:03:47]process_action close_receipt done [17:03:47]requested_data is exist [17:03:47]produce_requested_data [17:03:47]requested_item fm.sn is exist - process it [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 11 00 00 [17:03:47]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [17:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:03:47]wFMCommunicate OK [17:03:47]requested_item fd.num is exist - process it [17:03:47]SAM_PROTO_GetFieldsCounters [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 00 00 [17:03:47]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 C9 [17:03: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 00 98 01 00 0E 04 04 00 64 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:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetFieldsCounters done [17:03:47]requested_item shift.num is exist - process it [17:03:47]requested_item shift.opened is exist - process it [17:03:47]req_shift_opened [17:03:47]FM_GetShiftState [17:03:47]SAM_PROTO_GetShiftState [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 01 00 [17:03:47]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 79 [17:03:47]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetShiftState done [17:03:47]FM_GetShiftState done [17:03:47]req_shift_opened done [17:03:47]requested_item shift.open_date is exist - process it [17:03:47]req_shift_open_date [17:03:47]req_shift_open_date done [17:03:47]produce_requested_data done [17:03:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104448,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:03:47]process_action_free close_receipt [17:03:47]json_value_free [17:03:47]json_value_free done [17:03:47]process_json_proto returns [17:03:47]Send response to host [17:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104448,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:03:47]free response buf [17:03:47]execute_script done [17:03:47]execute_script returns [17:03:47]free content buf [17:03:47]Sock 9.Close socket [17:03:47]Sock 9.Thread stoped [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:50]accept exits with 7 [17:05:50]New connection [17:05:50]New thread 3066449252 created [17:05:50]Thread 3066592612 joined [17:05:50]Waiting for new connection... [17:05:50] Sock 7.Parse request [17:05:50]Sock 7.Check first char [17:05:50]Sock 7.First char is OK [17:05:50]request: POST /json_proto HTTP/1.0 [17:05:50]Method: POST [17:05:50]URL: /json_proto [17:05:50]Method is POST - this is cgi request [17:05:50]url: /json_proto [17:05:50]query_string will be loaded in cgi processing [17:05:50]execute_cgi json_proto POST (null) [17:05:50]execute_cgi path=json_proto method=POST [17:05:50]POST find Content-Length [17:05:50]Host: 172.17.38.133:8080 [17:05:50]Content-Length: 682 [17:05:50]Content-Type: application/json [17:05:50] [17:05:50]POST finish read [17:05:50]Found Content-Length = 682 [17:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674020", "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" ] } } [17:05:50]execute_script... [17:05: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)674020", "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" ] } } [17:05:50]POST & json_proto [17:05:50]process_json_proto [17:05:50]json parsed OK: [17:05:50]protocol is kg_v1.0 [17:05:50]action value=close_receipt [17:05:50]process_action close_receipt [17:05:50]cmd_close_receipt [17:05:50]MH_GetDate [17:05:50]Write to MH i2c: F0 00 00 E3 28 FA [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 E3 28 00 70 04 77 66 BD 8F 7C 64 80 [17:05:50]GetLastDocTimeStamp 1719075826 [17:05:50]current date 1719075952 [17:05:50]FM_GetShiftState [17:05:50]SAM_PROTO_GetShiftState [17:05:50]wFMCommunicate request_size=4 [17:05:50]MH_SAM_APDU [17:05:50]CAPDU: 80 13 01 00 [17:05:50]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:50]Read from MH i2c: E2 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 7B [17:05:50]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:05:50]wFMCommunicate OK [17:05:50]SAM_PROTO_GetShiftState done [17:05:50]FM_GetShiftState done [17:05:50]opened in 1719016176 [17:05:50]opened+sec_in_day 1719102576 [17:05:50]quantity*price = 100064 [17:05:50]sum+1 = 100066 [17:05: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 СНО: Общий режим Чек 182 22.06.2024 17:05 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104449 ФПД: 117442058030838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104449&fm=117442058030838&tin=02508201610067®Number=0000000000092785&sum=100000 [17:05:51]StoreToDocumentArchive [17:05:51]shift 356 fd 104449 [17:05:51]save to /storage/0356/doc_00104449 [17:05:51]save last doc name /storage/0356/doc_00104449 to /storage/kkm_last_doc_name [17:05:51]save OK [17:05:51]Clear old archive folders... [17:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:51]tlvbuf is 00FE0EF0 [17:05:51]SAM_PROTO_ClearQueue [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 09 00 00 [17:05:51]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]SAM_PROTO_ClearQueue done [17:05:51]KKMCreateOFDPacket [17:05:51]OFDProtocolAddRootSTLVToBuf [17:05:51]FM_MakeSignedData [17:05:51]FM_MakeSignedData [17:05:51]SAM_PROTO_SignData [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 0D 01 02 [17:05:51]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]wFMCommunicate request_size=255 [17:05:51]MH_SAM_APDU [17:05: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 B6 00 00 00 F4 03 04 00 70 04 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 6A [17:05:51]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B6 00 00 00 F4 03 04 00 70 04 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 6A 00 00 0D [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=10 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 02 02 05 D0 1C 26 8E F6 [17:05:52]Write to MH i2c: E2 0D 00 F4 28 80 0D 02 02 05 00 D0 1C 26 8E F6 00 00 36 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 03 02 [17:05:52]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 F5 28 00 C5 FE 60 46 5F 3B B3 CF 90 00 1E [17:05:52]RAPDU: C5 FE 60 46 5F 3B B3 CF 90 00 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_SignData done [17:05:52]FM_MakeSignedData done [17:05:52]CreateOFDProtocolMessage [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 11 00 00 [17:05:52]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EB [17: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 [17:05:52]wFMCommunicate OK [17:05:52]CreateOFDProtocolMessage done [17:05:52]OFDSenderStorePacket 104449 [17:05:52]StoreOFDPacket docnum=104449 [17:05: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 3B 51 07 01 FE 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 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 B6 00 00 00 F4 03 04 00 70 04 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 6A D0 1C 26 8E F6 C5 FE 60 46 5F 3B B3 CF [17:05:52]CheckFolder [17:05:52]dirname=/storage/ofd_packets [17:05:52]CheckFolder done [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00104449 [17:05:52]NVStorageSaveData ofd_packets/00104449 [17:05:52]File name is /storage/ofd_packets/00104449 [17:05:52]Write 301 bytes [17:05:52]NVStorageSaveData done [17:05:52]OFDSenderStorePacket done [17:05:52]KKMCreateOFDPacket done [17:05:52]NVStorageSaveData kkm_last_timestamp [17:05:52]File name is /storage/kkm_last_timestamp [17:05:52]Write 4 bytes [17:05:52]NVStorageSaveData done [17:05:52]ExternCall_PrintAddStr [17:05:52]wPrintStart [17:05:52]Write to MH i2c: 01 00 00 F7 28 1F [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [17:05:52]RasterBufferAndPrint [17:05:52]line Счет N : (1)674020 [17:05:52]line ИНН: 02508201610067 [17:05:52]line Контрольно-Кассовый Чек [17:05:52]line ПРОДАЖА [17:05:52]line ТРК (МРК, ГНК) : 42 [17:05:52]line Товар: 2710124130 [17:05:52]line Аи-92-К-5 [17:05:52]line 15.070 * 66.40 [17:05:52]line = 1000.65 [17:05:52]line НДС 12% НСП 1% [17:05:52]line > о реализуемом товаре [17:05:52]line ОКРУГЛЕНИЕ: -0.65 [17:05:52]line ИТОГО: 1000.00 [17:05:52]line Внесено: 1000.00 [17:05:52]line СДАЧА: 0.00 [17:05:52]line НСП 1% : 8.85 [17:05:52]line НДС 12% : 106.26 [17:05:52]line Наличными: 1000.00 [17:05:52]line Безнал.: 0.00 [17:05:52]line Место: АЗС № 120 "Партнер Нефть" [17:05:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:05:52]line СНО: Общий режим [17:05:52]line Чек 182 22.06.2024 17:05 [17:05:52]line Смена: 356 ФФД: 1.0 [17:05:52]line ЗНМ: 0300000164 [17:05:52]line РНМ: 0000000000092785 [17:05:52]line Версия ККМ: 001 [17:05:52]line ФМ: 0000000000875093 [17:05:52]line ФД: 104449 [17:05:52]line ФПД: 117442058030838 [17:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104449&fm=117442058030838&tin=02508201610067®Number=0000000000092785&sum=100000 [17:05:52]OFD Sender: Processing packet 104449 [packets to send 17, broken 16] [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00104449 [17:05:52]OFD Sender: To server: pG, [17:05:52]CommunicateWithHost lk.salyk.kg:30040 [17:05:52]ConnectInit lk.salyk.kg [17:05:52]written 0, free lines is 4095 [17:05:52]Connected sock=10 [17:05: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 3B 51 07 01 FE 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 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 B6 00 00 00 F4 03 04 00 70 04 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 6A D0 1C 26 8E F6 C5 FE 60 46 5F 3B B3 CF [17:05: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 AE 9B 47 00 E8 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 98 01 00 F4 03 04 00 EF AA 76 66 B6 04 01 00 00 60 71 03 28 7B 6A BE F2 [17:05:53]CommunicateWithHost err = 0 [17:05:53]CheckOFDResponse [17:05:53]1017 (14) - 77093643461234 [17:05:53]1041 (16) - 0000000000875093 [17:05:53]1040 (4) - 104449 [17:05:53]1012 (4) - 22.06.2024 10:43 [17:05:53]1206 (1) - 0 [17:05:53]OFD Sender: Remove packet 104449 [17:05:53]ProducePacketName [17:05:53]name=ofd_packets/00104449 [17:05:53]NVStorageDeleteData [17:05:53]Write to MH i2c: 01 00 00 22 29 4B [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: 01 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: 01 07 00 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 DD 0C 3B [17:05:53]RasterBufferAndPrint [17:05:53]line [17:05:53]line [17:05:53]line [17:05:53]line [17:05:53]line [17:05:53]written 0, free lines is 3299 [17:05:53]MH_Cut [17:05:53]Write to MH i2c: D1 01 00 29 29 01 24 [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: D1 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: D1 01 00 [17:05:53]MH_I2C_Read... [17:05:53]Read from MH i2c: D1 01 00 29 29 00 23 [17:05:53]Write to MH i2c: 01 00 00 2A 29 53 [17:05:53]Write i2c OK [17:05:53]MH_I2C_Read... [17:05:53]OFD Sender: No OFD packet to send [17:05:53]*** Cut start [17:05:53]*** Partial cut [17:05:53]*** CUTSNS_PIN = 1 [17:05:54]*** CUTSNS_PIN = 0 [17:05:54]*** Brake cut motor [17:05:54]Read from MH i2c: 01 [17:05:54]MH_I2C_Read... [17:05:54]*** Stop cut motor [17:05:54]*** Cut end [17:05:54]Read from MH i2c: 01 07 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [17:05:54]process_action close_receipt done [17:05:54]requested_data is exist [17:05:54]produce_requested_data [17:05:54]requested_item fm.sn is exist - process it [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 11 00 00 [17:05:54]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [17:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:05:54]wFMCommunicate OK [17:05:54]requested_item fd.num is exist - process it [17:05:54]SAM_PROTO_GetFieldsCounters [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 13 00 00 [17:05:54]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 62 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 62 00 2C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 19 [17:05: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 01 98 01 00 0E 04 04 00 64 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 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_GetFieldsCounters done [17:05:54]requested_item shift.num is exist - process it [17:05:54]requested_item shift.opened is exist - process it [17:05:54]req_shift_opened [17:05:54]FM_GetShiftState [17:05:54]SAM_PROTO_GetShiftState [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 13 01 00 [17:05:54]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C5 [17:05:54]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_GetShiftState done [17:05:54]FM_GetShiftState done [17:05:54]req_shift_opened done [17:05:54]requested_item shift.open_date is exist - process it [17:05:54]req_shift_open_date [17:05:54]req_shift_open_date done [17:05:54]produce_requested_data done [17:05:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104449,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:05:54]process_action_free close_receipt [17:05:54]json_value_free [17:05:54]json_value_free done [17:05:54]process_json_proto returns [17:05:54]Send response to host [17:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104449,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:05:54]free response buf [17:05:54]execute_script done [17:05:54]execute_script returns [17:05:54]free content buf [17:05:54]Sock 7.Close socket [17:05:54]Sock 7.Thread stoped [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:33]accept exits with 9 [17:08:33]New connection [17:08:33]New thread 3066592612 created [17:08:33]Thread 3066449252 joined [17:08:33]Waiting for new connection... [17:08:33] Sock 9.Parse request [17:08:33]Sock 9.Check first char [17:08:33]Sock 9.First char is OK [17:08:33]request: POST /json_proto HTTP/1.0 [17:08:33]Method: POST [17:08:33]URL: /json_proto [17:08:33]Method is POST - this is cgi request [17:08:33]url: /json_proto [17:08:33]query_string will be loaded in cgi processing [17:08:33]execute_cgi json_proto POST (null) [17:08:33]execute_cgi path=json_proto method=POST [17:08:33]POST find Content-Length [17:08:33]Host: 172.17.38.133:8080 [17:08:33]Content-Length: 692 [17:08:33]Content-Type: application/json [17:08:33] [17:08:33]POST finish read [17:08:33]Found Content-Length = 692 [17:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674017", "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" : 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" ] } } [17:08:33]execute_script... [17:08: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)674017", "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" : 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" ] } } [17:08:33]POST & json_proto [17:08:33]process_json_proto [17:08:33]json parsed OK: [17:08:33]protocol is kg_v1.0 [17:08:33]action value=close_receipt [17:08:33]process_action close_receipt [17:08:33]cmd_close_receipt [17:08:33]MH_GetDate [17:08:33]Write to MH i2c: F0 00 00 2E 29 46 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: F0 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: F0 09 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: F0 09 00 2E 29 00 14 05 77 66 BD 8F 7C 64 71 [17:08:33]GetLastDocTimeStamp 1719075952 [17:08:33]current date 1719076116 [17:08:33]FM_GetShiftState [17:08:33]SAM_PROTO_GetShiftState [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 13 01 00 [17:08:33]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0E 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 C7 [17:08:33]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:08:33]wFMCommunicate OK [17:08:33]SAM_PROTO_GetShiftState done [17:08:33]FM_GetShiftState done [17:08:33]opened in 1719016176 [17:08:33]opened+sec_in_day 1719102576 [17:08:33]quantity*price = 1400044 [17:08:33]sum+1 = 1400046 [17:08:33]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 СНО: Общий режим Чек 183 22.06.2024 17:08 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104450 ФПД: 15716976488457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170836&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104450&fm=15716976488457&tin=02508201610067®Number=0000000000092785&sum=1400000 [17:08:34]StoreToDocumentArchive [17:08:34]shift 356 fd 104450 [17:08:34]save to /storage/0356/doc_00104450 [17:08:34]save last doc name /storage/0356/doc_00104450 to /storage/kkm_last_doc_name [17:08:34]save OK [17:08:34]Clear old archive folders... [17:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:08:34]tlvbuf is B6D507F0 [17:08:34]SAM_PROTO_ClearQueue [17:08:34]wFMCommunicate request_size=4 [17:08:34]MH_SAM_APDU [17:08:34]CAPDU: 80 09 00 00 [17:08:34]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [17:08:34]Write i2c OK [17:08:34]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [17:08:35]RAPDU: 90 00 [17:08:35]wFMCommunicate OK [17:08:35]SAM_PROTO_ClearQueue done [17:08:35]KKMCreateOFDPacket [17:08:35]OFDProtocolAddRootSTLVToBuf [17:08:35]FM_MakeSignedData [17:08:35]FM_MakeSignedData [17:08:35]SAM_PROTO_SignData [17:08:35]wFMCommunicate request_size=4 [17:08:35]MH_SAM_APDU [17:08:35]CAPDU: 80 0D 01 02 [17:08:35]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [17:08:35]RAPDU: 90 00 [17:08:35]wFMCommunicate OK [17:08:35]wFMCommunicate request_size=255 [17:08:35]MH_SAM_APDU [17:08: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 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 B7 00 00 00 F4 03 04 00 14 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 [17:08:35]Write to MH i2c: E2 02 01 3E 29 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 B7 00 00 00 F4 03 04 00 14 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 00 00 F0 [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [17:08:35]RAPDU: 90 00 [17:08:35]wFMCommunicate OK [17:08:35]wFMCommunicate request_size=11 [17:08:35]MH_SAM_APDU [17:08:35]CAPDU: 80 0D 02 02 06 0E 4B 64 CC F0 09 [17:08:35]Write to MH i2c: E2 0E 00 3F 29 80 0D 02 02 06 00 0E 4B 64 CC F0 09 00 00 70 [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [17:08:35]RAPDU: 90 00 [17:08:35]wFMCommunicate OK [17:08:35]wFMCommunicate request_size=4 [17:08:35]MH_SAM_APDU [17:08:35]CAPDU: 80 0D 03 02 [17:08:35]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 0B 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 0B 00 40 29 00 51 79 86 81 09 78 B5 7C 90 00 68 [17:08:35]RAPDU: 51 79 86 81 09 78 B5 7C 90 00 [17:08:35]wFMCommunicate OK [17:08:35]SAM_PROTO_SignData done [17:08:35]FM_MakeSignedData done [17:08:35]CreateOFDProtocolMessage [17:08:35]wFMCommunicate request_size=4 [17:08:35]MH_SAM_APDU [17:08:35]CAPDU: 80 11 00 00 [17:08:35]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 17 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [17:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:08:35]wFMCommunicate OK [17:08:35]CreateOFDProtocolMessage done [17:08:35]OFDSenderStorePacket 104450 [17:08:35]StoreOFDPacket docnum=104450 [17:08: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 EF 50 08 01 6A 35 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 B7 00 00 00 F4 03 04 00 14 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 0E 4B 64 CC F0 09 51 79 86 81 09 78 B5 7C [17:08:35]CheckFolder [17:08:35]dirname=/storage/ofd_packets [17:08:35]CheckFolder done [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00104450 [17:08:35]NVStorageSaveData ofd_packets/00104450 [17:08:35]File name is /storage/ofd_packets/00104450 [17:08:35]Write 302 bytes [17:08:35]NVStorageSaveData done [17:08:35]OFDSenderStorePacket done [17:08:35]KKMCreateOFDPacket done [17:08:35]NVStorageSaveData kkm_last_timestamp [17:08:35]File name is /storage/kkm_last_timestamp [17:08:35]Write 4 bytes [17:08:35]NVStorageSaveData done [17:08:35]ExternCall_PrintAddStr [17:08:35]wPrintStart [17:08:35]Write to MH i2c: 01 00 00 42 29 6B [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: 01 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: 01 07 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [17:08:35]RasterBufferAndPrint [17:08:35]line Счет N : (1)674017 [17:08:35]line ИНН: 02508201610067 [17:08:35]line Контрольно-Кассовый Чек [17:08:35]line ПРОДАЖА [17:08:35]line ТРК (МРК, ГНК) : 21 [17:08:35]line Товар: 2710194210 [17:08:35]line ДТ(л)-К-5 [17:08:35]line 192.050 * 72.90 [17:08:35]line = 14000.45 [17:08:35]line НДС 12% НСП 1% [17:08:35]line > о реализуемом товаре [17:08:35]line ОКРУГЛЕНИЕ: -0.45 [17:08:35]line ИТОГО: 14000.00 [17:08:35]line Внесено: 14000.00 [17:08:35]line СДАЧА: 0.00 [17:08:35]line НСП 1% : 123.90 [17:08:35]line НДС 12% : 1486.77 [17:08:35]line Наличными: 14000.00 [17:08:35]line Безнал.: 0.00 [17:08:35]line Место: АЗС № 120 "Партнер Нефть" [17:08:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:08:35]line СНО: Общий режим [17:08:35]line Чек 183 22.06.2024 17:08 [17:08:35]line Смена: 356 ФФД: 1.0 [17:08:35]line ЗНМ: 0300000164 [17:08:35]line РНМ: 0000000000092785 [17:08:35]line Версия ККМ: 001 [17:08:35]line ФМ: 0000000000875093 [17:08:35]line ФД: 104450 [17:08:35]line ФПД: 15716976488457 [17:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170836&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104450&fm=15716976488457&tin=02508201610067®Number=0000000000092785&sum=1400000 [17:08:35]OFD Sender: Processing packet 104450 [packets to send 17, broken 16] [17:08:35]ProducePacketName [17:08:35]name=ofd_packets/00104450 [17:08:35]OFD Sender: To server: pG, [17:08:35]CommunicateWithHost lk.salyk.kg:30040 [17:08:35]ConnectInit lk.salyk.kg [17:08:35]written 0, free lines is 4095 [17:08:35]Connected sock=10 [17:08: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 EF 50 08 01 6A 35 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 B7 00 00 00 F4 03 04 00 14 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 0E 4B 64 CC F0 09 51 79 86 81 09 78 B5 7C [17:08: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 FF 6C 47 00 49 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 02 98 01 00 F4 03 04 00 92 AB 76 66 B6 04 01 00 00 A1 3D 8E 56 D7 44 35 DD [17:08:36]CommunicateWithHost err = 0 [17:08:36]CheckOFDResponse [17:08:36]1017 (14) - 77093643461234 [17:08:36]1041 (16) - 0000000000875093 [17:08:36]1040 (4) - 104450 [17:08:36]1012 (4) - 22.06.2024 10:46 [17:08:36]1206 (1) - 0 [17:08:36]OFD Sender: Remove packet 104450 [17:08:36]ProducePacketName [17:08:36]name=ofd_packets/00104450 [17:08:36]NVStorageDeleteData [17:08:36]Write to MH i2c: 01 00 00 6D 29 96 [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: 01 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: 01 07 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: 01 07 00 6D 29 00 00 00 00 00 E4 0C 8D [17:08:36]RasterBufferAndPrint [17:08:36]line [17:08:36]line [17:08:36]line [17:08:36]line [17:08:36]line [17:08:36]written 0, free lines is 3306 [17:08:36]MH_Cut [17:08:36]Write to MH i2c: D1 01 00 74 29 01 6F [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: D1 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: D1 01 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: D1 01 00 74 29 00 6E [17:08:36]Write to MH i2c: 01 00 00 75 29 9E [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]OFD Sender: No OFD packet to send [17:08:37]*** Cut start [17:08:37]*** Partial cut [17:08:37]*** CUTSNS_PIN = 1 [17:08:37]*** CUTSNS_PIN = 0 [17:08:37]*** Brake cut motor [17:08:37]Read from MH i2c: 01 [17:08:37]MH_I2C_Read... [17:08:37]*** Stop cut motor [17:08:37]*** Cut end [17:08:37]Read from MH i2c: 01 07 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: 01 07 00 75 29 00 00 00 00 00 FF 0F B3 [17:08:37]process_action close_receipt done [17:08:37]requested_data is exist [17:08:37]produce_requested_data [17:08:37]requested_item fm.sn is exist - process it [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 11 00 00 [17:08:37]Write to MH i2c: E2 08 00 76 29 80 11 00 00 00 00 00 00 19 [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 17 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 17 00 76 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [17:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:08:37]wFMCommunicate OK [17:08:37]requested_item fd.num is exist - process it [17:08:37]SAM_PROTO_GetFieldsCounters [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 13 00 00 [17:08:37]Write to MH i2c: E2 08 00 77 29 80 13 00 00 00 00 00 00 1C [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 62 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 62 00 77 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 68 [17:08: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 02 98 01 00 0E 04 04 00 64 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 [17:08:37]wFMCommunicate OK [17:08:37]SAM_PROTO_GetFieldsCounters done [17:08:37]requested_item shift.num is exist - process it [17:08:37]requested_item shift.opened is exist - process it [17:08:37]req_shift_opened [17:08:37]FM_GetShiftState [17:08:37]SAM_PROTO_GetShiftState [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 13 01 00 [17:08:37]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 0E 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 10 [17:08:37]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:08:37]wFMCommunicate OK [17:08:37]SAM_PROTO_GetShiftState done [17:08:37]FM_GetShiftState done [17:08:37]req_shift_opened done [17:08:37]requested_item shift.open_date is exist - process it [17:08:37]req_shift_open_date [17:08:37]req_shift_open_date done [17:08:37]produce_requested_data done [17:08:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104450,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:08:37]process_action_free close_receipt [17:08:37]json_value_free [17:08:37]json_value_free done [17:08:37]process_json_proto returns [17:08:37]Send response to host [17:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104450,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:08:37]free response buf [17:08:37]execute_script done [17:08:37]execute_script returns [17:08:37]free content buf [17:08:37]Sock 9.Close socket [17:08:37]Sock 9.Thread stoped [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]accept exits with 7 [17:09:01]New connection [17:09:01]New thread 3066449252 created [17:09:01]Thread 3066592612 joined [17:09:01]Waiting for new connection... [17:09:01] Sock 7.Parse request [17:09:01]Sock 7.Check first char [17:09:01]Sock 7.First char is OK [17:09:01]request: POST /json_proto HTTP/1.0 [17:09:01]Method: POST [17:09:01]URL: /json_proto [17:09:01]Method is POST - this is cgi request [17:09:01]url: /json_proto [17:09:01]query_string will be loaded in cgi processing [17:09:01]execute_cgi json_proto POST (null) [17:09:01]execute_cgi path=json_proto method=POST [17:09:01]POST find Content-Length [17:09:01]Host: 172.17.38.133:8080 [17:09:01]Content-Length: 682 [17:09:01]Content-Type: application/json [17:09:01] [17:09:01]POST finish read [17:09:01]Found Content-Length = 682 [17:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674021", "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" : 18.950, "sum" : 1400.41, "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" ] } } [17:09:01]execute_script... [17:09:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)674021", "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" : 18.950, "sum" : 1400.41, "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" ] } } [17:09:01]POST & json_proto [17:09:01]process_json_proto [17:09:01]json parsed OK: [17:09:01]protocol is kg_v1.0 [17:09:01]action value=close_receipt [17:09:01]process_action close_receipt [17:09:01]cmd_close_receipt [17:09:01]MH_GetDate [17:09:01]Write to MH i2c: F0 00 00 79 29 91 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 79 29 00 2F 05 77 66 BD 8F 7C 64 D7 [17:09:01]GetLastDocTimeStamp 1719076116 [17:09:01]current date 1719076143 [17:09:01]FM_GetShiftState [17:09:01]SAM_PROTO_GetShiftState [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 13 01 00 [17:09:01]Write to MH i2c: E2 08 00 7A 29 80 13 01 00 00 00 00 00 20 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:01]Read from MH i2c: E2 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 7A 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 12 [17:09:01]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:09:01]wFMCommunicate OK [17:09:01]SAM_PROTO_GetShiftState done [17:09:01]FM_GetShiftState done [17:09:01]opened in 1719016176 [17:09:01]opened+sec_in_day 1719102576 [17:09:01]quantity*price = 140040 [17:09:01]sum+1 = 140042 [17:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 184 22.06.2024 17:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104451 ФПД: 154783570952866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104451&fm=154783570952866&tin=02508201610067®Number=0000000000092785&sum=140000 [17:09:02]StoreToDocumentArchive [17:09:02]shift 356 fd 104451 [17:09:02]save to /storage/0356/doc_00104451 [17:09:02]save last doc name /storage/0356/doc_00104451 to /storage/kkm_last_doc_name [17:09:02]save OK [17:09:02]Clear old archive folders... [17:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:02]tlvbuf is 0100D280 [17:09:02]SAM_PROTO_ClearQueue [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 09 00 00 [17:09:02]Write to MH i2c: E2 08 00 87 29 80 09 00 00 00 00 00 00 22 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_ClearQueue done [17:09:02]KKMCreateOFDPacket [17:09:02]OFDProtocolAddRootSTLVToBuf [17:09:02]FM_MakeSignedData [17:09:02]FM_MakeSignedData [17:09:02]SAM_PROTO_SignData [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 01 02 [17:09:02]Write to MH i2c: E2 08 00 88 29 80 0D 01 02 00 00 00 00 2A [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=255 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 09 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 18 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 B8 00 00 00 F4 03 04 00 2F 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 8C [17:09:02]Write to MH i2c: E2 02 01 89 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 09 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 18 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 B8 00 00 00 F4 03 04 00 2F 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 8C 00 00 41 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=10 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 02 02 05 C6 5B C3 82 A2 [17:09:02]Write to MH i2c: E2 0D 00 8A 29 80 0D 02 02 05 00 C6 5B C3 82 A2 00 00 3F [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 8A 29 00 90 00 27 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 03 02 [17:09:02]Write to MH i2c: E2 08 00 8B 29 80 0D 03 02 00 00 00 00 2F [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 8B 29 00 13 45 AE BA 4D BD 10 13 90 00 1D [17:09:02]RAPDU: 13 45 AE BA 4D BD 10 13 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_SignData done [17:09:02]FM_MakeSignedData done [17:09:02]CreateOFDProtocolMessage [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 11 00 00 [17:09:02]Write to MH i2c: E2 08 00 8C 29 80 11 00 00 00 00 00 00 2F [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 8C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [17:09: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:09:02]wFMCommunicate OK [17:09:02]CreateOFDProtocolMessage done [17:09:02]OFDSenderStorePacket 104451 [17:09:02]StoreOFDPacket docnum=104451 [17:09: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 BA 0B 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 09 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 18 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 B8 00 00 00 F4 03 04 00 2F 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 8C C6 5B C3 82 A2 13 45 AE BA 4D BD 10 13 [17:09:02]CheckFolder [17:09:02]dirname=/storage/ofd_packets [17:09:02]CheckFolder done [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00104451 [17:09:02]NVStorageSaveData ofd_packets/00104451 [17:09:02]File name is /storage/ofd_packets/00104451 [17:09:02]Write 301 bytes [17:09:02]NVStorageSaveData done [17:09:02]OFDSenderStorePacket done [17:09:02]KKMCreateOFDPacket done [17:09:02]NVStorageSaveData kkm_last_timestamp [17:09:02]File name is /storage/kkm_last_timestamp [17:09:02]Write 4 bytes [17:09:02]NVStorageSaveData done [17:09:02]ExternCall_PrintAddStr [17:09:02]wPrintStart [17:09:02]Write to MH i2c: 01 00 00 8D 29 B6 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 8D 29 00 00 00 00 00 FF 0F CB [17:09:02]RasterBufferAndPrint [17:09:02]line Счет N : (1)674021 [17:09:02]line ИНН: 02508201610067 [17:09:02]line Контрольно-Кассовый Чек [17:09:02]line ПРОДАЖА [17:09:02]line ТРК (МРК, ГНК) : 41 [17:09:02]line Товар: 2710124500 [17:09:02]line Аи-95-К-5 [17:09:02]line 18.950 * 73.90 [17:09:02]line = 1400.41 [17:09:02]line НДС 12% НСП 1% [17:09:02]line > о реализуемом товаре [17:09:02]line ОКРУГЛЕНИЕ: -0.41 [17:09:02]line ИТОГО: 1400.00 [17:09:02]line Внесено: 1400.00 [17:09:02]line СДАЧА: 0.00 [17:09:02]line НСП 1% : 12.39 [17:09:02]line НДС 12% : 148.72 [17:09:02]line Наличными: 1400.00 [17:09:02]line Безнал.: 0.00 [17:09:02]line Место: АЗС № 120 "Партнер Нефть" [17:09:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:09:03]line СНО: Общий режим [17:09:03]line Чек 184 22.06.2024 17:09 [17:09:03]line Смена: 356 ФФД: 1.0 [17:09:03]line ЗНМ: 0300000164 [17:09:03]line РНМ: 0000000000092785 [17:09:03]line Версия ККМ: 001 [17:09:03]line ФМ: 0000000000875093 [17:09:03]line ФД: 104451 [17:09:03]line ФПД: 154783570952866 [17:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104451&fm=154783570952866&tin=02508201610067®Number=0000000000092785&sum=140000 [17:09:03]OFD Sender: Processing packet 104451 [packets to send 17, broken 16] [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00104451 [17:09:03]OFD Sender: To server: pG, [17:09:03]CommunicateWithHost lk.salyk.kg:30040 [17:09:03]ConnectInit lk.salyk.kg [17:09:03]written 0, free lines is 4095 [17:09:03]Connected sock=10 [17:09: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 BA 0B 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 09 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 18 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 B8 00 00 00 F4 03 04 00 2F 05 77 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 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 98 01 00 35 04 06 00 8C C6 5B C3 82 A2 13 45 AE BA 4D BD 10 13 [17:09: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 A9 55 47 00 CF 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 03 98 01 00 F4 03 04 00 AE AB 76 66 B6 04 01 00 00 34 A1 56 43 FE EA 5E 15 [17:09:03]CommunicateWithHost err = 0 [17:09:03]CheckOFDResponse [17:09:03]1017 (14) - 77093643461234 [17:09:03]1041 (16) - 0000000000875093 [17:09:03]1040 (4) - 104451 [17:09:03]1012 (4) - 22.06.2024 10:47 [17:09:03]1206 (1) - 0 [17:09:03]OFD Sender: Remove packet 104451 [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00104451 [17:09:03]NVStorageDeleteData [17:09:03]Write to MH i2c: 01 00 00 B8 29 E1 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 D9 0C CD [17:09:03]RasterBufferAndPrint [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]written 0, free lines is 3297 [17:09:03]MH_Cut [17:09:03]Write to MH i2c: D1 01 00 BF 29 01 BA [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 BF 29 00 B9 [17:09:03]Write to MH i2c: 01 00 00 C0 29 E9 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:04]OFD Sender: No OFD packet to send [17:09:04]*** Cut start [17:09:04]*** Partial cut [17:09:04]*** CUTSNS_PIN = 1 [17:09:04]*** CUTSNS_PIN = 0 [17:09:04]*** Brake cut motor [17:09:05]Read from MH i2c: 01 [17:09:05]MH_I2C_Read... [17:09:05]*** Stop cut motor [17:09:05]*** Cut end [17:09:05]Read from MH i2c: 01 07 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 FF 0F FE [17:09:05]process_action close_receipt done [17:09:05]requested_data is exist [17:09:05]produce_requested_data [17:09:05]requested_item fm.sn is exist - process it [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 11 00 00 [17:09:05]Write to MH i2c: E2 08 00 C1 29 80 11 00 00 00 00 00 00 64 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 C1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [17: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 [17:09:05]wFMCommunicate OK [17:09:05]requested_item fd.num is exist - process it [17:09:05]SAM_PROTO_GetFieldsCounters [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 00 00 [17:09:05]Write to MH i2c: E2 08 00 C2 29 80 13 00 00 00 00 00 00 67 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 C2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 B7 [17: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 03 98 01 00 0E 04 04 00 64 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 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetFieldsCounters done [17:09:05]requested_item shift.num is exist - process it [17:09:05]requested_item shift.opened is exist - process it [17:09:05]req_shift_opened [17:09:05]FM_GetShiftState [17:09:05]SAM_PROTO_GetShiftState [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 01 00 [17:09:05]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5B [17:09:05]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]req_shift_opened done [17:09:05]requested_item shift.open_date is exist - process it [17:09:05]req_shift_open_date [17:09:05]req_shift_open_date done [17:09:05]produce_requested_data done [17:09:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:09:05]process_action_free close_receipt [17:09:05]json_value_free [17:09:05]json_value_free done [17:09:05]process_json_proto returns [17:09:05]Send response to host [17:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:09:05]free response buf [17:09:05]execute_script done [17:09:05]execute_script returns [17:09:05]free content buf [17:09:05]Sock 7.Close socket [17:09:05]Sock 7.Thread stoped [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:02]accept exits with 9 [17:10:02]New connection [17:10:02]New thread 3066592612 created [17:10:02]Thread 3066449252 joined [17:10:02]Waiting for new connection... [17:10:02] Sock 9.Parse request [17:10:02]Sock 9.Check first char [17:10:02]Sock 9.First char is OK [17:10:02]request: POST /json_proto HTTP/1.0 [17:10:02]Method: POST [17:10:02]URL: /json_proto [17:10:02]Method is POST - this is cgi request [17:10:02]url: /json_proto [17:10:02]query_string will be loaded in cgi processing [17:10:02]execute_cgi json_proto POST (null) [17:10:02]execute_cgi path=json_proto method=POST [17:10:02]POST find Content-Length [17:10:02]Host: 172.17.38.133:8080 [17:10:02]Content-Length: 215 [17:10:02]Content-Type: application/json [17:10:02] [17:10:02]POST finish read [17:10:02]Found Content-Length = 215 [17:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:02]execute_script... [17:10:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:02]POST & json_proto [17:10:02]process_json_proto [17:10:02]json parsed OK: [17:10:02]protocol is kg_v1.0 [17:10:02]action value=get_value [17:10:02]process_action get_value [17:10:02]cmd_get_value [17:10:02]process_action get_value done [17:10:02]requested_data is exist [17:10:02]produce_requested_data [17:10:02]requested_item kkm.sn is exist - process it [17:10:02]requested_item kkm.ver is exist - process it [17:10:02]requested_item fm.sn is exist - process it [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 11 00 00 [17:10:02]Write to MH i2c: E2 08 00 C4 29 80 11 00 00 00 00 00 00 67 [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 17 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 17 00 C4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [17:10: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:10:02]wFMCommunicate OK [17:10:02]requested_item fd.num is exist - process it [17:10:02]SAM_PROTO_GetFieldsCounters [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 00 00 [17:10:02]Write to MH i2c: E2 08 00 C5 29 80 13 00 00 00 00 00 00 6A [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 62 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 62 00 C5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 BA [17:10: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 03 98 01 00 0E 04 04 00 64 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 [17:10:02]wFMCommunicate OK [17:10:02]SAM_PROTO_GetFieldsCounters done [17:10:02]requested_item shift.num is exist - process it [17:10:02]requested_item shift.opened is exist - process it [17:10:02]req_shift_opened [17:10:02]FM_GetShiftState [17:10:02]SAM_PROTO_GetShiftState [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 01 00 [17:10:02]Write to MH i2c: E2 08 00 C6 29 80 13 01 00 00 00 00 00 6C [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 0E 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 0E 00 C6 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 5E [17:10:02]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:10:02]wFMCommunicate OK [17:10:02]SAM_PROTO_GetShiftState done [17:10:02]FM_GetShiftState done [17:10:02]req_shift_opened done [17:10:02]requested_item shift.open_date is exist - process it [17:10:02]req_shift_open_date [17:10:02]req_shift_open_date done [17:10:02]produce_requested_data done [17:10:02]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:10:02]process_action_free get_value [17:10:02]json_value_free [17:10:02]json_value_free done [17:10:02]process_json_proto returns [17:10:02]Send response to host [17:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:10:02]free response buf [17:10:02]execute_script done [17:10:02]execute_script returns [17:10:02]free content buf [17:10:02]Sock 9.Close socket [17:10:02]Sock 9.Thread stoped [17:10:02]accept exits with 7 [17:10:02]New connection [17:10:02]New thread 3066449252 created [17:10:02]Thread 3066592612 joined [17:10:02]Waiting for new connection... [17:10:02] Sock 7.Parse request [17:10:02]Sock 7.Check first char [17:10:02]Sock 7.First char is OK [17:10:02]request: POST /json_proto HTTP/1.0 [17:10:02]Method: POST [17:10:02]URL: /json_proto [17:10:02]Method is POST - this is cgi request [17:10:02]url: /json_proto [17:10:02]query_string will be loaded in cgi processing [17:10:02]execute_cgi json_proto POST (null) [17:10:02]execute_cgi path=json_proto method=POST [17:10:02]POST find Content-Length [17:10:02]Host: 172.17.38.133:8080 [17:10:02]Content-Length: 331 [17:10:02]Content-Type: application/json [17:10:02] [17:10:02]POST finish read [17:10:02]Found Content-Length = 331 [17:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:02]execute_script... [17:10:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:02]POST & json_proto [17:10:02]process_json_proto [17:10:02]json parsed OK: [17:10:02]protocol is kg_v1.0 [17:10:02]action value=get_value [17:10:02]process_action get_value [17:10:02]cmd_get_value [17:10:02]process_action get_value done [17:10:02]requested_data is exist [17:10:02]produce_requested_data [17:10:02]requested_item fm.sale.total is exist - process it [17:10:02]SAM_PROTO_GetFMData [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 03 00 [17:10:02]Write to MH i2c: E2 08 00 C7 29 80 13 03 00 00 00 00 00 6F [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:03]Read from MH i2c: E2 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 C7 29 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 33 [17:10:03]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:10:03]wFMCommunicate OK [17:10:03]wFMCommunicate request_size=4 [17:10:03]MH_SAM_APDU [17:10:03]CAPDU: 80 17 00 00 [17:10:03]Write to MH i2c: E2 08 00 C8 29 80 17 00 00 00 00 00 00 71 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:03]Read from MH i2c: E2 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 C8 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 8D [17:10:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 [17:10:03]wFMCommunicate OK [17:10:03]wFMCommunicate request_size=4 [17:10:03]MH_SAM_APDU [17:10:03]CAPDU: 80 17 00 00 [17:10:03]Write to MH i2c: E2 08 00 C9 29 80 17 00 00 00 00 00 00 72 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:03]Read from MH i2c: E2 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 C9 29 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 84 [17:10:03]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 [17:10:03]wFMCommunicate OK [17:10:03]wFMCommunicate request_size=4 [17:10:03]MH_SAM_APDU [17:10:03]CAPDU: 80 17 00 00 [17:10:03]Write to MH i2c: E2 08 00 CA 29 80 17 00 00 00 00 00 00 73 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:03]Read from MH i2c: E2 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 [17:10:03]MH_I2C_Read... [17:10:03]Read from MH i2c: E2 FD 00 CA 29 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 FF [17:10:03]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 [17:10:03]wFMCommunicate OK [17:10:03]wFMCommunicate request_size=4 [17:10:03]MH_SAM_APDU [17:10:03]CAPDU: 80 17 00 00 [17:10:03]Write to MH i2c: E2 08 00 CB 29 80 17 00 00 00 00 00 00 74 [17:10:03]Write i2c OK [17:10:03]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 E2 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 E2 00 CB 29 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:10:04]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 [17:10:04]wFMCommunicate OK [17:10:04]SAM_PROTO_GetFMData done [17:10:04]requested_item fm.sale_refund.total is exist - process it [17:10:04]requested_item fm.buy.total is exist - process it [17:10:04]requested_item shift.sale.total is exist - process it [17:10:04]SAM_PROTO_GetShiftData [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 13 02 00 [17:10:04]Write to MH i2c: E2 08 00 CC 29 80 13 02 00 00 00 00 00 73 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]OFD Sender: No OFD packet to send [17:10:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 FD 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 FD 00 CC 29 00 BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 7C [17:10:04]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:04]wFMCommunicate OK [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 17 00 00 [17:10:04]Write to MH i2c: E2 08 00 CD 29 80 17 00 00 00 00 00 00 76 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:04]Read from MH i2c: E2 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 FD 00 [17:10:04]MH_I2C_Read... [17:10:04]Read from MH i2c: E2 FD 00 CD 29 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 AC [17:10:04]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:04]wFMCommunicate OK [17:10:04]wFMCommunicate request_size=4 [17:10:04]MH_SAM_APDU [17:10:04]CAPDU: 80 17 00 00 [17:10:04]Write to MH i2c: E2 08 00 CE 29 80 17 00 00 00 00 00 00 77 [17:10:04]Write i2c OK [17:10:04]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 FD 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 FD 00 CE 29 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 A3 [17:10:05]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [17:10:05]wFMCommunicate OK [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 17 00 00 [17:10:05]Write to MH i2c: E2 08 00 CF 29 80 17 00 00 00 00 00 00 78 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 FD 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 FD 00 CF 29 00 00 00 EF 03 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 90 00 ED [17:10:05]RAPDU: 00 00 EF 03 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 90 00 [17:10:05]wFMCommunicate OK [17:10:05]wFMCommunicate request_size=4 [17:10:05]MH_SAM_APDU [17:10:05]CAPDU: 80 17 00 00 [17:10:05]Write to MH i2c: E2 08 00 D0 29 80 17 00 00 00 00 00 00 79 [17:10:05]Write i2c OK [17:10:05]MH_I2C_Read... [17:10:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:05]Read from MH i2c: E2 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 D8 00 [17:10:05]MH_I2C_Read... [17:10:05]Read from MH i2c: E2 D8 00 D0 29 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [17:10:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:05]wFMCommunicate OK [17:10:05]SAM_PROTO_GetShiftData done [17:10:05]requested_item shift.sale.total_cash is exist - process it [17:10:05]requested_item shift.sale_refund.total is exist - process it [17:10:05]requested_item shift.sale_refund.total_cash is exist - process it [17:10:05]requested_item shift.buy.total is exist - process it [17:10:05]requested_item shift.buy.total_cash is exist - process it [17:10:05]produce_requested_data done [17:10:05]produce_requested_data return {"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:10:05]process_action_free get_value [17:10:05]json_value_free [17:10:05]json_value_free done [17:10:05]process_json_proto returns [17:10:05]Send response to host [17:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:10:05]free response buf [17:10:05]execute_script done [17:10:05]execute_script returns [17:10:05]free content buf [17:10:05]Sock 7.Close socket [17:10:05]Sock 7.Thread stoped [17:10:06]accept exits with 9 [17:10:06]New connection [17:10:06]New thread 3066592612 created [17:10:06]Thread 3066449252 joined [17:10:06]Waiting for new connection... [17:10:06] Sock 9.Parse request [17:10:06]Sock 9.Check first char [17:10:06]Sock 9.First char is OK [17:10:06]request: POST /json_proto HTTP/1.0 [17:10:06]Method: POST [17:10:06]URL: /json_proto [17:10:06]Method is POST - this is cgi request [17:10:06]url: /json_proto [17:10:06]query_string will be loaded in cgi processing [17:10:06]execute_cgi json_proto POST (null) [17:10:06]execute_cgi path=json_proto method=POST [17:10:06]POST find Content-Length [17:10:06]Host: 172.17.38.133:8080 [17:10:06]Content-Length: 331 [17:10:06]Content-Type: application/json [17:10:06] [17:10:06]POST finish read [17:10:06]Found Content-Length = 331 [17:10:06]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" ] } } [17:10:06]execute_script... [17:10:06]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" ] } } [17:10:06]POST & json_proto [17:10:06]process_json_proto [17:10:06]json parsed OK: [17:10:06]protocol is kg_v1.0 [17:10:06]action value=get_value [17:10:06]process_action get_value [17:10:06]cmd_get_value [17:10:06]process_action get_value done [17:10:06]requested_data is exist [17:10:06]produce_requested_data [17:10:06]requested_item fm.sale.total is exist - process it [17:10:06]SAM_PROTO_GetFMData [17:10:06]wFMCommunicate request_size=4 [17:10:06]MH_SAM_APDU [17:10:06]CAPDU: 80 13 03 00 [17:10:06]Write to MH i2c: E2 08 00 D1 29 80 13 03 00 00 00 00 00 79 [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:06]Read from MH i2c: E2 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 FD 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 FD 00 D1 29 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 3D [17:10:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:10:06]wFMCommunicate OK [17:10:06]wFMCommunicate request_size=4 [17:10:06]MH_SAM_APDU [17:10:06]CAPDU: 80 17 00 00 [17:10:06]Write to MH i2c: E2 08 00 D2 29 80 17 00 00 00 00 00 00 7B [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:06]Read from MH i2c: E2 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 FD 00 [17:10:06]MH_I2C_Read... [17:10:06]Read from MH i2c: E2 FD 00 D2 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 97 [17:10: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 39 F7 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 [17:10:06]wFMCommunicate OK [17:10:06]wFMCommunicate request_size=4 [17:10:06]MH_SAM_APDU [17:10:06]CAPDU: 80 17 00 00 [17:10:06]Write to MH i2c: E2 08 00 D3 29 80 17 00 00 00 00 00 00 7C [17:10:06]Write i2c OK [17:10:06]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 FD 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 FD 00 D3 29 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 8E [17:10: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 [17:10:07]wFMCommunicate OK [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 17 00 00 [17:10:07]Write to MH i2c: E2 08 00 D4 29 80 17 00 00 00 00 00 00 7D [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 FD 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 FD 00 D4 29 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 09 [17:10: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 [17:10:07]wFMCommunicate OK [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 17 00 00 [17:10:07]Write to MH i2c: E2 08 00 D5 29 80 17 00 00 00 00 00 00 7E [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:10:07]Read from MH i2c: E2 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 E2 00 [17:10:07]MH_I2C_Read... [17:10:07]Read from MH i2c: E2 E2 00 D5 29 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:10:07]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 [17:10:07]wFMCommunicate OK [17:10:07]SAM_PROTO_GetFMData done [17:10:07]requested_item fm.sale_refund.total is exist - process it [17:10:07]requested_item fm.buy.total is exist - process it [17:10:07]requested_item shift.sale.total is exist - process it [17:10:07]SAM_PROTO_GetShiftData [17:10:07]wFMCommunicate request_size=4 [17:10:07]MH_SAM_APDU [17:10:07]CAPDU: 80 13 02 00 [17:10:07]Write to MH i2c: E2 08 00 D6 29 80 13 02 00 00 00 00 00 7D [17:10:07]Write i2c OK [17:10:07]MH_I2C_Read... [17:10:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:08]Read from MH i2c: E2 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 FD 00 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 FD 00 D6 29 00 BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 86 [17:10:08]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:08]wFMCommunicate OK [17:10:08]wFMCommunicate request_size=4 [17:10:08]MH_SAM_APDU [17:10:08]CAPDU: 80 17 00 00 [17:10:08]Write to MH i2c: E2 08 00 D7 29 80 17 00 00 00 00 00 00 80 [17:10:08]Write i2c OK [17:10:08]MH_I2C_Read... [17:10:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:08]Read from MH i2c: E2 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 FD 00 [17:10:08]MH_I2C_Read... [17:10:08]Read from MH i2c: E2 FD 00 D7 29 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 B6 [17:10:08]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:08]wFMCommunicate OK [17:10:08]wFMCommunicate request_size=4 [17:10:08]MH_SAM_APDU [17:10:08]CAPDU: 80 17 00 00 [17:10:08]Write to MH i2c: E2 08 00 D8 29 80 17 00 00 00 00 00 00 81 [17:10:08]Write i2c OK [17:10:08]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 FD 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 FD 00 D8 29 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 AD [17:10:09]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 OFD Sender: No OFD packet to send [17:10:09]00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [17:10:09]wFMCommunicate OK [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 17 00 00 [17:10:09]Write to MH i2c: E2 08 00 D9 29 80 17 00 00 00 00 00 00 82 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 FD 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 FD 00 D9 29 00 00 00 EF 03 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 90 00 F7 [17:10:09]RAPDU: 00 00 EF 03 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 90 00 [17:10:09]wFMCommunicate OK [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 17 00 00 [17:10:09]Write to MH i2c: E2 08 00 DA 29 80 17 00 00 00 00 00 00 83 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 D8 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 D8 00 DA 29 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:10:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_GetShiftData done [17:10:10]requested_item shift.sale.total_cash is exist - process it [17:10:10]requested_item shift.sale_refund.total is exist - process it [17:10:10]requested_item shift.sale_refund.total_cash is exist - process it [17:10:10]requested_item shift.buy.total is exist - process it [17:10:10]requested_item shift.buy.total_cash is exist - process it [17:10:10]produce_requested_data done [17:10:10]produce_requested_data return {"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:10:10]process_action_free get_value [17:10:10]json_value_free [17:10:10]json_value_free done [17:10:10]process_json_proto returns [17:10:10]Send response to host [17:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:10:10]free response buf [17:10:10]execute_script done [17:10:10]execute_script returns [17:10:10]free content buf [17:10:10]Sock 9.Close socket [17:10:10]Sock 9.Thread stoped [17:10:10]accept exits with 7 [17:10:10]New connection [17:10:10]New thread 3066449252 created [17:10:10]Thread 3066592612 joined [17:10:10]Waiting for new connection... [17:10:10] Sock 7.Parse request [17:10:10]Sock 7.Check first char [17:10:10]Sock 7.First char is OK [17:10:10]request: POST /json_proto HTTP/1.0 [17:10:10]Method: POST [17:10:10]URL: /json_proto [17:10:10]Method is POST - this is cgi request [17:10:10]url: /json_proto [17:10:10]query_string will be loaded in cgi processing [17:10:10]execute_cgi json_proto POST (null) [17:10:10]execute_cgi path=json_proto method=POST [17:10:10]POST find Content-Length [17:10:10]Host: 172.17.38.133:8080 [17:10:10]Content-Length: 269 [17:10:10]Content-Type: application/json [17:10:10] [17:10:10]POST finish read [17:10:10]Found Content-Length = 269 [17:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:10]execute_script... [17:10:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:10]POST & json_proto [17:10:10]process_json_proto [17:10:10]json parsed OK: [17:10:10]protocol is kg_v1.0 [17:10:10]action value=x_report [17:10:10]process_action x_report [17:10:10]cmd_x_report [17:10:10]MH_GetDate [17:10:10]Write to MH i2c: F0 00 00 DB 29 F3 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 DB 29 00 74 05 77 66 BD 8F 7C 64 7E [17:10:10]GetLastDocTimeStamp 1719076143 [17:10:10]current date 1719076212 [17:10:10]FM_GetShiftState [17:10:10]SAM_PROTO_GetShiftState [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 13 01 00 [17:10:10]Write to MH i2c: E2 08 00 DC 29 80 13 01 00 00 00 00 00 82 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0E 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0E 00 DC 29 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 74 [17:10:10]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_GetShiftState done [17:10:10]FM_GetShiftState done [17:10:10]KKMCreateXReportDocument [17:10:10]Load OK [17:10:10]Malloc new data [17:10:10]MH_GetDate [17:10:10]Write to MH i2c: F0 00 00 DD 29 F5 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 DD 29 00 74 05 77 66 BD 8F 7C 64 80 [17:10:10]Malloc new data [17:10:10]Malloc new data [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 11 00 00 [17:10:10]Write to MH i2c: E2 08 00 DE 29 80 11 00 00 00 00 00 00 81 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 17 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 17 00 DE 29 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:10:10]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:10]wFMCommunicate OK [17:10:10]SAM_PROTO_GetFieldsCounters [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 13 00 00 [17:10:10]Write to MH i2c: E2 08 00 DF 29 80 13 00 00 00 00 00 00 84 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 62 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 62 00 DF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 D4 [17:10: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 03 98 01 00 0E 04 04 00 64 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 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_GetFieldsCounters done [17:10:10]Malloc new data [17:10:10]Malloc new data [17:10:10]Malloc new data [17:10:10]KKMCreateXReportDocument OK [17:10:10]KKMSetXReportData OK [17:10:10]KKMPrepareXReportFMData [17:10:10]SAM_PROTO_GetShiftData [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 13 02 00 [17:10:10]Write to MH i2c: E2 08 00 E0 29 80 13 02 00 00 00 00 00 87 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:11]Read from MH i2c: E2 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 FD 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 FD 00 E0 29 00 BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 90 [17:10:11]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:11]wFMCommunicate OK [17:10:11]wFMCommunicate request_size=4 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 17 00 00 [17:10:11]Write to MH i2c: E2 08 00 E1 29 80 17 00 00 00 00 00 00 8A [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:11]Read from MH i2c: E2 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 FD 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 FD 00 E1 29 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 C0 [17:10:11]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:11]wFMCommunicate OK [17:10:11]wFMCommunicate request_size=4 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 17 00 00 [17:10:11]Write to MH i2c: E2 08 00 E2 29 80 17 00 00 00 00 00 00 8B [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 FD 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 FD 00 E2 29 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 B7 [17:10:12]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 17 00 00 [17:10:12]Write to MH i2c: E2 08 00 E3 29 80 17 00 00 00 00 00 00 8C [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 FD 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 FD 00 E3 29 00 00 00 EF 03 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 90 00 01 [17:10:12]RAPDU: 00 00 EF 03 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 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 17 00 00 [17:10:12]Write to MH i2c: E2 08 00 E4 29 80 17 00 00 00 00 00 00 8D [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 D8 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 D8 00 E4 29 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 74 [17:10:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:13]wFMCommunicate OK [17:10:13]SAM_PROTO_GetShiftData done [17:10:13]1194 (1207) - счетчики итогов смены [17:10:13] 1134 (4) - 184 - количество чеков со всеми признаками расчетов [17:10:13] 1129 (158) - счетчики операций «приход» [17:10:13] 1135 (4) - 182 - количество чеков по признаку расчетов [17:10:13] 1201 (4) - 379567.47 - общая итоговая сумма в чеках [17:10:13] 1136 (4) - 232183.00 - итоговая сумма в чеках наличными [17:10:13] 1138 (3) - 147384.47 - итоговая сумма в чеках безналичными [17:10:13] 1024 (123) - суммы налогов [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 0% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1006 (12) - суммы НДС [17:10:13] 1010 (1) - 12% - код ставки НДС [17:10:13] 1011 (3) - 40314.06 - сумма НДС по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (12) - суммы НСП [17:10:13] 1014 (1) - 1% - код ставки НСП [17:10:13] 1015 (3) - 3359.24 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 2% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 3% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 5% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1130 (151) - счетчики операций «возврат прихода» [17:10:13] 1135 (4) - 2 - количество чеков по признаку расчетов [17:10:13] 1201 (3) - 3328.00 - общая итоговая сумма в чеках [17:10:13] 1136 (3) - 3328.00 - итоговая сумма в чеках наличными [17:10:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:13] 1024 (121) - суммы налогов [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 0% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1006 (11) - суммы НДС [17:10:13] 1010 (1) - 12% - код ставки НДС [17:10:13] 1011 (2) - 353.46 - сумма НДС по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (11) - суммы НСП [17:10:13] 1014 (1) - 1% - код ставки НСП [17:10:13] 1015 (2) - 29.45 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 2% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 3% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 5% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1131 (141) - счетчики операций «расход» [17:10:13] 1135 (4) - 0 - количество чеков по признаку расчетов [17:10:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:10:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:10:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:13] 1024 (117) - суммы налогов [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 0% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 12% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 2% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 3% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 5% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1132 (141) - счетчики операций «возврат расхода» [17:10:13] 1135 (4) - 0 - количество чеков по признаку расчетов [17:10:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:10:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:10:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:13] 1024 (117) - суммы налогов [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 0% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1006 (9) - суммы НДС [17:10:13] 1010 (1) - 12% - код ставки НДС [17:10:13] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 2% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 3% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 5% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 0,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1007 (9) - суммы НСП [17:10:13] 1014 (1) - 1,50% - код ставки НСП [17:10:13] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:13] 1133 (588) - - счетчики коррекции - не используются [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1194 (04AA) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1134 (046E) [17:10:13]Malloc new data [17:10:13]Processing tag 1129 (0469) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1135 (046F) [17:10:13]Malloc new data [17:10:13]Processing tag 1201 (04B1) [17:10:13]Malloc new data [17:10:13]Processing tag 1136 (0470) [17:10:13]Malloc new data [17:10:13]Processing tag 1138 (0472) [17:10:13]Malloc new data [17:10:13]Processing tag 1024 (0400) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]SetTLVBufToDocument err=0 [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1130 (046A) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1135 (046F) [17:10:13]Malloc new data [17:10:13]Processing tag 1201 (04B1) [17:10:13]Malloc new data [17:10:13]Processing tag 1136 (0470) [17:10:13]Malloc new data [17:10:13]Processing tag 1138 (0472) [17:10:13]Malloc new data [17:10:13]Processing tag 1024 (0400) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]SetTLVBufToDocument err=0 [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1131 (046B) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1135 (046F) [17:10:13]Malloc new data [17:10:13]Processing tag 1201 (04B1) [17:10:13]Malloc new data [17:10:13]Processing tag 1136 (0470) [17:10:13]Malloc new data [17:10:13]Processing tag 1138 (0472) [17:10:13]Malloc new data [17:10:13]Processing tag 1024 (0400) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1006 (03EE) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1010 (03F2) [17:10:13]Malloc new data [17:10:13]Processing tag 1011 (03F3) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:13]Load OK [17:10:13]SetTLVBufToDocument [17:10:13]Processing tag 1014 (03F6) [17:10:13]Malloc new data [17:10:13]Processing tag 1015 (03F7) [17:10:13]Malloc new data [17:10:13]SetTLVBufToDocument err=0 [17:10:13]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]SetTLVBufToDocument err=0 [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1132 (046C) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1135 (046F) [17:10:14]Malloc new data [17:10:14]Processing tag 1201 (04B1) [17:10:14]Malloc new data [17:10:14]Processing tag 1136 (0470) [17:10:14]Malloc new data [17:10:14]Processing tag 1138 (0472) [17:10:14]Malloc new data [17:10:14]Processing tag 1024 (0400) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1006 (03EE) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1010 (03F2) [17:10:14]Malloc new data [17:10:14]Processing tag 1011 (03F3) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1006 (03EE) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1010 (03F2) [17:10:14]Malloc new data [17:10:14]Processing tag 1011 (03F3) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1007 (03EF) [17:10:14]Load OK [17:10:14]SetTLVBufToDocument [17:10:14]Processing tag 1014 (03F6) [17:10:14]Malloc new data [17:10:14]Processing tag 1015 (03F7) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]SetTLVBufToDocument err=0 [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Processing tag 1133 (046D) [17:10:14]Malloc new data [17:10:14]SetTLVBufToDocument err=0 [17:10:14]SetTLVBufToDocument err=0 [17:10:14]Malloc new data [17:10:14]SAM_PROTO_GetFMData [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 03 00 [17:10:14]Write to MH i2c: E2 08 00 E5 29 80 13 03 00 00 00 00 00 8D [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]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 E5 29 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 51 [17:10:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:10:14]wFMCommunicate OK [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 17 00 00 [17:10:14]Write to MH i2c: E2 08 00 E6 29 80 17 00 00 00 00 00 00 8F [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 E6 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 AB [17:10:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 17 00 00 [17:10:15]Write to MH i2c: E2 08 00 E7 29 80 17 00 00 00 00 00 00 90 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 E7 29 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 A2 [17:10:15]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 [17:10:16]wFMCommunicate OK [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 17 00 00 [17:10:16]Write to MH i2c: E2 08 00 E8 29 80 17 00 00 00 00 00 00 91 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 FD 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 FD 00 E8 29 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 1D [17:10:16]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 [17:10:16]wFMCommunicate OK [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 17 00 00 [17:10:16]Write to MH i2c: E2 08 00 E9 29 80 17 00 00 00 00 00 00 92 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 E2 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 E2 00 E9 29 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 70 [17:10:16]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 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetFMData done [17:10:17]FM_GetFMData:85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 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 39 F7 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 [17:10:18]oper:6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 [17:10:18]total:36 85 75 43 04 [17:10:18]Malloc new data [17:10:18]oper:6F 04 04 00 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 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 39 F7 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 [17:10:18]total:F4 D8 42 18 [17:10:18]Malloc new data [17:10:18]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 [17:10:18]total: [17:10:18]Malloc new data [17:10:18]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 [17:10:18]total: [17:10:18]Malloc new data [17:10:18]KKMPrepareXReportFMData err=0 [17:10:18]Х отчет ИНН: 02508201610067 Кассир: Байбугуева Г. 22.06.2024 17:10 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 184 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 379567.47 Итого наличными: 232183.00 Итого безнал.: 147384.47 НДС 0% : 0.00 НДС 12% : 40314.06 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3359.24 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 3328.00 Итого наличными: 3328.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 353.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 29.45 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 228855.00 НС Приход: 183116444.70 НС Возвр.Прихода: 4070341.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [17:10:18]StoreToDocumentArchive [17:10:18]MH_GetDate [17:10:18]Write to MH i2c: F0 00 00 EA 29 02 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: F0 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: F0 09 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: F0 09 00 EA 29 00 7C 05 77 66 BD 8F 7C 64 95 [17:10:18]shift 266 fd 1719076220 [17:10:18]Create dir for shift 0266 [17:10:18]save to /storage/0266/doc_1719076220 [17:10:18]save last doc name /storage/0266/doc_1719076220 to /storage/kkm_last_doc_name [17:10:18]save OK [17:10:18]Clear old archive folders... [17:10:18]NVStorageSaveData kkm_last_timestamp [17:10:18]File name is /storage/kkm_last_timestamp [17:10:18]Write 4 bytes [17:10:18]NVStorageSaveData done [17:10:18]ExternCall_PrintAddStr [17:10:18]wPrintStart [17:10:18]Write to MH i2c: 01 00 00 EB 29 14 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [17:10:18]RasterBufferAndPrint [17:10:18]line Х отчет [17:10:18]line ИНН: 02508201610067 [17:10:18]line Кассир: Байбугуева Г. [17:10:18]line 22.06.2024 17:10 [17:10:18]line Смена: 266 [17:10:18]line РНМ: 0000000000092785 [17:10:18]line ЗНМ: 0300000164 [17:10:18]line СНО: Общий режим [17:10:18]line Всего чеков: 184 [17:10:18]line ИТОГИ ПРИХОД [17:10:18]line Чеков: 182 [17:10:18]line Общий итог: 379567.47 [17:10:18]line Итого наличными: 232183.00 [17:10:18]line Итого безнал.: 147384.47 [17:10:18]line НДС 0% : 0.00 [17:10:18]line НДС 12% : 40314.06 [17:10:18]line НСП 0% : 0.00 [17:10:18]line НСП 1,50% : 0.00 [17:10:18]line НСП 0,50% : 0.00 [17:10:18]line НСП 5% : 0.00 [17:10:18]line НСП 3% : 0.00 [17:10:18]line НСП 2% : 0.00 [17:10:18]line НСП 1% : 3359.24 [17:10:18]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:10:18]line Чеков: 2 [17:10:18]line Общий итог: 3328.00 [17:10:18]line Итого наличными: 3328.00 [17:10:18]line Итого безнал.: 0.00 [17:10:18]line НДС 0% : 0.00 [17:10:18]line НДС 12% : 353.46 [17:10:18]line НСП 0% : 0.00 [17:10:18]line НСП 1,50% : 0.00 [17:10:18]line НСП 0,50% : 0.00 [17:10:18]line НСП 5% : 0.00 [17:10:18]line НСП 3% : 0.00 [17:10:18]line НСП 2% : 0.00 [17:10:18]line НСП 1% : 29.45 [17:10:18]line ИТОГИ РАСХОД [17:10:18]line Чеков: 0 [17:10:18]line Общий итог: 0.00 [17:10:18]line Итого наличными: 0.00 [17:10:18]line Итого безнал.: 0.00 [17:10:18]line НДС 0% : 0.00 [17:10:18]line НДС 12% : 0.00 [17:10:18]line НСП 0% : 0.00 [17:10:18]line НСП 1,50% : 0.00 [17:10:18]line НСП 0,50% : 0.00 [17:10:18]line НСП 5% : 0.00 [17:10:18]line НСП 3% : 0.00 [17:10:18]line НСП 2% : 0.00 [17:10:18]line НСП 1% : 0.00 [17:10:18]line ИТОГИ ВОЗВРАТ РАСХОДА [17:10:18]line Чеков: 0 [17:10:18]line Общий итог: 0.00 [17:10:18]line Итого наличными: 0.00 [17:10:18]line Итого безнал.: 0.00 [17:10:18]line НДС 0% : 0.00 [17:10:18]line НДС 12% : 0.00 [17:10:18]line НСП 0% : 0.00 [17:10:18]line НСП 1,50% : 0.00 [17:10:18]line НСП 0,50% : 0.00 [17:10:18]line НСП 5% : 0.00 [17:10:18]line НСП 3% : 0.00 [17:10:18]line НСП 2% : 0.00 [17:10:18]line НСП 1% : 0.00 [17:10:18]line Сумма внесений: 0.00 [17:10:18]line Сумма выплат: 0.00 [17:10:18]line Нал. в кассе: 228855.00 [17:10:18]line НС Приход: 183116444.70 [17:10:18]line НС Возвр.Прихода: 4070341.00 [17:10:18]line НС Расход: 0.00 [17:10:18]line НС Возвр.Расхода: 0.00 [17:10:18]line ФМ: 0000000000875093 [17:10:18]written 0, free lines is 4095 [17:10:19]Write to MH i2c: 01 00 00 36 2A 60 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 36 2A 00 00 00 00 00 C8 0A 39 [17:10:19]RasterBufferAndPrint [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]line [17:10:19]written 0, free lines is 2798 [17:10:19]MH_Cut [17:10:19]Write to MH i2c: D1 01 00 3D 2A 01 39 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 01 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: D1 01 00 3D 2A 00 38 [17:10:19]Write to MH i2c: 01 00 00 3E 2A 68 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]OFD Sender: No OFD packet to send [17:10:20]*** Cut start [17:10:20]*** Partial cut [17:10:20]*** CUTSNS_PIN = 1 [17:10:20]*** CUTSNS_PIN = 0 [17:10:20]*** Brake cut motor [17:10:20]Read from MH i2c: 01 [17:10:20]MH_I2C_Read... [17:10:20]*** Stop cut motor [17:10:20]*** Cut end [17:10:20]Read from MH i2c: 01 07 00 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: 01 07 00 3E 2A 00 00 00 00 00 FF 0F 7D [17:10:20]process_action x_report done [17:10:20]requested_data is exist [17:10:20]produce_requested_data [17:10:20]requested_item fd.num is exist - process it [17:10:20]SAM_PROTO_GetFieldsCounters [17:10:20]wFMCommunicate request_size=4 [17:10:20]MH_SAM_APDU [17:10:20]CAPDU: 80 13 00 00 [17:10:20]Write to MH i2c: E2 08 00 3F 2A 80 13 00 00 00 00 00 00 E5 [17:10:20]Write i2c OK [17:10:20]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 3F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 35 [17:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetFieldsCounters done [17:10:21]requested_item shift.num is exist - process it [17:10:21]requested_item shift.opened is exist - process it [17:10:21]req_shift_opened [17:10:21]FM_GetShiftState [17:10:21]SAM_PROTO_GetShiftState [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 13 01 00 [17:10:21]Write to MH i2c: E2 08 00 40 2A 80 13 01 00 00 00 00 00 E7 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 40 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 D9 [17:10:21]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetShiftState done [17:10:21]FM_GetShiftState done [17:10:21]req_shift_opened done [17:10:21]requested_item shift.open_date is exist - process it [17:10:21]req_shift_open_date [17:10:21]req_shift_open_date done [17:10:21]produce_requested_data done [17:10:21]produce_requested_data return {"fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:10:21]process_action_free x_report [17:10:21]json_value_free [17:10:21]json_value_free done [17:10:21]process_json_proto returns [17:10:21]Send response to host [17:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:10:21]free response buf [17:10:21]execute_script done [17:10:21]execute_script returns [17:10:21]free content buf [17:10:21]Sock 7.Close socket [17:10:21]Sock 7.Thread stoped [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:43]accept exits with 9 [17:10:43]New connection [17:10:43]New thread 3066592612 created [17:10:43]Thread 3066449252 joined [17:10:43]Waiting for new connection... [17:10:43] Sock 9.Parse request [17:10:43]Sock 9.Check first char [17:10:43]Sock 9.First char is OK [17:10:43]request: POST /json_proto HTTP/1.0 [17:10:43]Method: POST [17:10:43]URL: /json_proto [17:10:43]Method is POST - this is cgi request [17:10:43]url: /json_proto [17:10:43]query_string will be loaded in cgi processing [17:10:43]execute_cgi json_proto POST (null) [17:10:43]execute_cgi path=json_proto method=POST [17:10:43]POST find Content-Length [17:10:43]Host: 172.17.38.133:8080 [17:10:43]Content-Length: 215 [17:10:43]Content-Type: application/json [17:10:43] [17:10:43]POST finish read [17:10:43]Found Content-Length = 215 [17:10:43]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" ] } } [17:10:43]execute_script... [17:10:43]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" ] } } [17:10:43]POST & json_proto [17:10:43]process_json_proto [17:10:43]json parsed OK: [17:10:43]protocol is kg_v1.0 [17:10:43]action value=get_value [17:10:43]process_action get_value [17:10:43]cmd_get_value [17:10:43]process_action get_value done [17:10:43]requested_data is exist [17:10:43]produce_requested_data [17:10:43]requested_item kkm.sn is exist - process it [17:10:43]requested_item kkm.ver is exist - process it [17:10:43]requested_item fm.sn is exist - process it [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 11 00 00 [17:10:43]Write to MH i2c: E2 08 00 41 2A 80 11 00 00 00 00 00 00 E5 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 41 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [17:10: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:10:44]wFMCommunicate OK [17:10:44]requested_item fd.num is exist - process it [17:10:44]SAM_PROTO_GetFieldsCounters [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 00 00 [17:10:44]Write to MH i2c: E2 08 00 42 2A 80 13 00 00 00 00 00 00 E8 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 62 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 62 00 42 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 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 38 [17:10: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 03 98 01 00 0E 04 04 00 64 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 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_GetFieldsCounters done [17:10:44]requested_item shift.num is exist - process it [17:10:44]requested_item shift.opened is exist - process it [17:10:44]req_shift_opened [17:10:44]FM_GetShiftState [17:10:44]SAM_PROTO_GetShiftState [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 01 00 [17:10:44]Write to MH i2c: E2 08 00 43 2A 80 13 01 00 00 00 00 00 EA [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 43 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 DC [17:10:44]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_GetShiftState done [17:10:44]FM_GetShiftState done [17:10:44]req_shift_opened done [17:10:44]requested_item shift.open_date is exist - process it [17:10:44]req_shift_open_date [17:10:44]req_shift_open_date done [17:10:44]produce_requested_data done [17:10:44]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176} [17:10:44]process_action_free get_value [17:10:44]json_value_free [17:10:44]json_value_free done [17:10:44]process_json_proto returns [17:10:44]Send response to host [17:10:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104451,"shift.num":356,"shift.opened":1,"shift.open_date":1719016176}}} [17:10:44]free response buf [17:10:44]execute_script done [17:10:44]execute_script returns [17:10:44]free content buf [17:10:44]Sock 9.Close socket [17:10:44]Sock 9.Thread stoped [17:10:44]accept exits with 7 [17:10:44]New connection [17:10:44]New thread 3066449252 created [17:10:44]Thread 3066592612 joined [17:10:44]Waiting for new connection... [17:10:44] Sock 7.Parse request [17:10:44]Sock 7.Check first char [17:10:44]Sock 7.First char is OK [17:10:44]request: POST /json_proto HTTP/1.0 [17:10:44]Method: POST [17:10:44]URL: /json_proto [17:10:44]Method is POST - this is cgi request [17:10:44]url: /json_proto [17:10:44]query_string will be loaded in cgi processing [17:10:44]execute_cgi json_proto POST (null) [17:10:44]execute_cgi path=json_proto method=POST [17:10:44]POST find Content-Length [17:10:44]Host: 172.17.38.133:8080 [17:10:44]Content-Length: 331 [17:10:44]Content-Type: application/json [17:10:44] [17:10:44]POST finish read [17:10:44]Found Content-Length = 331 [17:10: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" ] } } [17:10:44]execute_script... [17:10: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" ] } } [17:10:44]POST & json_proto [17:10:44]process_json_proto [17:10:44]json parsed OK: [17:10:44]protocol is kg_v1.0 [17:10:44]action value=get_value [17:10:44]process_action get_value [17:10:44]cmd_get_value [17:10:44]process_action get_value done [17:10:44]requested_data is exist [17:10:44]produce_requested_data [17:10:44]requested_item fm.sale.total is exist - process it [17:10:44]SAM_PROTO_GetFMData [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 03 00 [17:10:44]Write to MH i2c: E2 08 00 44 2A 80 13 03 00 00 00 00 00 ED [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]OFD Sender: No OFD packet to send [17:10:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 FD 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 FD 00 44 2A 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 B1 [17:10:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 17 00 00 [17:10:44]Write to MH i2c: E2 08 00 45 2A 80 17 00 00 00 00 00 00 EF [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 45 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 0B [17:10: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 39 F7 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 [17:10:45]wFMCommunicate OK [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 17 00 00 [17:10:45]Write to MH i2c: E2 08 00 46 2A 80 17 00 00 00 00 00 00 F0 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 46 2A 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 02 [17:10: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 [17:10:45]wFMCommunicate OK [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 17 00 00 [17:10:45]Write to MH i2c: E2 08 00 47 2A 80 17 00 00 00 00 00 00 F1 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 FD 00 47 2A 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 7D [17:10: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 [17:10:46]wFMCommunicate OK [17:10:46]wFMCommunicate request_size=4 [17:10:46]MH_SAM_APDU [17:10:46]CAPDU: 80 17 00 00 [17:10:46]Write to MH i2c: E2 08 00 48 2A 80 17 00 00 00 00 00 00 F2 [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:10:46]Read from MH i2c: E2 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: E2 E2 00 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: E2 E2 00 48 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [17:10: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 [17:10:46]wFMCommunicate OK [17:10:46]SAM_PROTO_GetFMData done [17:10:46]requested_item fm.sale_refund.total is exist - process it [17:10:46]requested_item fm.buy.total is exist - process it [17:10:46]requested_item shift.sale.total is exist - process it [17:10:46]SAM_PROTO_GetShiftData [17:10:46]wFMCommunicate request_size=4 [17:10:46]MH_SAM_APDU [17:10:46]CAPDU: 80 13 02 00 [17:10:46]Write to MH i2c: E2 08 00 49 2A 80 13 02 00 00 00 00 00 F1 [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:47]Read from MH i2c: E2 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 49 2A 00 BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 FA [17:10:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:47]wFMCommunicate OK [17:10:47]wFMCommunicate request_size=4 [17:10:47]MH_SAM_APDU [17:10:47]CAPDU: 80 17 00 00 [17:10:47]Write to MH i2c: E2 08 00 4A 2A 80 17 00 00 00 00 00 00 F4 [17:10:47]Write i2c OK [17:10:47]MH_I2C_Read... [17:10:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:47]Read from MH i2c: E2 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 4A 2A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 2A [17:10:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:47]wFMCommunicate OK [17:10:47]wFMCommunicate request_size=4 [17:10:47]MH_SAM_APDU [17:10:47]CAPDU: 80 17 00 00 [17:10:47]Write to MH i2c: E2 08 00 4B 2A 80 17 00 00 00 00 00 00 F5 [17:10:47]Write i2c OK [17:10:47]MH_I2C_Read... [17:10:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:47]Read from MH i2c: E2 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 FD 00 4B 2A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 21 [17:10:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 17 00 00 [17:10:48]Write to MH i2c: E2 08 00 4C 2A 80 17 00 00 00 00 00 00 F6 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 FD 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 FD 00 4C 2A 00 00 00 EF 03 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 90 00 6B [17:10:48]RAPDU: 00 00 EF 03 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 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 17 00 00 [17:10:48]Write to MH i2c: E2 08 00 4D 2A 80 17 00 00 00 00 00 00 F7 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 D8 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 D8 00 4D 2A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [17:10:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:49]wFMCommunicate OK [17:10:49]SAM_PROTO_GetShiftData done [17:10:49]requested_item shift.sale.total_cash is exist - process it [17:10:49]requested_item shift.sale_refund.total is exist - process it [17:10:49]requested_item shift.sale_refund.total_cash is exist - process it [17:10:49]requested_item shift.buy.total is exist - process it [17:10:49]requested_item shift.buy.total_cash is exist - process it [17:10:49]produce_requested_data done [17:10:49]produce_requested_data return {"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:10:49]process_action_free get_value [17:10:49]json_value_free [17:10:49]json_value_free done [17:10:49]process_json_proto returns [17:10:49]Send response to host [17:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:10:49]free response buf [17:10:49]execute_script done [17:10:49]execute_script returns [17:10:49]free content buf [17:10:49]Sock 7.Close socket [17:10:49]Sock 7.Thread stoped [17:10:49]accept exits with 9 [17:10:49]New connection [17:10:49]New thread 3066592612 created [17:10:49]Thread 3066449252 joined [17:10:49]Waiting for new connection... [17:10:49] Sock 9.Parse request [17:10:49]Sock 9.Check first char [17:10:49]Sock 9.First char is OK [17:10:49]request: POST /json_proto HTTP/1.0 [17:10:49]Method: POST [17:10:49]URL: /json_proto [17:10:49]Method is POST - this is cgi request [17:10:49]url: /json_proto [17:10:49]query_string will be loaded in cgi processing [17:10:49]execute_cgi json_proto POST (null) [17:10:49]execute_cgi path=json_proto method=POST [17:10:49]POST find Content-Length [17:10:49]Host: 172.17.38.133:8080 [17:10:49]Content-Length: 331 [17:10:49]Content-Type: application/json [17:10:49] [17:10:49]POST finish read [17:10:49]Found Content-Length = 331 [17:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:49]execute_script... [17:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:49]POST & json_proto [17:10:49]process_json_proto [17:10:49]json parsed OK: [17:10:49]protocol is kg_v1.0 [17:10:49]action value=get_value [17:10:49]process_action get_value [17:10:49]cmd_get_value [17:10:49]process_action get_value done [17:10:49]requested_data is exist [17:10:49]produce_requested_data [17:10:49]requested_item fm.sale.total is exist - process it [17:10:49]SAM_PROTO_GetFMData [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 13 03 00 [17:10:49]Write to MH i2c: E2 08 00 4E 2A 80 13 03 00 00 00 00 00 F7 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]OFD Sender: No OFD packet to send [17:10:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:49]Read from MH i2c: E2 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 FD 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 FD 00 4E 2A 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 BB [17:10:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:10:49]wFMCommunicate OK [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:50]CAPDU: 80 17 00 00 [17:10:50]Write to MH i2c: E2 08 00 4F 2A 80 17 00 00 00 00 00 00 F9 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:50]Read from MH i2c: E2 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 FD 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 FD 00 4F 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 15 [17:10:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 [17:10:50]wFMCommunicate OK [17:10:50]wFMCommunicate request_size=4 [17:10:50]MH_SAM_APDU [17:10:50]CAPDU: 80 17 00 00 [17:10:50]Write to MH i2c: E2 08 00 50 2A 80 17 00 00 00 00 00 00 FA [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:50]Read from MH i2c: E2 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 FD 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 FD 00 50 2A 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 0C [17:10:50]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 [17:10:51]wFMCommunicate OK [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 17 00 00 [17:10:51]Write to MH i2c: E2 08 00 51 2A 80 17 00 00 00 00 00 00 FB [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 FD 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 FD 00 51 2A 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 87 [17:10:51]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 [17:10:51]wFMCommunicate OK [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 17 00 00 [17:10:51]Write to MH i2c: E2 08 00 52 2A 80 17 00 00 00 00 00 00 FC [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 E2 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 E2 00 52 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [17:10:52]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 [17:10:52]wFMCommunicate OK [17:10:52]SAM_PROTO_GetFMData done [17:10:52]requested_item fm.sale_refund.total is exist - process it [17:10:52]requested_item fm.buy.total is exist - process it [17:10:52]requested_item shift.sale.total is exist - process it [17:10:52]SAM_PROTO_GetShiftData [17:10:52]wFMCommunicate request_size=4 [17:10:52]MH_SAM_APDU [17:10:52]CAPDU: 80 13 02 00 [17:10:52]Write to MH i2c: E2 08 00 53 2A 80 13 02 00 00 00 00 00 FB [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:52]Read from MH i2c: E2 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 FD 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 FD 00 53 2A 00 BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 04 [17:10:52]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:52]wFMCommunicate OK [17:10:52]wFMCommunicate request_size=4 [17:10:52]MH_SAM_APDU [17:10:52]CAPDU: 80 17 00 00 [17:10:52]Write to MH i2c: E2 08 00 54 2A 80 17 00 00 00 00 00 00 FE [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:53]Read from MH i2c: E2 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: E2 FD 00 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: E2 FD 00 54 2A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 34 [17:10:53]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:53]wFMCommunicate OK [17:10:53]wFMCommunicate request_size=4 [17:10:53]MH_SAM_APDU [17:10:53]CAPDU: 80 17 00 00 [17:10:53]Write to MH i2c: E2 08 00 55 2A 80 17 00 00 00 00 00 00 FF [17:10:53]Write i2c OK [17:10:53]MH_I2C_Read... [17:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:53]Read from MH i2c: E2 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: E2 FD 00 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: E2 FD 00 55 2A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 2B [17:10:53]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [17:10:54]wFMCommunicate OK [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 17 00 00 [17:10:54]Write to MH i2c: E2 08 00 56 2A 80 17 00 00 00 00 00 00 00 [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 FD 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 FD 00 56 2A 00 00 00 EF 03 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 90 00 75 [17:10:54]RAPDU: 00 00 EF 03 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 OFD Sender: No OFD packet to send [17:10:54]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:10:54]wFMCommunicate OK [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 17 00 00 [17:10:54]Write to MH i2c: E2 08 00 57 2A 80 17 00 00 00 00 00 00 01 [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 D8 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 D8 00 57 2A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E8 [17:10:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:55]wFMCommunicate OK [17:10:55]SAM_PROTO_GetShiftData done [17:10:55]requested_item shift.sale.total_cash is exist - process it [17:10:55]requested_item shift.sale_refund.total is exist - process it [17:10:55]requested_item shift.sale_refund.total_cash is exist - process it [17:10:55]requested_item shift.buy.total is exist - process it [17:10:55]requested_item shift.buy.total_cash is exist - process it [17:10:55]produce_requested_data done [17:10:55]produce_requested_data return {"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:10:55]process_action_free get_value [17:10:55]json_value_free [17:10:55]json_value_free done [17:10:55]process_json_proto returns [17:10:55]Send response to host [17:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":183116444.70,"fm.sale_refund.total":4070341.00,"fm.buy.total":0.00,"shift.sale.total":379567.47,"shift.sale.total_cash":232183.00,"shift.sale_refund.total":3328.00,"shift.sale_refund.total_cash":3328.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:10:55]free response buf [17:10:55]execute_script done [17:10:55]execute_script returns [17:10:55]free content buf [17:10:55]Sock 9.Close socket [17:10:55]Sock 9.Thread stoped [17:10:55]accept exits with 7 [17:10:55]New connection [17:10:55]New thread 3066449252 created [17:10:55]Thread 3066592612 joined [17:10:55]Waiting for new connection... [17:10:55] Sock 7.Parse request [17:10:55]Sock 7.Check first char [17:10:55]Sock 7.First char is OK [17:10:55]request: POST /json_proto HTTP/1.0 [17:10:55]Method: POST [17:10:55]URL: /json_proto [17:10:55]Method is POST - this is cgi request [17:10:55]url: /json_proto [17:10:55]query_string will be loaded in cgi processing [17:10:55]execute_cgi json_proto POST (null) [17:10:55]execute_cgi path=json_proto method=POST [17:10:55]POST find Content-Length [17:10:55]Host: 172.17.38.133:8080 [17:10:55]Content-Length: 272 [17:10:55]Content-Type: application/json [17:10:55] [17:10:55]POST finish read [17:10:55]Found Content-Length = 272 [17:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_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" ] } } [17:10:55]execute_script... [17:10:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_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" ] } } [17:10:55]POST & json_proto [17:10:55]process_json_proto [17:10:55]json parsed OK: [17:10:55]protocol is kg_v1.0 [17:10:55]action value=close_shift [17:10:55]process_action close_shift [17:10:55]cmd_close_shift [17:10:55]MH_GetDate [17:10:55]Write to MH i2c: F0 00 00 58 2A 71 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 58 2A 00 A1 05 77 66 BD 8F 7C 64 29 [17:10:55]GetLastDocTimeStamp 1719076212 [17:10:55]current date 1719076257 [17:10:55]FM_GetShiftState [17:10:55]SAM_PROTO_GetShiftState [17:10:55]wFMCommunicate request_size=4 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 13 01 00 [17:10:55]Write to MH i2c: E2 08 00 59 2A 80 13 01 00 00 00 00 00 00 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 0E 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 0E 00 59 2A 00 09 00 01 F0 1A 76 66 00 00 00 00 90 00 F2 [17:10:55]RAPDU: 09 00 01 F0 1A 76 66 00 00 00 00 90 00 [17:10:55]wFMCommunicate OK [17:10:55]SAM_PROTO_GetShiftState done [17:10:55]FM_GetShiftState done [17:10:55]KKMCreateCloseShiftDocument [17:10:55]Load OK [17:10:55]Malloc new data [17:10:55]MH_GetDate [17:10:55]Write to MH i2c: F0 00 00 5A 2A 73 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 5A 2A 00 A1 05 77 66 BD 8F 7C 64 2B [17:10:55]Malloc new data [17:10:55]Malloc new data [17:10:55]Malloc new data [17:10:55]Malloc new data [17:10:55]KKMCreateCloseShiftDocument OK [17:10:55]KKMSetCloseShiftData OK [17:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=75 [17:10:55]tlvbuf is 010E0C80 [17:10:55]KKMLoadAndSignCloseShiftData [17:10:55]SAM_PROTO_ProcessDocument [17:10:55]wFMCommunicate request_size=9 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 15 01 00 04 05 00 4B 00 [17:10:55]Write to MH i2c: E2 0C 00 5B 2A 80 15 01 00 04 00 05 00 4B 00 00 00 5C [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [17:10:55]RAPDU: 90 00 [17:10:55]wFMCommunicate OK [17:10:55]wFMCommunicate request_size=23 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:10:55]Write to MH i2c: E2 1A 00 5C 2A 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 FB [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [17:10:55]RAPDU: 90 00 [17:10:55]wFMCommunicate OK [17:10:55]wFMCommunicate request_size=34 [17:10:55]MH_SAM_APDU [17:10:55]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 [17:10:55]Write to MH i2c: E2 25 00 5D 2A 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 C8 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [17:10:55]RAPDU: 90 00 [17:10:55]wFMCommunicate OK [17:10:55]wFMCommunicate request_size=13 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 15 02 00 08 F4 03 04 00 A1 05 77 66 [17:10:55]Write to MH i2c: E2 10 00 5E 2A 80 15 02 00 08 00 F4 03 04 00 A1 05 77 66 00 00 96 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [17:10:55]RAPDU: 90 00 [17:10:55]wFMCommunicate OK [17:10:55]wFMCommunicate request_size=25 [17:10:55]MH_SAM_APDU [17:10:55]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 [17:10:55]Write to MH i2c: E2 1C 00 5F 2A 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 71 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [17:10:56]RAPDU: 90 00 [17:10:56]wFMCommunicate OK [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 15 03 00 [17:10:56]Write to MH i2c: E2 08 00 60 2A 80 15 03 00 00 00 00 00 0B [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 FD 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 FD 00 60 2A 00 FE 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 04 98 01 00 0E 04 04 00 64 01 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 90 00 C7 [17:10:56]RAPDU: FE 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 04 98 01 00 0E 04 04 00 64 01 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 B7 04 6E 04 04 00 B8 00 00 00 69 04 9E 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 90 00 [17:10:56]wFMCommunicate OK [17:10:56]SAM_PROTO_ProcessDocument answer len = 1278 [17:10:56]SAM_PROTO_ProcessDocument remain to read = 1030 [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 17 00 00 [17:10:56]Write to MH i2c: E2 08 00 61 2A 80 17 00 00 00 00 00 00 0B [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 FD 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 FD 00 61 2A 00 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 3E [17:10:57]RAPDU: 14 05 70 04 03 00 00 14 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:10:57]SAM_PROTO_ProcessDocument remain to read = 780 [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 17 00 00 [17:10:57]Write to MH i2c: E2 08 00 62 2A 80 17 00 00 00 00 00 00 0C [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 FD 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 FD 00 62 2A 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 72 [17:10:57]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:10:58]SAM_PROTO_ProcessDocument remain to read = 530 [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 17 00 00 [17:10:58]Write to MH i2c: E2 08 00 63 2A 80 17 00 00 00 00 00 00 0D [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 FD 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 FD 00 63 2A 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [17:10:58]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:10:58]SAM_PROTO_ProcessDocument remain to read = 280 [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 17 00 00 [17:10:58]Write to MH i2c: E2 08 00 64 2A 80 17 00 00 00 00 00 00 0E [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 FD 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 FD 00 64 2A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 BD [17:10:59]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:10:59]SAM_PROTO_ProcessDocument remain to read = 30 [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 17 00 00 [17:10:59]Write to MH i2c: E2 08 00 65 2A 80 17 00 00 00 00 00 00 0F [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 21 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 21 00 65 2A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D8 DD 7F 52 B1 74 90 00 00 [17:10:59]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D8 DD 7F 52 B1 74 90 00 [17:10:59]wFMCommunicate OK [17:10:59]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [17:10:59]SAM_PROTO_ProcessDocument done [17:10:59]1209 (1) - 1.0 - номер версии ФФД [17:10:59]1041 (16) - 0000000000875093 - номер ФМ [17:10:59]1040 (4) - 104452 - номер ФД [17:10:59]1038 (4) - 356 - номер смены [17:10:59]1118 (4) - 184 - количество кассовых чеков за смену [17:10:59]1111 (4) - 186 - общее количество ФД за смену [17:10:59]1194 (1207) - счетчики итогов смены [17:10:59] 1134 (4) - 184 - количество чеков со всеми признаками расчетов [17:10:59] 1129 (158) - счетчики операций «приход» [17:10:59] 1135 (4) - 182 - количество чеков по признаку расчетов [17:10:59] 1201 (4) - 379567.47 - общая итоговая сумма в чеках [17:10:59] 1136 (4) - 232183.00 - итоговая сумма в чеках наличными [17:10:59] 1138 (3) - 147384.47 - итоговая сумма в чеках безналичными [17:10:59] 1024 (123) - суммы налогов [17:10:59] 1006 (9) - суммы НДС [17:10:59] 1010 (1) - 0% - код ставки НДС [17:10:59] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:59] 1006 (12) - суммы НДС [17:10:59] 1010 (1) - 12% - код ставки НДС [17:10:59] 1011 (3) - 40314.06 - сумма НДС по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (12) - суммы НСП [17:10:59] 1014 (1) - 1% - код ставки НСП [17:10:59] 1015 (3) - 3359.24 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 2% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 3% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 5% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 1,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1130 (151) - счетчики операций «возврат прихода» [17:10:59] 1135 (4) - 2 - количество чеков по признаку расчетов [17:10:59] 1201 (3) - 3328.00 - общая итоговая сумма в чеках [17:10:59] 1136 (3) - 3328.00 - итоговая сумма в чеках наличными [17:10:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:59] 1024 (121) - суммы налогов [17:10:59] 1006 (9) - суммы НДС [17:10:59] 1010 (1) - 0% - код ставки НДС [17:10:59] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:59] 1006 (11) - суммы НДС [17:10:59] 1010 (1) - 12% - код ставки НДС [17:10:59] 1011 (2) - 353.46 - сумма НДС по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (11) - суммы НСП [17:10:59] 1014 (1) - 1% - код ставки НСП [17:10:59] 1015 (2) - 29.45 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 2% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 3% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 5% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 1,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1131 (141) - счетчики операций «расход» [17:10:59] 1135 (4) - 0 - количество чеков по признаку расчетов [17:10:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:10:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:10:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:59] 1024 (117) - суммы налогов [17:10:59] 1006 (9) - суммы НДС [17:10:59] 1010 (1) - 0% - код ставки НДС [17:10:59] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:59] 1006 (9) - суммы НДС [17:10:59] 1010 (1) - 12% - код ставки НДС [17:10:59] 1011 (0) - 0.00 - сумма НДС по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 1% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 2% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 3% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 5% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 0,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1007 (9) - суммы НСП [17:10:59] 1014 (1) - 1,50% - код ставки НСП [17:10:59] 1015 (0) - 0.00 - сумма НСП по ставке [17:10:59] 1132 (141) - счетчики операций «возврат расхода» [17:10:59] 1135 (4) - 0 - количество чеков по признаку расчетов [17:10:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:10:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:10:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:10:59] 1024 (117) - суммы налогов [17:10:59] 1006 (9) - суммы НДС [17:10:59] 1010 (1) - 0% - код ставки НДС [17:10:59] 1011 (0) - 0.00OFD Sender: No OFD packet to send [17:11:00] - сумма НДС по ставке [17:11:00] 1006 (9) - суммы НДС [17:11:00] 1010 (1) - 12% - код ставки НДС [17:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 0% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 1% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 2% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 3% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 5% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 0,50% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1007 (9) - суммы НСП [17:11:00] 1014 (1) - 1,50% - код ставки НСП [17:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [17:11:00] 1133 (588) - - счетчики коррекции - не используются [17:11:00]1077 (6) - 238445835497844 - ФПД [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1209 (04B9) [17:11:00]Malloc new data [17:11:00]Processing tag 1041 (0411) [17:11:00]Processing tag 1040 (0410) [17:11:00]Malloc new data [17:11:00]Processing tag 1038 (040E) [17:11:00]Malloc new data [17:11:00]Processing tag 1118 (045E) [17:11:00]Malloc new data [17:11:00]Processing tag 1111 (0457) [17:11:00]Malloc new data [17:11:00]Processing tag 1194 (04AA) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1134 (046E) [17:11:00]Malloc new data [17:11:00]Processing tag 1129 (0469) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1135 (046F) [17:11:00]Malloc new data [17:11:00]Processing tag 1201 (04B1) [17:11:00]Malloc new data [17:11:00]Processing tag 1136 (0470) [17:11:00]Malloc new data [17:11:00]Processing tag 1138 (0472) [17:11:00]Malloc new data [17:11:00]Processing tag 1024 (0400) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1130 (046A) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1135 (046F) [17:11:00]Malloc new data [17:11:00]Processing tag 1201 (04B1) [17:11:00]Malloc new data [17:11:00]Processing tag 1136 (0470) [17:11:00]Malloc new data [17:11:00]Processing tag 1138 (0472) [17:11:00]Malloc new data [17:11:00]Processing tag 1024 (0400) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1131 (046B) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1135 (046F) [17:11:00]Malloc new data [17:11:00]Processing tag 1201 (04B1) [17:11:00]Malloc new data [17:11:00]Processing tag 1136 (0470) [17:11:00]Malloc new data [17:11:00]Processing tag 1138 (0472) [17:11:00]Malloc new data [17:11:00]Processing tag 1024 (0400) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1132 (046C) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1135 (046F) [17:11:00]Malloc new data [17:11:00]Processing tag 1201 (04B1) [17:11:00]Malloc new data [17:11:00]Processing tag 1136 (0470) [17:11:00]Malloc new data [17:11:00]Processing tag 1138 (0472) [17:11:00]Malloc new data [17:11:00]Processing tag 1024 (0400) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1006 (03EE) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1010 (03F2) [17:11:00]Malloc new data [17:11:00]Processing tag 1011 (03F3) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1007 (03EF) [17:11:00]Load OK [17:11:00]SetTLVBufToDocument [17:11:00]Processing tag 1014 (03F6) [17:11:00]Malloc new data [17:11:00]Processing tag 1015 (03F7) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1133 (046D) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Processing tag 1077 (0435) [17:11:00]Malloc new data [17:11:00]SetTLVBufToDocument err=0 [17:11:00]Malloc new data [17:11:00]SAM_PROTO_GetFMData [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 03 00 [17:11:00]Write to MH i2c: E2 08 00 66 2A 80 13 03 00 00 00 00 00 0F [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:11:01]Read from MH i2c: E2 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 FD 00 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 FD 00 66 2A 00 C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 D3 [17:11:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 95 01 00 69 04 A3 00 6F 04 04 00 DA 90 01 00 B1 04 05 00 36 85 75 43 04 70 04 05 00 08 A4 89 5D 03 72 04 04 00 2E E1 EB E5 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 54 40 EC 73 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 8B E3 A8 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 61 04 00 00 B1 04 04 00 F4 D8 42 18 70 04 04 00 F4 D8 42 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 87 9A 93 02 EF 03 09 90 00 [17:11:01]wFMCommunicate OK [17:11:01]wFMCommunicate request_size=4 [17:11:01]MH_SAM_APDU [17:11:01]CAPDU: 80 17 00 00 [17:11:01]Write to MH i2c: E2 08 00 67 2A 80 17 00 00 00 00 00 00 11 [17:11:01]Write i2c OK [17:11:01]MH_I2C_Read... [17:11:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:01]Read from MH i2c: E2 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 FD 00 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 FD 00 67 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 2D [17:11:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 F7 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 [17:11:02]wFMCommunicate OK [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 17 00 00 [17:11:02]Write to MH i2c: E2 08 00 68 2A 80 17 00 00 00 00 00 00 12 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 FD 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 FD 00 68 2A 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 24 [17:11:02]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 [17:11:02]wFMCommunicate OK [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 17 00 00 [17:11:02]Write to MH i2c: E2 08 00 69 2A 80 17 00 00 00 00 00 00 13 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 FD 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 FD 00 69 2A 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 9F [17:11:03]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 [17:11:03]wFMCommunicate OK [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 17 00 00 [17:11:03]Write to MH i2c: E2 08 00 6A 2A 80 17 00 00 00 00 00 00 14 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 E2 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 E2 00 6A 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [17:11:04]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 [17:11:04]wFMCommunicate OK [17:11:04]SAM_PROTO_GetFMData done [17:11:04]Malloc new data [17:11:04]Malloc new data [17:11:04]Malloc new data [17:11:04]Malloc new data [17:11:04]KKMLoadAndSignCloseShiftData err=0 [17:11:04]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байбугуева Г. 22.06.2024 17:10 Смена: 356 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Чеков за смену: 184 ФД за смену: 186 Всего чеков: 184 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 379567.47 Итого наличными: 232183.00 Итого безнал.: 147384.47 НДС 0% : 0.00 НДС 12% : 40314.06 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3359.24 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 3328.00 Итого наличными: 3328.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 353.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 29.45 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 228855.00 НС Приход: 183116444.70 НС Возвр.Прихода: 4070341.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 104452 ФМ: 0000000000875093 ФПД: 238445835497844 [17:11:04]StoreToDocumentArchive [17:11:04]shift 356 fd 104452 [17:11:04]save to /storage/0356/doc_00104452 [17:11:04]save last doc name /storage/0356/doc_00104452 to /storage/kkm_last_doc_name [17:11:04]save OK [17:11:04]Clear old archive folders... [17:11:04]Remove dir /storage/0266 [17:11:04]opendir ok [17:11:04]file . [17:11:04]file .. [17:11:04]file doc_1719076220 [17:11:04]remove file /storage/0266/doc_1719076220 [17:11:04]remove dir /storage/0266 [17:11:04]NVStorageSaveData kkm_registers [17:11:04]File name is /storage/kkm_registers [17:11:04]Write 24 bytes [17:11:04]NVStorageSaveData done [17:11:04]NVStorageSaveData kkm_registers [17:11:04]File name is /storage/kkm_registers [17:11:04]Write 24 bytes [17:11:04]NVStorageSaveData done [17:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [17:11:04]tlvbuf is 01166170 [17:11:04]SAM_PROTO_ClearQueue [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 09 00 00 [17:11:04]Write to MH i2c: E2 08 00 6B 2A 80 09 00 00 00 00 00 00 07 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 6B 2A 00 90 00 09 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]SAM_PROTO_ClearQueue done [17:11:04]KKMCreateOFDPacket [17:11:04]OFDProtocolAddRootSTLVToBuf [17:11:04]FM_MakeSignedData [17:11:04]FM_MakeSignedData [17:11:04]SAM_PROTO_SignData [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 0D 01 02 [17:11:04]Write to MH i2c: E2 08 00 6C 2A 80 0D 01 02 00 00 00 00 0F [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 6C 2A 00 90 00 0A [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=255 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 0D 02 02 FA 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 A1 05 77 66 0E 04 04 00 64 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 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 DE 04 6E 04 04 00 B8 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 [17:11:04]Write to MH i2c: E2 02 01 6D 2A 80 0D 02 02 FA 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 A1 05 77 66 0E 04 04 00 64 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 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 DE 04 6E 04 04 00 B8 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 32 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:05]OFD Sender: No OFD packet to send [17:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 03 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 03 00 6D 2A 00 90 00 0B [17:11:05]RAPDU: 90 00 [17:11:05]wFMCommunicate OK [17:11:05]wFMCommunicate request_size=255 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 34 20 05 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B 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 [17:11:05]Write to MH i2c: E2 02 01 6E 2A 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 34 20 05 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B 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 00 5C [17:11:05]Write i2c OK [17:11:05]MH_I2C_Read... [17:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 03 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 03 00 6E 2A 00 90 00 0C [17:11:05]RAPDU: 90 00 [17:11:05]wFMCommunicate OK [17:11:05]wFMCommunicate request_size=255 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 0D 02 02 FA 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 [17:11:06]Write to MH i2c: E2 02 01 6F 2A 80 0D 02 02 FA 00 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 D1 [17:11:06]Write i2c OK [17:11:06]MH_I2C_Read... [17:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:06]Read from MH i2c: E2 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 03 00 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 03 00 6F 2A 00 90 00 0D [17:11:06]RAPDU: 90 00 [17:11:06]wFMCommunicate OK [17:11:06]wFMCommunicate request_size=255 [17:11:06]MH_SAM_APDU [17:11:06]CAPDU: 80 0D 02 02 FA 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 [17:11:06]Write to MH i2c: E2 02 01 70 2A 80 0D 02 02 FA 00 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 00 00 D7 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:07]Read from MH i2c: E2 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 03 00 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 03 00 70 2A 00 90 00 0E [17:11:07]RAPDU: 90 00 [17:11:07]wFMCommunicate OK [17:11:07]wFMCommunicate request_size=255 [17:11:07]MH_SAM_APDU [17:11:07]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 [17:11:07]Write to MH i2c: E2 02 01 71 2A 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 00 B2 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 71 2A 00 90 00 0F [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=151 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 98 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 D8 DD 7F 52 B1 74 [17:11:08]Write to MH i2c: E2 9A 00 72 2A 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 98 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 D8 DD 7F 52 B1 74 00 00 99 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 72 2A 00 90 00 10 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 03 02 [17:11:08]Write to MH i2c: E2 08 00 73 2A 80 0D 03 02 00 00 00 00 18 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 0B 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 0B 00 73 2A 00 64 84 FA 9E 07 04 7A 2B 90 00 49 [17:11:08]RAPDU: 64 84 FA 9E 07 04 7A 2B 90 00 [17:11:08]wFMCommunicate OK [17:11:08]SAM_PROTO_SignData done [17:11:08]FM_MakeSignedData done [17:11:08]CreateOFDProtocolMessage [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 11 00 00 [17:11:08]Write to MH i2c: E2 08 00 74 2A 80 11 00 00 00 00 00 00 18 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:08]Read from MH i2c: E2 17 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 17 00 74 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [17:11: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:11:08]wFMCommunicate OK [17:11:08]CreateOFDProtocolMessage done [17:11:08]OFDSenderStorePacket 104452 [17:11:08]StoreOFDPacket docnum=104452 [17:11: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 84 05 00 00 59 AB 7C 05 47 83 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 A1 05 77 66 0E 04 04 00 64 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 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 DE 04 6E 04 04 00 B8 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 05 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B 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 04 98 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 D8 DD 7F 52 B1 74 64 84 FA 9E 07 04 7A 2B [17:11:09]CheckFolder [17:11:09]dirname=/storage/ofd_packets [17:11:09]CheckFolder done [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00104452 [17:11:09]NVStorageSaveData ofd_packets/00104452 [17:11:09]File name is /storage/ofd_packets/00104452 [17:11:09]Write 1442 bytes [17:11:09]NVStorageSaveData done [17:11:09]OFDSenderStorePacket done [17:11:09]KKMCreateOFDPacket done [17:11:09]NVStorageSaveData kkm_last_timestamp [17:11:09]File name is /storage/kkm_last_timestamp [17:11:09]Write 4 bytes [17:11:09]NVStorageSaveData done [17:11:09]ExternCall_PrintAddStr [17:11:09]wPrintStart [17:11:09]Write to MH i2c: 01 00 00 75 2A 9F [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 75 2A 00 00 00 00 00 FF 0F B4 [17:11:09]RasterBufferAndPrint [17:11:09]line Отчет о закрытии смены [17:11:09]line ФФД: 1.0 [17:11:09]line ИНН: 02508201610067 [17:11:09]line Кассир: Байбугуева Г. [17:11:09]line 22.06.2024 17:10 [17:11:09]line Смена: 356 [17:11:09]line РНМ: 0000000000092785 [17:11:09]line ЗНМ: 0300000164 [17:11:09]line СНО: Общий режим [17:11:09]line Чеков за смену: 184 [17:11:09]line ФД за смену: 186 [17:11:09]line Всего чеков: 184 [17:11:09]line ИТОГИ ПРИХОД [17:11:09]line Чеков: 182 [17:11:09]line Общий итог: 379567.47 [17:11:09]line Итого наличными: 232183.00 [17:11:09]line Итого безнал.: 147384.47 [17:11:09]line НДС 0% : 0.00 [17:11:09]line НДС 12% : 40314.06 [17:11:09]line НСП 0% : 0.00 [17:11:09]line НСП 1,50% : 0.00 [17:11:09]line НСП 0,50% : 0.00 [17:11:09]line НСП 5% : 0.00 [17:11:09]line НСП 3% : 0.00 [17:11:09]line НСП 2% : 0.00 [17:11:09]line НСП 1% : 3359.24 [17:11:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:11:09]line Чеков: 2 [17:11:09]line Общий итог: 3328.00 [17:11:09]line Итого наличными: 3328.00 [17:11:09]line Итого безнал.: 0.00 [17:11:09]line НДС 0% : 0.00 [17:11:09]line НДС 12% : 353.46 [17:11:09]line НСП 0% : 0.00 [17:11:09]line НСП 1,50% : 0.00 [17:11:09]line НСП 0,50% : 0.00 [17:11:09]line НСП 5% : 0.00 [17:11:09]line НСП 3% : 0.00 [17:11:09]line НСП 2% : 0.00 [17:11:09]line НСП 1% : 29.45 [17:11:09]line ИТОГИ РАСХОД [17:11:09]line Чеков: 0 [17:11:09]line Общий итог: 0.00 [17:11:09]line Итого наличными: 0.00 [17:11:09]line Итого безнал.: 0.00 [17:11:09]line НДС 0% : 0.00 [17:11:09]line НДС 12% : 0.00 [17:11:09]line НСП 0% : 0.00 [17:11:09]line НСП 1,50% : 0.00 [17:11:09]line НСП 0,50% : 0.00 [17:11:09]line НСП 5% : 0.00 [17:11:09]line НСП 3% : 0.00 [17:11:09]line НСП 2% : 0.00 [17:11:09]line НСП 1% : 0.00 [17:11:09]line ИТОГИ ВОЗВРАТ РАСХОДА [17:11:09]line Чеков: 0 [17:11:09]line Общий итог: 0.00 [17:11:09]line Итого наличными: 0.00 [17:11:09]line Итого безнал.: 0.00 [17:11:09]line НДС 0% : 0.00 [17:11:09]line НДС 12% : 0.00 [17:11:09]line НСП 0% : 0.00 [17:11:09]line НСП 1,50% : 0.00 [17:11:09]line НСП 0,50% : 0.00 [17:11:09]line НСП 5% : 0.00 [17:11:09]line НСП 3% : 0.00 [17:11:09]line НСП 2% : 0.00 [17:11:09]line НСП 1% : 0.00 [17:11:09]line Сумма внесений: 0.00 [17:11:09]line Сумма выплат: 0.00 [17:11:09]line Нал. в кассе: 228855.00 [17:11:09]line НС Приход: 183116444.70 [17:11:09]line НС Возвр.Прихода: 4070341.00 [17:11:09]line НС Расход: 0.00 [17:11:09]line НС Возвр.Расхода: 0.00 [17:11:09]line ФД: 104452 [17:11:09]line ФМ: 0000000000875093 [17:11:09]line ФПД: 238445835497844 [17:11:09]OFD Sender: Processing packet 104452 [packets to send 17, broken 16] [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00104452 [17:11:09]OFD Sender: To server: pG, [17:11:09]CommunicateWithHost lk.salyk.kg:30040 [17:11:09]ConnectInit lk.salyk.kg [17:11:09]written 0, free lines is 4095 [17:11:09]Connected sock=10 [17:11: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 84 05 00 00 59 AB 7C 05 47 83 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 A1 05 77 66 0E 04 04 00 64 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 B8 00 00 00 57 04 04 00 BA 00 00 00 AA 04 DE 04 6E 04 04 00 B8 00 00 00 69 04 A5 00 6F 04 04 00 B6 00 00 00 B1 04 04 00 8B 2C 43 02 70 04 04 00 7C 48 62 01 72 04 03 00 0F E4 E0 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 AE 83 3D 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 34 20 05 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 00 14 05 70 04 03 00 00 14 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 12 8A 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 81 0B 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 Write to MH i2c: 00 01 00 00 EF 00 03 C5 0A 2A 00 EF F6 [17:11:10]03 Write i2c OK [17:11:10]01 MH_I2C_Read... [17:11:10]00 00 F7 03 01 00 00 Read from MH i2c: EF 01 03 [17:11:10]0A MH_I2C_Read... [17:11:10]00 F6 03 01 Read from MH i2c: 00 01 06 07 F7 00 03 [17:11:10]01 00 00 EF 03 0A 00 F6 03 01 00 05 MH_I2C_Read... [17:11:10]F7 03 01 Read from MH i2c: 00 01 00 07 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 C5 00 2A EF 00 03 00 0A 00 00 00 F6 00 03 71 01 0C 00 73 03 F7 03 01 00 00 EF 03 0A 00 F6 03 [17:11:10]01 RasterBufferAndPrint [17:11:10]00 line [17:11:10]02 line [17:11:10]F7 line [17:11:10]03 01 00 00 EF 03 0A 00 F6 03 01 00 line [17:11:10]01 line [17:11:10]F7 03 01 00 00 6D 04 4C written 0, free lines is 3387 [17:11:10]02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 MH_Cut [17:11:10]01 Write to MH i2c: 00 D1 00 01 F7 00 03 CC 2A 01 C8 [17:11:10]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Write i2c OK [17:11:10]03 MH_I2C_Read... [17:11:10]00 Read from MH i2c: 00 D1 EF [17:11:10]03 MH_I2C_Read... [17:11:10]09 00 F6 03 01 00 04 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 03 [17:11:10]09 00 F6 03 01 00 05 F7 03 00 00 MH_I2C_Read... [17:11:11]EF Read from MH i2c: 03 D1 09 01 00 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 CC 00 2A EF 00 03 C7 09 [17:11:11]00 F6 03 01 00 01 F7 03 00 00 EF Write to MH i2c: 03 01 09 00 00 00 F6 CD 03 2A 01 F7 00 [17:11:11]02 Write i2c OK [17:11:11]F7 MH_I2C_Read... [17:11:11]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 *** Cut start [17:11:11]00 00 *** Partial cut [17:11:11]00 *** CUTSNS_PIN = 1 [17:11:11]00 *** CUTSNS_PIN = 0 [17:11:11]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 *** Brake cut motor [17:11:11]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 98 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 D8 DD 7F 52 B1 74 64 84 FA 9E 07 04 7A 2B [17:11:11]Read from MH i2c: *** Stop cut motor [17:11:11]01 *** Cut end [17:11:11] [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 FF 0F 0C [17:11:12]process_action close_shift done [17:11:12]requested_data is exist [17:11:12]produce_requested_data [17:11:12]requested_item fd.num is exist - process it [17:11:12]SAM_PROTO_GetFieldsCounters [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 00 00 [17:11:12]Write to MH i2c: E2 08 00 CE 2A 80 13 00 00 00 00 00 00 74 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11: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 AC 82 47 00 2F 08 A5 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:12]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 98 01 00 F4 03 04 00 2E AC 76 66 B6 04 01 00 00 28 F5 95 76 04 B4 9B D0 [17:11:12]CommunicateWithHost err = 0 [17:11:12]CheckOFDResponse [17:11:12]1017 (14) - 77093643461234 [17:11:12]1041 (16) - 0000000000875093 [17:11:12]1040 (4) - 104452 [17:11:12]1012 (4) - 22.06.2024 10:49 [17:11:12]1206 (1) - 0 [17:11:12]OFD Sender: Remove packet 104452 [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00104452 [17:11:12]NVStorageDeleteData [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 62 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 62 00 CE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 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 98 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [17:11: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 04 98 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetFieldsCounters done [17:11:12]requested_item shift.num is exist - process it [17:11:12]requested_item shift.opened is exist - process it [17:11:12]req_shift_opened [17:11:12]FM_GetShiftState [17:11:12]SAM_PROTO_GetShiftState [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 01 00 [17:11:12]Write to MH i2c: E2 08 00 CF 2A 80 13 01 00 00 00 00 00 76 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 CF 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 81 [17:11:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetShiftState done [17:11:12]FM_GetShiftState done [17:11:12]req_shift_opened done [17:11:12]requested_item shift.open_date is exist - process it [17:11:12]req_shift_open_date [17:11:12]FM_GetShiftState [17:11:12]SAM_PROTO_GetShiftState [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 01 00 [17:11:12]Write to MH i2c: E2 08 00 D0 2A 80 13 01 00 00 00 00 00 77 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 D0 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 82 [17:11:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetShiftState done [17:11:12]FM_GetShiftState done [17:11:12]req_shift_open_date done [17:11:12]produce_requested_data done [17:11:12]produce_requested_data return {"fd.num":104452,"shift.num":356,"shift.opened":0,"shift.open_date":0} [17:11:12]process_action_free close_shift [17:11:12]json_value_free [17:11:12]json_value_free done [17:11:12]process_json_proto returns [17:11:12]Send response to host [17:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104452,"shift.num":356,"shift.opened":0,"shift.open_date":0}}} [17:11:12]free response buf [17:11:12]execute_script done [17:11:12]execute_script returns [17:11:12]free content buf [17:11:12]Sock 7.Close socket [17:11:12]Sock 7.Thread stoped [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send